1 /* |
|
2 * Copyright (c) 2009-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: This test class contains unit tests for two cxengine classes: |
|
15 * CxeSettings and CxeSettingsImp. CxeSettings is mostly a pure virtual |
|
16 * class containing couple of overloaded versions of get() methods, and so it is |
|
17 * tested together with CxeSettingsImp, which implements CxeSettings |
|
18 * |
|
19 */ |
|
20 #ifndef UNITTEST_CXESETTINGSIMP_H |
|
21 #define UNITTEST_CXESETTINGSIMP_H |
|
22 |
|
23 #include <QObject> |
|
24 #include "cxesettingsimp.h" |
|
25 |
|
26 class CxeFakeSettingsStore; |
|
27 class CxeSettingsImp; |
|
28 |
|
29 class UnitTestCxeSettingsImp : public QObject |
|
30 { |
|
31 Q_OBJECT |
|
32 |
|
33 public: |
|
34 UnitTestCxeSettingsImp(); |
|
35 virtual ~UnitTestCxeSettingsImp(); |
|
36 |
|
37 public slots: |
|
38 void testSlot(); |
|
39 |
|
40 private slots: |
|
41 void init(); |
|
42 void cleanup(); |
|
43 |
|
44 void testLoadImageSettings(); |
|
45 void testLoadVideoSettings(); |
|
46 void testLoadImageAndVideoSettings(); |
|
47 |
|
48 void testGet(); |
|
49 void testGet2(); |
|
50 void testGet3(); |
|
51 void testGetGarbage(); |
|
52 void testSet(); |
|
53 |
|
54 void testReset(); |
|
55 void testGetVariationSetting(); |
|
56 void testListenForSetting(); |
|
57 |
|
58 private: |
|
59 |
|
60 CxeFakeSettingsStore *mSettingsStore; |
|
61 CxeSettingsImp *mSettingsImp; |
|
62 }; |
|
63 |
|
64 #endif |
|
65 |
|