|
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: Module tests for Profile name array wrapper. |
|
15 * |
|
16 */ |
|
17 //////////////////////////////////////////////////////////////////////// |
|
18 // MT_MProEngProfile.h |
|
19 // |
|
20 |
|
21 #ifndef MT_MPROENGPROFILE_H |
|
22 #define MT_MPROENGPROFILE_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32std.h> |
|
26 #include <f32file.h> |
|
27 #include <bamdesca.h> |
|
28 #include <cntdef.h> |
|
29 #include "MT_CSchedulerUtility.h" |
|
30 #include <CEUnitTestSuiteClass.h> |
|
31 #include <MProEngProfileObserver.h> |
|
32 |
|
33 // FORWARD DECLARATIONS |
|
34 class MProEngProfile; |
|
35 class MProEngEngine; |
|
36 class MProfileEngineExtended; |
|
37 class MProfileExtended; |
|
38 class MT_CProEngProfileObserver; |
|
39 class CPbkContactEngine; |
|
40 |
|
41 // CLASS DECLARATION |
|
42 |
|
43 /** |
|
44 * Module tests for Profiles alert tone seeker. |
|
45 * |
|
46 */ |
|
47 class MT_MProEngProfile |
|
48 : public CEUnitTestSuiteClass |
|
49 { |
|
50 public: |
|
51 |
|
52 /** |
|
53 * Two phase construction |
|
54 */ |
|
55 static MT_MProEngProfile* NewL(); |
|
56 static MT_MProEngProfile* NewLC(); |
|
57 |
|
58 /** |
|
59 * Destructor. |
|
60 */ |
|
61 virtual ~MT_MProEngProfile(); |
|
62 |
|
63 private: // Constructors and destructors |
|
64 |
|
65 MT_MProEngProfile(); |
|
66 void ConstructL(); |
|
67 |
|
68 private: // Setup functions |
|
69 |
|
70 void EmptySetup(); |
|
71 void SetupL(); |
|
72 void Setup0L(); |
|
73 void Setup1L(); |
|
74 void Setup2L(); |
|
75 void Setup3L(); |
|
76 void Setup4L(); |
|
77 #ifdef __OFFLINE_MODE |
|
78 void Setup5L(); |
|
79 #endif // __OFFLINE_MODE |
|
80 #ifdef __DRIVE_MODE |
|
81 void Setup6L(); |
|
82 #endif // __DRIVE_MODE |
|
83 |
|
84 void SetupSetAlertForTestL(); |
|
85 |
|
86 void SetupAlertForTestL(); |
|
87 |
|
88 void SetupAlertForTest0L(); |
|
89 |
|
90 void SetupSetAlertForTest0L(); |
|
91 |
|
92 void SetupCommitChangeTest0L(); |
|
93 |
|
94 |
|
95 void SetupAlertForTest1L(); |
|
96 |
|
97 void SetupSetAlertForTest1L(); |
|
98 |
|
99 void SetupCommitChangeTest1L(); |
|
100 |
|
101 |
|
102 void SetupAlertForTest2L(); |
|
103 |
|
104 void SetupSetAlertForTest2L(); |
|
105 |
|
106 void SetupCommitChangeTest2L(); |
|
107 |
|
108 |
|
109 void SetupAlertForTest3L(); |
|
110 |
|
111 void SetupSetAlertForTest3L(); |
|
112 |
|
113 void SetupCommitChangeTest3L(); |
|
114 |
|
115 |
|
116 void SetupAlertForTest4L(); |
|
117 |
|
118 void SetupSetAlertForTest4L(); |
|
119 |
|
120 void SetupCommitChangeTest4L(); |
|
121 |
|
122 #ifdef __OFFLINE_MODE |
|
123 void SetupAlertForTest5L(); |
|
124 |
|
125 void SetupSetAlertForTest5L(); |
|
126 |
|
127 void SetupCommitChangeTest5L(); |
|
128 #endif // __OFFLINE_MODE |
|
129 |
|
130 |
|
131 #ifdef __DRIVE_MODE |
|
132 void SetupAlertForTest6L(); |
|
133 |
|
134 void SetupSetAlertForTest6L(); |
|
135 |
|
136 void SetupCommitChangeTest6L(); |
|
137 #endif // __DRIVE_MODE |
|
138 |
|
139 private: // Teardown functions |
|
140 |
|
141 void EmptyTeardown(); |
|
142 |
|
143 void Teardown(); |
|
144 |
|
145 void TeardownAlertForGroups(); |
|
146 |
|
147 private: // Test functions |
|
148 |
|
149 void ReleaseTestL(); |
|
150 |
|
151 void AlertForTestL(); |
|
152 |
|
153 void SetAlertForTestL(); |
|
154 |
|
155 void IsSilentTestL(); |
|
156 |
|
157 void ProfileNameTestL(); |
|
158 |
|
159 void ProfileTonesTestL(); |
|
160 |
|
161 void ToneSettingsTestL(); |
|
162 |
|
163 void CommitChangeTestL(); |
|
164 |
|
165 private: // Implementation |
|
166 |
|
167 EUNIT_DECLARE_TEST_TABLE; |
|
168 |
|
169 private: // Data |
|
170 |
|
171 TInt iProfileId; |
|
172 MProfileEngineExtended* iInternalEngine; |
|
173 MProfileExtended* iInternalProfile; |
|
174 MProEngEngine* iEngine; |
|
175 MProEngProfile* iProfile; |
|
176 RArray<TContactItemId> iContactGroups; |
|
177 CPbkContactEngine* iContactEngine; |
|
178 RFs iFs; |
|
179 |
|
180 }; |
|
181 |
|
182 #endif // MT_MPROENGPROFILE_H |
|
183 |
|
184 // End of File |
|
185 |