From 95cb8ffe01e0252d3a26f244e8607254200d067f Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Sun, 3 Apr 2011 15:31:27 +0200 Subject: 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. --- src/tests/dolphinviewtest_columns.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tests/dolphinviewtest_columns.cpp') diff --git a/src/tests/dolphinviewtest_columns.cpp b/src/tests/dolphinviewtest_columns.cpp index 398446fca..40b88a223 100644 --- a/src/tests/dolphinviewtest_columns.cpp +++ b/src/tests/dolphinviewtest_columns.cpp @@ -31,8 +31,8 @@ public: return DolphinView::ColumnView; } - virtual bool verifyCorrectViewMode() const { - return (m_view->mode() == DolphinView::ColumnView); + virtual bool verifyCorrectViewMode(const DolphinView* view) const { + return (view->mode() == DolphinView::ColumnView); } }; -- cgit v1.3