forked from nemomobile-graveyard/meegotouch-systemui
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes: Modified the unit test template to make it easier to impleme…
…nt tests RevBy: TrustMe
- Loading branch information
Vesa Halttunen
committed
Nov 4, 2010
1 parent
e07e68c
commit 894a27c
Showing
2 changed files
with
39 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
** All rights reserved. | ||
** Contact: Nokia Corporation ([email protected]) | ||
** | ||
** This file is part of systemui. | ||
** This file is part of mhome. | ||
** | ||
** If you have questions regarding the use of this file, please contact | ||
** Nokia at [email protected]. | ||
|
@@ -16,16 +16,31 @@ | |
** of this file. | ||
** | ||
****************************************************************************/ | ||
|
||
#include <QtTest/QtTest> | ||
#include <MApplication> | ||
#include "ut_template.h" | ||
|
||
void Ut_Template::init() | ||
void Ut_Template::initTestCase() | ||
{ | ||
static int argc = 1; | ||
static char *app_name[1] = { (char *) "./ut_template" }; | ||
app = new MApplication(argc, app_name); | ||
} | ||
|
||
void Ut_Template::cleanupTestCase() | ||
{ | ||
delete app; | ||
} | ||
|
||
void Ut_Template::cleanup() | ||
void Ut_Template::init() | ||
{ | ||
// m_subject = new Template(); | ||
} | ||
|
||
void Ut_Template::cleanup() | ||
{ | ||
// delete m_subject; | ||
} | ||
|
||
QTEST_APPLESS_MAIN(Ut_Template) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters