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 * Header for Connection Settings Shim Unit Test program. |
|
16 */ |
|
17 |
|
18 #include <QtTest/QtTest> |
|
19 |
|
20 #include <cmmanager_shim.h> |
|
21 |
|
22 class HbMainWindow; |
|
23 |
|
24 class TestCmMgrShim : public QObject |
|
25 { |
|
26 Q_OBJECT |
|
27 |
|
28 public slots: |
|
29 // Test framework functions |
|
30 void initTestCase(); |
|
31 void cleanupTestCase(); |
|
32 void init(); |
|
33 void cleanup(); |
|
34 |
|
35 private slots: |
|
36 // Test cases |
|
37 void tcResetSettings(); |
|
38 void tcLegacyConnMethodWlan(); |
|
39 void tcLegacyConnMethodGprs(); |
|
40 void tcCmManagerBasicFails(); |
|
41 void tcBasicDestination(); |
|
42 void tcDestinationModify(); |
|
43 void tcConnMethodSetBoolAttribute(); |
|
44 void tcConnMethodSetIntAttribute(); |
|
45 void tcConnMethodSetStringAttribute(); |
|
46 void tcConnMethodWrongTypeAttributeRead(); |
|
47 void tcConnMethodWrongTypeAttributeWrite(); |
|
48 void tcConnectionMethodRefresh(); |
|
49 void tcDestinationReadConnectionMethods(); |
|
50 void tcDestinationRemoveConnectionMethod(); |
|
51 void tcDestinationPriority(); |
|
52 void tcDestinationMisc(); |
|
53 void tcDestinationRefresh(); |
|
54 void tcDestinationInvalidParams(); |
|
55 void tcIconOperations(); |
|
56 |
|
57 private: |
|
58 // Sub test cases |
|
59 void deleteDestinations(); |
|
60 void deleteConnectionMethods(); |
|
61 |
|
62 private: |
|
63 // Test data |
|
64 CmManagerShim *mCmManagerShim; |
|
65 }; |
|