|
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 #ifndef TESTMSGINIT_H_ |
|
19 #define TESTMSGINIT_H_ |
|
20 |
|
21 #ifdef BUILD_TEST_DLL |
|
22 #define TEST_EXPORT Q_DECL_EXPORT |
|
23 #else |
|
24 #define TEST_EXPORT |
|
25 #endif |
|
26 |
|
27 // INCLUDES |
|
28 #include <QtTest/QtTest> |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class MsgSimNumDetector; |
|
32 class CMsvOperation; |
|
33 class COutboxObserver; |
|
34 class CMobileSignalStrengthHandler; |
|
35 class CTestMsgSimOperation; |
|
36 |
|
37 class TEST_EXPORT TestMsgInit: public QObject |
|
38 { |
|
39 Q_OBJECT |
|
40 |
|
41 private slots: |
|
42 |
|
43 /** |
|
44 * Intializes component for testing |
|
45 */ |
|
46 void initTestCase(); |
|
47 |
|
48 /** |
|
49 * Initilazes the test case data to be executed |
|
50 */ |
|
51 void init(); |
|
52 |
|
53 void validateMobileSignalStrength(); |
|
54 |
|
55 void validateOutboxSenderOperation(); |
|
56 |
|
57 void validateOutboxObserver(); |
|
58 |
|
59 void validateSimNumDetector(); |
|
60 /** |
|
61 * Clean the test case data |
|
62 */ |
|
63 void cleanup(); |
|
64 |
|
65 /** |
|
66 * Delete the initialized component for testing |
|
67 */ |
|
68 void cleanupTestCase(); |
|
69 |
|
70 private: |
|
71 MsgSimNumDetector* iSimHandler; |
|
72 CMsvOperation* iMsvOperation; |
|
73 COutboxObserver* iOutBoxObserver; |
|
74 CTestMsgSimOperation* iTestMsgSimOperation; |
|
75 CMobileSignalStrengthHandler* iSignalStrengthHandler; |
|
76 |
|
77 }; |
|
78 #endif /* TESTMSGINIT_H_ */ |