From: Mikko Keinänen Date: Mon, 29 Nov 2010 22:30:28 +0000 (+0200) Subject: init and cleanup methods X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;ds=sidebyside;h=afa92582038b604fc17eb12c852d831127be9209;p=emufront init and cleanup methods --- diff --git a/testing/EmuFrontTesting/dbplatformtest.cpp b/testing/EmuFrontTesting/dbplatformtest.cpp index 812f0b8..6ab5a39 100644 --- a/testing/EmuFrontTesting/dbplatformtest.cpp +++ b/testing/EmuFrontTesting/dbplatformtest.cpp @@ -1,3 +1,23 @@ #include "dbplatformtest.h" +void DbPlatformTest::init() +{ + // open db +} + +void DbPlatformTest::cleanup() +{ + // close db +} + +void DbPlatformTest::initTestCase() +{ + // initialize test data +} + +void DbPlatformTest::cleanupTestCase() +{ + // cleanup test data +} + diff --git a/testing/EmuFrontTesting/dbplatformtest.h b/testing/EmuFrontTesting/dbplatformtest.h index e5e0837..51ccd86 100644 --- a/testing/EmuFrontTesting/dbplatformtest.h +++ b/testing/EmuFrontTesting/dbplatformtest.h @@ -12,6 +12,10 @@ class DbPlatformTest : public QObject Q_OBJECT private slots: + void init(); + void cleanup(); + void initTestCase(); + void cleanupTestCase(); /* Test the following operations: QSqlQueryModel* getDataModel(bool update = false);