|
1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef _TE_CNTSYNCSYNC_H_ |
|
22 #define _TE_CNTSYNCSYNC_H_ |
|
23 |
|
24 #include <phbksync.h> |
|
25 |
|
26 class CPhbkSyncIntegrationTestBase : public CCntSyncTestStep |
|
27 { |
|
28 public: |
|
29 virtual enum TVerdict doTestStepL() {return EFail; }; |
|
30 |
|
31 protected: |
|
32 void CheckNameInDBL(const TDesC& aName); |
|
33 void CheckDefaultsL(); |
|
34 void ReadEntryInDBL(const TDesC& aName); |
|
35 void DeleteEntryInDBL(const TDesC& aName); |
|
36 void AddEntryInDBL(const TDesC& aNumber, const TDesC& aName, const TDesC& aEmail); |
|
37 void EditEntryInDBL(const TDesC& aNumber, const TDesC& aEmail); |
|
38 void CheckSlotManipulationL(const TUid aPhonebook); |
|
39 void CheckSlotManipulationAndWriteL(const TUid aPhonebook); |
|
40 }; |
|
41 |
|
42 class CPhbkSyncAutomaticSameICCTest : public CPhbkSyncIntegrationTestBase |
|
43 { |
|
44 public: |
|
45 static CPhbkSyncAutomaticSameICCTest* NewL(); |
|
46 virtual enum TVerdict doTestStepL(); |
|
47 |
|
48 CPhbkSyncAutomaticSameICCTest(); |
|
49 }; |
|
50 |
|
51 class CPhbkSyncAutomaticCurrentICCTest : public CPhbkSyncIntegrationTestBase |
|
52 { |
|
53 public: |
|
54 static CPhbkSyncAutomaticCurrentICCTest* NewL(); |
|
55 virtual enum TVerdict doTestStepL(); |
|
56 |
|
57 CPhbkSyncAutomaticCurrentICCTest(); |
|
58 }; |
|
59 |
|
60 class CPhbkSyncManualTest : public CPhbkSyncIntegrationTestBase |
|
61 { |
|
62 public: |
|
63 static CPhbkSyncManualTest* NewL(); |
|
64 virtual enum TVerdict doTestStepL(); |
|
65 |
|
66 CPhbkSyncManualTest(); |
|
67 }; |
|
68 |
|
69 class CPhbkSyncManualNotReadyTest : public CPhbkSyncIntegrationTestBase |
|
70 { |
|
71 public: |
|
72 static CPhbkSyncManualNotReadyTest* NewL(); |
|
73 virtual enum TVerdict doTestStepL(); |
|
74 |
|
75 CPhbkSyncManualNotReadyTest(); |
|
76 }; |
|
77 |
|
78 class CPhbkSyncManualDiffSizeSIMTest : public CPhbkSyncIntegrationTestBase |
|
79 { |
|
80 public: |
|
81 static CPhbkSyncManualDiffSizeSIMTest* NewL(); |
|
82 virtual enum TVerdict doTestStepL(); |
|
83 |
|
84 CPhbkSyncManualDiffSizeSIMTest(); |
|
85 }; |
|
86 |
|
87 class CPhbkSyncSATUpdatesTestBase : public CPhbkSyncIntegrationTestBase |
|
88 { |
|
89 public: |
|
90 static CPhbkSyncSATUpdatesTestBase* NewL(); |
|
91 virtual enum TVerdict doTestStepL(); |
|
92 |
|
93 CPhbkSyncSATUpdatesTestBase(); |
|
94 }; |
|
95 |
|
96 class CPhbkSyncICCLockedTestBase : public CPhbkSyncIntegrationTestBase |
|
97 { |
|
98 public: |
|
99 static CPhbkSyncICCLockedTestBase* NewL(); |
|
100 virtual enum TVerdict doTestStepL(); |
|
101 |
|
102 CPhbkSyncICCLockedTestBase(); |
|
103 }; |
|
104 |
|
105 class CPhbkSyncConsecutiveTestBase : public CPhbkSyncIntegrationTestBase |
|
106 { |
|
107 public: |
|
108 static CPhbkSyncConsecutiveTestBase* NewL(); |
|
109 virtual enum TVerdict doTestStepL(); |
|
110 |
|
111 CPhbkSyncConsecutiveTestBase(); |
|
112 }; |
|
113 |
|
114 class CPhbkSyncFailureTestBase : public CPhbkSyncIntegrationTestBase |
|
115 { |
|
116 public: |
|
117 static CPhbkSyncFailureTestBase* NewL(); |
|
118 virtual enum TVerdict doTestStepL(); |
|
119 |
|
120 CPhbkSyncFailureTestBase(); |
|
121 }; |
|
122 |
|
123 class CPhbkSyncFailureAndCheckErrorTestBase : public CPhbkSyncIntegrationTestBase |
|
124 { |
|
125 public: |
|
126 static CPhbkSyncFailureAndCheckErrorTestBase* NewL(); |
|
127 virtual enum TVerdict doTestStepL(); |
|
128 |
|
129 CPhbkSyncFailureAndCheckErrorTestBase(); |
|
130 }; |
|
131 |
|
132 class CPhbkSyncNotificationTestBase : public CPhbkSyncIntegrationTestBase |
|
133 { |
|
134 public: |
|
135 static CPhbkSyncNotificationTestBase* NewL(); |
|
136 virtual enum TVerdict doTestStepL(); |
|
137 |
|
138 CPhbkSyncNotificationTestBase(); |
|
139 }; |
|
140 |
|
141 class CPhbkSyncDeleteDBTestBase : public CPhbkSyncIntegrationTestBase |
|
142 { |
|
143 public: |
|
144 static CPhbkSyncDeleteDBTestBase* NewL(); |
|
145 virtual enum TVerdict doTestStepL(); |
|
146 |
|
147 CPhbkSyncDeleteDBTestBase(); |
|
148 }; |
|
149 |
|
150 class CPhbkSyncEmptyICCTestBase : public CPhbkSyncIntegrationTestBase |
|
151 { |
|
152 public: |
|
153 static CPhbkSyncEmptyICCTestBase* NewL(); |
|
154 virtual enum TVerdict doTestStepL(); |
|
155 |
|
156 CPhbkSyncEmptyICCTestBase(); |
|
157 }; |
|
158 |
|
159 class CPhbkSyncICCSlotsManipulationTestBase : public CPhbkSyncIntegrationTestBase |
|
160 { |
|
161 public: |
|
162 static CPhbkSyncICCSlotsManipulationTestBase* NewL(); |
|
163 virtual enum TVerdict doTestStepL(); |
|
164 |
|
165 CPhbkSyncICCSlotsManipulationTestBase(); |
|
166 }; |
|
167 |
|
168 class CPhbkSyncICCSlotsManipulationAndWriteTestBase : public CPhbkSyncIntegrationTestBase |
|
169 { |
|
170 public: |
|
171 static CPhbkSyncICCSlotsManipulationAndWriteTestBase* NewL(); |
|
172 virtual enum TVerdict doTestStepL(); |
|
173 |
|
174 CPhbkSyncICCSlotsManipulationAndWriteTestBase(); |
|
175 }; |
|
176 |
|
177 class CPhbkSyncMultipleRequestsTestBase : public CPhbkSyncIntegrationTestBase |
|
178 { |
|
179 public: |
|
180 static CPhbkSyncMultipleRequestsTestBase* NewL(); |
|
181 virtual enum TVerdict doTestStepL(); |
|
182 |
|
183 CPhbkSyncMultipleRequestsTestBase(); |
|
184 }; |
|
185 |
|
186 class CPhbkSyncGeneralResponseTestBase : public CPhbkSyncIntegrationTestBase |
|
187 { |
|
188 public: |
|
189 static CPhbkSyncGeneralResponseTestBase* NewL(); |
|
190 virtual enum TVerdict doTestStepL(); |
|
191 |
|
192 CPhbkSyncGeneralResponseTestBase(); |
|
193 void DoSyncAndTestServerResponceL(TUid aPhonebookUid, TBool aTestResponse, |
|
194 const TDesC& aPhonebookName); |
|
195 }; |
|
196 |
|
197 class CPhbkSyncGetAndContactFormatTestBase : public CPhbkSyncIntegrationTestBase |
|
198 { |
|
199 public: |
|
200 static CPhbkSyncGetAndContactFormatTestBase* NewL(); |
|
201 virtual enum TVerdict doTestStepL(); |
|
202 |
|
203 CPhbkSyncGetAndContactFormatTestBase(); |
|
204 }; |
|
205 |
|
206 class CPhbkSyncSetSyncModeAndAutoSyncTest : public CPhbkSyncIntegrationTestBase |
|
207 { |
|
208 public: |
|
209 static CPhbkSyncSetSyncModeAndAutoSyncTest* NewL(); |
|
210 virtual enum TVerdict doTestStepL(); |
|
211 |
|
212 CPhbkSyncSetSyncModeAndAutoSyncTest(); |
|
213 }; |
|
214 |
|
215 class CPhbkSyncSyncUnsupportedPhonebook : public CPhbkSyncIntegrationTestBase |
|
216 { |
|
217 public: |
|
218 static CPhbkSyncSyncUnsupportedPhonebook* NewL(); |
|
219 virtual enum TVerdict doTestStepL(); |
|
220 |
|
221 CPhbkSyncSyncUnsupportedPhonebook(); |
|
222 }; |
|
223 |
|
224 |
|
225 class CPhbkSyncSyncDiffNumberTypesRepeatedly : public CPhbkSyncIntegrationTestBase |
|
226 { |
|
227 public: |
|
228 virtual enum TVerdict doTestStepL(); |
|
229 }; |
|
230 |
|
231 |
|
232 class CPhbkSyncSyncInternationalNumbers : public CPhbkSyncIntegrationTestBase |
|
233 { |
|
234 public: |
|
235 virtual enum TVerdict doTestStepL(); |
|
236 }; |
|
237 |
|
238 class CPhbkSyncSyncAutomaticWithUnsupportedPhonebook : public CPhbkSyncIntegrationTestBase |
|
239 { |
|
240 public: |
|
241 virtual enum TVerdict doTestStepL(); |
|
242 }; |
|
243 |
|
244 |
|
245 #endif |