diff options
| author | Frank Reininghaus <[email protected]> | 2011-04-03 15:31:27 +0200 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2011-04-03 15:32:12 +0200 |
| commit | 95cb8ffe01e0252d3a26f244e8607254200d067f (patch) | |
| tree | d76499d9b454b8730e48a2f24a55c914f7f0230c /src/tests/dolphinviewtest_details.cpp | |
| parent | 5ff682d852a07b5121e49d8ed2a239b0a1762b6b (diff) | |
Dolphin unit test refactoring
This commit changes mainly two things:
1. The functionality related to the handling of temporary files and
folders is moved to a new class TestDir.
2. The setup of a temporary folder and of DolphinView instances is
now done in each unit test function. A benefit of this change is that
there are no unwanted interactions between different unit test functions
any more. Moreover, different test functions could now share a test
folder more easily.
Additionally, the reference arguments of all functions are changed to
pointers for consistency.
Diffstat (limited to 'src/tests/dolphinviewtest_details.cpp')
| -rw-r--r-- | src/tests/dolphinviewtest_details.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/dolphinviewtest_details.cpp b/src/tests/dolphinviewtest_details.cpp index c3c950a6a..0034afd90 100644 --- a/src/tests/dolphinviewtest_details.cpp +++ b/src/tests/dolphinviewtest_details.cpp @@ -31,8 +31,8 @@ public: return DolphinView::DetailsView; } - virtual bool verifyCorrectViewMode() const { - return (m_view->mode() == DolphinView::DetailsView); + virtual bool verifyCorrectViewMode(const DolphinView* view) const { + return (view->mode() == DolphinView::DetailsView); } }; |
