|
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 UT_CPKEYSCREENMODEL_H_ |
|
19 #define UT_CPKEYSCREENMODEL_H_ |
|
20 |
|
21 /*! |
|
22 \class TestCpKeyScreenModel \n |
|
23 \brief |
|
24 class name: CpKeyScreenModel \n |
|
25 class's description: control key screen settings\n |
|
26 type of test case: unit test\n |
|
27 test cases' number totally: 13\n |
|
28 */ |
|
29 #include <QObject> |
|
30 class CpKeyScreenModel; |
|
31 |
|
32 class TestCpKeyScreen:public QObject |
|
33 { |
|
34 Q_OBJECT |
|
35 private slots: |
|
36 // init function |
|
37 void initTestCase(); |
|
38 |
|
39 // CpKeyScreenModel |
|
40 void TestConstructorAndDestructor(); |
|
41 |
|
42 void TestKeyguardSupported(); |
|
43 void TestScreensaverSupported(); |
|
44 void TestBrightnessSupported(); |
|
45 void TestRotateSupported(); |
|
46 |
|
47 void TestSetAndGetKeyGuard(); |
|
48 void TestSetAndGetKeyGuardWithInvalidInput(); |
|
49 |
|
50 void TestSetAndGetRotateWithTrue(); |
|
51 void TestSetAndGetRotateWithFalse(); |
|
52 |
|
53 void TestSetAndGetBrightness(); |
|
54 void TestSetAndGetBrightnessWithInvalidInput(); |
|
55 |
|
56 void TestSetAndGetScreenSaverWithTrue(); |
|
57 void TestSetAndGetScreenSaverWithFalse(); |
|
58 |
|
59 // CpKeyScreenPlugin |
|
60 void TestPluginConstructorAndDestructor(); |
|
61 void TestPluginInterface(); |
|
62 |
|
63 //CpKeyScreenView |
|
64 void TestViewConstructorAndDestructor(); |
|
65 |
|
66 void cleanupTestCase(); |
|
67 private: |
|
68 CpKeyScreenModel *mModel; |
|
69 }; |
|
70 #endif /* UT_CPKEYSCREENMODEL_H_ */ |