|
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 * test the functions in cppluginconfigreader class |
|
16 */ |
|
17 |
|
18 #ifndef UT_CPPROFILEMODEL_H_ |
|
19 #define UT_CPPROFILEMODEL_H_ |
|
20 |
|
21 class CpPluginConfig; |
|
22 #include <QObject> |
|
23 |
|
24 class TestCpProfileModel :public QObject |
|
25 { |
|
26 Q_OBJECT |
|
27 private slots: |
|
28 // init function |
|
29 void initTestCase(); |
|
30 |
|
31 void testConstructor(); // test the constructor. |
|
32 |
|
33 void testProfileNameWithValidProfileID(); // test the profileName() function with valid profile ID. |
|
34 void testProfileNameWithInvalidProfileID(); // test the profileName() function with invalid profile ID. |
|
35 void testProfileNames(); // test the profileNames() function. |
|
36 |
|
37 void testActivateProfileWithInvalidID(); //test the activateProfile() function with invalid profile ID. |
|
38 void testActivateProfileWithValidID(); // test the activateProfile() function with valid profile ID. |
|
39 void testActiveProfileId(); // test the activeProfileId() function. |
|
40 |
|
41 void testProfileSettings(); // test the profileSettings() function. |
|
42 void testSetProfileSettings(); // test the setProfileSettings() function. |
|
43 |
|
44 void testRingToneOfActive(); // test the ringTone() function. |
|
45 void testSetRingToneAllWithValidPath(); // test the setRingTone() function with valid sound path. |
|
46 void testSetRingToneAllWithInvalidPath(); // test the setRingTone() function with invalid sound path. |
|
47 |
|
48 void testSetMasterWithValidVolume(); // test the setMasterVolume() function with valid volume value. |
|
49 void testSetMasterWithInvalidVolume(); // test the setMasterVolume() function with invalid volume value. |
|
50 void testMasterVolume(); // test the masterVolume() function. |
|
51 |
|
52 void testSetMasterVibra(); // test the setMasterVibra() functions. |
|
53 void testMasterVibra(); // test the masterVibra() functions. |
|
54 |
|
55 void testSetSilenceMode(); // test the setSilenceMode() functions. |
|
56 void testSilenceMode(); // test the silenceMode() functions. |
|
57 |
|
58 void testRingToneWithValidID(); // test the ringTone(int profileId) function with valid profile ID. |
|
59 void testRingToneWithInvalidID(); // test the ringTone(int profileId) function with invalid profile ID. |
|
60 void testSetRingToneWithValidID(); // test the setRingTone(int profileId, const QString& filePath) function with valid profile ID. |
|
61 void testSetRingToneWithInvalidID(); // test the setRingTone(int profileId, const QString& filePath) function with invalid profile ID. |
|
62 |
|
63 void testMessageToneWithValidID(); // test MessageTone() function with valid profile ID. |
|
64 void testMessageToneWithInvalidID(); // test MessageTone() function with valid profile ID. |
|
65 void testSetMessageToneWithValidID(); // test the setMessageTone() function with valid profile ID. |
|
66 void testSetMessageToneWithInvalidID(); // test the setMessageTone() function with invalid profile ID. |
|
67 |
|
68 void testEmailToneWithValidID(); // test emailTone() function with valid profile ID. |
|
69 void testEmailToneWithInvalidID(); // test emailTone() function with valid profile ID. |
|
70 void testSetEmailToneWithValidID(); // test the setEmailTone() function with valid profile ID. |
|
71 void testSetEmailToneWithInvalidID(); // test the setEmailTone() function with invalid profile ID. |
|
72 |
|
73 void testReminderToneWithValidID(); // test reminderTone() function with valid profile ID. |
|
74 void testReminderToneWithInvalidID(); // test reminderTone() function with valid profile ID. |
|
75 void testSetReminderToneWithValidID(); // test the setReminderTone() function with valid profile ID. |
|
76 void testSetReminderToneWithInvalidID(); // test the setReminderTone() function with invalid profile ID. |
|
77 |
|
78 void testNotificationToneWithValidID(); // test notificationTone() function with valid profile ID. |
|
79 void testNotificationToneWithInvalidID(); // test notificationTone() function with valid profile ID. |
|
80 void testSetNotificationTone(); // test the setNotificationTone() function with valid profile ID. |
|
81 |
|
82 void testSetKeyTouchScreenToneWithValidID(); // test the setKeyTouchScreenTone()function with valid profile ID. |
|
83 void testSetKeyTouchScreenToneWithInvalidID(); // test the setKeyTouchScreenTone()function with invalid profile ID. |
|
84 void testKeyTouchScreenToneWithValidID(); // test the keyTouchScreenTone()function with valid profile ID. |
|
85 void testKeyTouchScreenToneWithInvalidID(); // test the keyTouchScreenTone()function with invalid profile ID. |
|
86 |
|
87 void testSetKeyTouchScreenVibraWithValidID(); // test the setKeyTouchScreenVibra()function with valid profile ID. |
|
88 void testSetKeyTouchScreenVibraWithInvalidID(); // test the setKeyTouchScreenVibra()function with invalid profile ID. |
|
89 void testKeyTouchScreenVibraWithValidID(); // test the keyTouchScreenVibra()function with valid profile ID. |
|
90 void testKeyTouchScreenVibraWithInvalidID(); // test the keyTouchScreenVibra()function with invalid profile ID. |
|
91 |
|
92 void cleanupTestCase(); |
|
93 private: |
|
94 QString ringTonePath1; |
|
95 QString ringTonePath2; |
|
96 }; |
|
97 #endif /* UT_CPPROFILEMODEL_H_ */ |