|
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: Main test class for Control Panel's Language plugin |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TESTLANGUAGEPLUGIN_H |
|
19 #define TESTLANGUAGEPLUGIN_H |
|
20 |
|
21 #include <QtTest/QtTest> |
|
22 #include <HbInputLanguage> |
|
23 |
|
24 class CpLanguagePlugin; |
|
25 class CpLanguageView; |
|
26 class CpSettingFormEntryItemData; |
|
27 class HbMainWindow; |
|
28 |
|
29 /** |
|
30 * TestLanguagePlugin |
|
31 */ |
|
32 class TestLanguagePlugin : public QObject |
|
33 { |
|
34 Q_OBJECT |
|
35 |
|
36 private slots: |
|
37 void init(); |
|
38 void cleanup(); |
|
39 // Test cases start from here |
|
40 // CpLanguagePlugin |
|
41 void test_CpLanguagePlugin_createSettingFormItemData(); |
|
42 void test_CpLanguagePlugin_updateEntryItem(); |
|
43 |
|
44 void test_ExtendedLocaleUtil_localeMappings(); |
|
45 |
|
46 void test_CpLanguagePluginUtil_localizedLanguageNames(); |
|
47 void test_CpLanguagePluginUtil_localizedRegionNames(); |
|
48 void test_CpLanguagePluginUtil_localizedInputLanguageNames(); |
|
49 void test_CpLanguagePluginUtil_isChineseVariant(); |
|
50 |
|
51 void test_CpLanguageView_new(); |
|
52 void test_CpLanguageView_onRegionChanged(); |
|
53 void test_CpLanguageView_onPrimaryInputLanguageChanged(); |
|
54 void test_CpLanguageView_onSecondaryInputLanguageChanged(); |
|
55 void test_CpLanguageView_onPrimaryInputLanguageChanged2(); |
|
56 void test_CpLanguageView_onSecondaryInputLanguageChanged2(); |
|
57 void test_CpLanguageView_launchRegionalSettingsView(); |
|
58 void test_CpLanguageView_onDataFormItemActivated(); |
|
59 void test_CpLanguageView_close(); |
|
60 void test_CpLanguageView_fillDataFormComboBoxItem(); |
|
61 void test_CpLanguageView_updateSecondaryInputLanguageItem(); |
|
62 void test_CpLanguageView_promptRestart(); |
|
63 void test_CpLanguageView_restartDevice(); |
|
64 void test_CpLanguageView_languageRegionMapping(); |
|
65 |
|
66 private: |
|
67 HbMainWindow *mMainWindow; |
|
68 CpLanguagePlugin* mPlugin; |
|
69 CpLanguageView* mView; |
|
70 CpSettingFormEntryItemData *mEntryItemData; |
|
71 |
|
72 }; |
|
73 |
|
74 #endif // T_CPLANGUAGEPLUGIN_H |