|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 // System includes |
|
19 #include <QTest> |
|
20 #include <hbapplication.h> |
|
21 |
|
22 // User includes |
|
23 #include "test_calenagendautils.h" |
|
24 #include "test_calendateutils.h" |
|
25 |
|
26 int main(int argc, char *argv[]) |
|
27 { |
|
28 HbApplication app(argc, argv); |
|
29 |
|
30 TestCalenDateUtils testDateUtils; |
|
31 |
|
32 char *args[3]; |
|
33 args[0] = argv[0]; |
|
34 args[1] = "-o"; |
|
35 args[2] = "c:\\data\\TestCalenDateUtils.txt"; |
|
36 |
|
37 int retDateUtils = QTest::qExec(&testDateUtils, 3, args); |
|
38 |
|
39 |
|
40 TestCalenAgendaUtils testAgendaUtils; |
|
41 |
|
42 args[2] = "c:\\data\\TestCalenAgendaUtils.txt"; |
|
43 |
|
44 int retAgendaUtils = QTest::qExec(&testAgendaUtils, 3, args); |
|
45 |
|
46 // Core dump if HbIconLoader instance is not destroyed before the |
|
47 // application instance. HbIconLoader uses QCoreApplication::aboutToQuit() |
|
48 // signal to destroy itself. app.exec() where the signal is normally emitted |
|
49 // is not called here. So, invoking the signal explicitly. |
|
50 QMetaObject::invokeMethod(&app, "aboutToQuit", Qt::DirectConnection); |
|
51 |
|
52 return (retDateUtils && retAgendaUtils); |
|
53 } |
|
54 |
|
55 // End of file --Don't remove this. |