1 /* |
|
2 * Copyright (c) 2010 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 #ifndef UT_SATAPPMAINHANDLER_H |
|
19 #define UT_SATAPPMAINHANDLER_H |
|
20 |
|
21 #include <QtTest/QtTest> |
|
22 #include <QObject> |
|
23 |
|
24 |
|
25 // Class forwards |
|
26 class HbMainWindow; |
|
27 class SatAppMainHandler; |
|
28 |
|
29 /** |
|
30 * Satapp unit test class. |
|
31 * |
|
32 * @since S60 <TB10.1> |
|
33 */ |
|
34 class Ut_SatAppMainHandler : public QObject |
|
35 { |
|
36 Q_OBJECT |
|
37 |
|
38 public: |
|
39 |
|
40 Ut_SatAppMainHandler( |
|
41 HbMainWindow* mainWindow, QObject *parent = 0); |
|
42 |
|
43 virtual ~Ut_SatAppMainHandler(); |
|
44 |
|
45 private slots: |
|
46 /** |
|
47 * Called before the first testfunction is executed. |
|
48 * Handles the SetUpMenu command. |
|
49 */ |
|
50 void initTestCase(); |
|
51 |
|
52 /** |
|
53 * Called after the last testfunction has been executed. |
|
54 * |
|
55 */ |
|
56 void cleanupTestCase(); |
|
57 |
|
58 /** |
|
59 * Test SatAppMainHandler's constructor. |
|
60 * |
|
61 */ |
|
62 void testCreateMainHandler(); |
|
63 |
|
64 /** |
|
65 * Test SatAppMainHandler's constructor in offline. |
|
66 * |
|
67 */ |
|
68 void testCreateMainHandler_OfflineMode(); |
|
69 |
|
70 private: |
|
71 |
|
72 HbMainWindow* mMainWindow; // not own |
|
73 SatAppMainHandler *mMainHandler; |
|
74 |
|
75 }; |
|
76 |
|
77 #endif // UT_SATAPPMAINHANDLER_H |
|