72
|
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 |
//
|
|
16 |
//
|
|
17 |
//
|
|
18 |
// This contains CommDb Unit Test Cases 040.XX
|
|
19 |
|
|
20 |
// EPOC includes
|
|
21 |
#include <e32base.h>
|
|
22 |
#include <commdb.h>
|
|
23 |
#include <d32comm.h>
|
|
24 |
|
|
25 |
// Test system includes
|
|
26 |
#include "Teststepcommdb.h"
|
|
27 |
#include "Step_041_xx.h"
|
|
28 |
|
|
29 |
|
|
30 |
CCommDbTest041_01::CCommDbTest041_01()
|
|
31 |
{
|
|
32 |
// store the name of this test case
|
|
33 |
SetTestStepName(_L("step_041_01"));
|
|
34 |
}
|
|
35 |
|
|
36 |
CCommDbTest041_01::~CCommDbTest041_01()
|
|
37 |
{}
|
|
38 |
|
|
39 |
TVerdict CCommDbTest041_01::doTestStepL( void )
|
|
40 |
{
|
|
41 |
if(executeStepL()!=KErrNone)
|
|
42 |
SetTestStepResult(EFail); SetTestStepResult(EPass); return TestStepResult();
|
|
43 |
}
|
|
44 |
|
|
45 |
TVerdict CCommDbTest041_01::doTestStepPreambleL()
|
|
46 |
{
|
|
47 |
SetTestStepResult(EPass); return TestStepResult();
|
|
48 |
}
|
|
49 |
|
|
50 |
TInt CCommDbTest041_01::executeStepL()
|
|
51 |
{
|
|
52 |
iOverSet=CCommDbOverrideSettings::NewL(CCommDbOverrideSettings::EParamListPartial);
|
|
53 |
TUint32 temp = 5000;
|
|
54 |
User::LeaveIfError(iOverSet->SetIntOverride(TPtrC(DIAL_OUT_ISP), TPtrC(ISP_IWF_TO_MS), temp));
|
|
55 |
temp=22; //Set temp to something different
|
|
56 |
User::LeaveIfError(iOverSet->GetIntOverride(TPtrC(DIAL_OUT_ISP), TPtrC(ISP_IWF_TO_MS), temp));
|
|
57 |
|
|
58 |
if(temp!=5000)
|
|
59 |
return KErrGeneral;
|
|
60 |
|
|
61 |
return KErrNone;
|
|
62 |
}
|
|
63 |
|
|
64 |
TVerdict CCommDbTest041_01::doTestStepPostambleL()
|
|
65 |
{
|
|
66 |
delete iOverSet;
|
|
67 |
SetTestStepResult(EPass); return TestStepResult();
|
|
68 |
}
|
|
69 |
|
|
70 |
/////////////////////////////////////////////////////////////////////////////////////
|
|
71 |
|
|
72 |
CCommDbTest041_02::CCommDbTest041_02()
|
|
73 |
{
|
|
74 |
// store the name of this test case
|
|
75 |
SetTestStepName(_L("step_041_02"));
|
|
76 |
}
|
|
77 |
|
|
78 |
CCommDbTest041_02::~CCommDbTest041_02()
|
|
79 |
{}
|
|
80 |
|
|
81 |
TVerdict CCommDbTest041_02::doTestStepL( void )
|
|
82 |
{
|
|
83 |
if(executeStepL()!=KErrNone)
|
|
84 |
SetTestStepResult(EFail); SetTestStepResult(EPass); return TestStepResult();
|
|
85 |
}
|
|
86 |
|
|
87 |
TVerdict CCommDbTest041_02::doTestStepPreambleL()
|
|
88 |
{
|
|
89 |
SetTestStepResult(EPass); return TestStepResult();
|
|
90 |
}
|
|
91 |
|
|
92 |
TInt CCommDbTest041_02::executeStepL()
|
|
93 |
{
|
|
94 |
iOverSet=CCommDbOverrideSettings::NewL(CCommDbOverrideSettings::EParamListPartial);
|
|
95 |
TBool temp = ETrue;
|
|
96 |
User::LeaveIfError(iOverSet->SetBoolOverride(TPtrC(DIAL_OUT_ISP), TPtrC(SERVICE_IF_CALLBACK_ENABLED), temp));
|
|
97 |
temp=EFalse;
|
|
98 |
User::LeaveIfError(iOverSet->GetBoolOverride(TPtrC(DIAL_OUT_ISP), TPtrC(SERVICE_IF_CALLBACK_ENABLED), temp));
|
|
99 |
|
|
100 |
if(temp==EFalse)
|
|
101 |
return KErrGeneral;
|
|
102 |
|
|
103 |
return KErrNone;
|
|
104 |
}
|
|
105 |
|
|
106 |
TVerdict CCommDbTest041_02::doTestStepPostambleL()
|
|
107 |
{
|
|
108 |
delete iOverSet;
|
|
109 |
SetTestStepResult(EPass); return TestStepResult();
|
|
110 |
}
|
|
111 |
|
|
112 |
/////////////////////////////////////////////////////////////////////////////////////
|
|
113 |
|
|
114 |
CCommDbTest041_03::CCommDbTest041_03()
|
|
115 |
{
|
|
116 |
// store the name of this test case
|
|
117 |
SetTestStepName(_L("step_041_03"));
|
|
118 |
}
|
|
119 |
|
|
120 |
CCommDbTest041_03::~CCommDbTest041_03()
|
|
121 |
{}
|
|
122 |
|
|
123 |
TVerdict CCommDbTest041_03::doTestStepL( void )
|
|
124 |
{
|
|
125 |
if(executeStepL()!=KErrNone)
|
|
126 |
SetTestStepResult(EFail); SetTestStepResult(EPass); return TestStepResult();
|
|
127 |
}
|
|
128 |
|
|
129 |
TVerdict CCommDbTest041_03::doTestStepPreambleL()
|
|
130 |
{
|
|
131 |
SetTestStepResult(EPass); return TestStepResult();
|
|
132 |
}
|
|
133 |
|
|
134 |
TInt CCommDbTest041_03::executeStepL()
|
|
135 |
{
|
|
136 |
iOverSet=CCommDbOverrideSettings::NewL(CCommDbOverrideSettings::EParamListPartial);
|
|
137 |
TBuf8<KCommsDbSvrMaxFieldLength> temp(_L8("Hi There!!"));
|
|
138 |
User::LeaveIfError(iOverSet->SetDesOverride(TPtrC(DIAL_OUT_ISP), TPtrC(ISP_IF_CALLBACK_INFO), temp));
|
|
139 |
temp = _L8("Go Away!!");
|
|
140 |
User::LeaveIfError(iOverSet->GetDesOverride(TPtrC(DIAL_OUT_ISP), TPtrC(ISP_IF_CALLBACK_INFO), temp));
|
|
141 |
|
|
142 |
if(temp!=_L8("Hi There!!"))
|
|
143 |
return KErrGeneral;
|
|
144 |
|
|
145 |
return KErrNone;
|
|
146 |
}
|
|
147 |
|
|
148 |
TVerdict CCommDbTest041_03::doTestStepPostambleL()
|
|
149 |
{
|
|
150 |
delete iOverSet;
|
|
151 |
SetTestStepResult(EPass); return TestStepResult();
|
|
152 |
}
|
|
153 |
|
|
154 |
/////////////////////////////////////////////////////////////////////////////////////
|
|
155 |
|
|
156 |
CCommDbTest041_04::CCommDbTest041_04()
|
|
157 |
{
|
|
158 |
// store the name of this test case
|
|
159 |
SetTestStepName(_L("step_041_04"));
|
|
160 |
}
|
|
161 |
|
|
162 |
CCommDbTest041_04::~CCommDbTest041_04()
|
|
163 |
{}
|
|
164 |
|
|
165 |
TVerdict CCommDbTest041_04::doTestStepL( void )
|
|
166 |
{
|
|
167 |
if(executeStepL()!=KErrNone)
|
|
168 |
SetTestStepResult(EFail); SetTestStepResult(EPass); return TestStepResult();
|
|
169 |
}
|
|
170 |
|
|
171 |
TVerdict CCommDbTest041_04::doTestStepPreambleL()
|
|
172 |
{
|
|
173 |
SetTestStepResult(EPass); return TestStepResult();
|
|
174 |
}
|
|
175 |
|
|
176 |
TInt CCommDbTest041_04::executeStepL()
|
|
177 |
{
|
|
178 |
iOverSet=CCommDbOverrideSettings::NewL(CCommDbOverrideSettings::EParamListPartial);
|
|
179 |
TBuf<KCommsDbSvrMaxFieldLength> temp(_L("Hi There!!"));
|
|
180 |
User::LeaveIfError(iOverSet->SetDesOverride(TPtrC(DIAL_OUT_ISP), TPtrC(ISP_DEFAULT_TEL_NUM), temp));
|
|
181 |
temp = _L("Go Away!!");
|
|
182 |
User::LeaveIfError(iOverSet->GetDesOverride(TPtrC(DIAL_OUT_ISP), TPtrC(ISP_DEFAULT_TEL_NUM), temp));
|
|
183 |
|
|
184 |
if(temp!=_L("Hi There!!"))
|
|
185 |
return KErrGeneral;
|
|
186 |
|
|
187 |
return KErrNone;
|
|
188 |
}
|
|
189 |
|
|
190 |
TVerdict CCommDbTest041_04::doTestStepPostambleL()
|
|
191 |
{
|
|
192 |
delete iOverSet;
|
|
193 |
SetTestStepResult(EPass); return TestStepResult();
|
|
194 |
}
|
|
195 |
|
|
196 |
/////////////////////////////////////////////////////////////////////////////////////
|
|
197 |
|
|
198 |
CCommDbTest041_05::CCommDbTest041_05()
|
|
199 |
{
|
|
200 |
// store the name of this test case
|
|
201 |
SetTestStepName(_L("step_041_05"));
|
|
202 |
}
|
|
203 |
|
|
204 |
CCommDbTest041_05::~CCommDbTest041_05()
|
|
205 |
{}
|
|
206 |
|
|
207 |
TVerdict CCommDbTest041_05::doTestStepL( void )
|
|
208 |
{
|
|
209 |
if(executeStepL()!=KErrNone)
|
|
210 |
SetTestStepResult(EFail); SetTestStepResult(EPass); return TestStepResult();
|
|
211 |
}
|
|
212 |
|
|
213 |
TVerdict CCommDbTest041_05::doTestStepPreambleL()
|
|
214 |
{
|
|
215 |
SetTestStepResult(EPass); return TestStepResult();
|
|
216 |
}
|
|
217 |
|
|
218 |
TInt CCommDbTest041_05::executeStepL()
|
|
219 |
{
|
|
220 |
_LIT(KLongString, "SEND \"hello\"\nWAIT 20\n{\n\"hello back\"\n");
|
|
221 |
iOverSet=CCommDbOverrideSettings::NewL(CCommDbOverrideSettings::EParamListPartial);
|
|
222 |
TBuf<KCommsDbSvrMaxFieldLength> temp(KLongString); //Lots of stuff, nothing important
|
|
223 |
User::LeaveIfError(iOverSet->SetLongDesOverride(TPtrC(DIAL_OUT_ISP), TPtrC(ISP_LOGIN_SCRIPT), temp));
|
|
224 |
temp = _L("Go Away!!");
|
|
225 |
User::LeaveIfError(iOverSet->GetLongDesOverride(TPtrC(DIAL_OUT_ISP), TPtrC(ISP_LOGIN_SCRIPT), temp));
|
|
226 |
|
|
227 |
if(temp!=KLongString)
|
|
228 |
return KErrGeneral;
|
|
229 |
|
|
230 |
TInt stringLength;
|
|
231 |
|
|
232 |
User::LeaveIfError(iOverSet->GetLongDesOverrideLength(TPtrC(DIAL_OUT_ISP), TPtrC(ISP_LOGIN_SCRIPT), stringLength));
|
|
233 |
|
|
234 |
if(stringLength!=TPtrC(KLongString).Length())
|
|
235 |
return KErrGeneral;
|
|
236 |
|
|
237 |
return KErrNone;
|
|
238 |
}
|
|
239 |
|
|
240 |
TVerdict CCommDbTest041_05::doTestStepPostambleL()
|
|
241 |
{
|
|
242 |
delete iOverSet;
|
|
243 |
SetTestStepResult(EPass); return TestStepResult();
|
|
244 |
}
|
|
245 |
|
|
246 |
/////////////////////////////////////////////////////////////////////////////////////
|
|
247 |
|
|
248 |
CCommDbTest041_06::CCommDbTest041_06()
|
|
249 |
{
|
|
250 |
// store the name of this test case
|
|
251 |
SetTestStepName(_L("step_041_06"));
|
|
252 |
}
|
|
253 |
|
|
254 |
CCommDbTest041_06::~CCommDbTest041_06()
|
|
255 |
{}
|
|
256 |
|
|
257 |
TVerdict CCommDbTest041_06::doTestStepL( void )
|
|
258 |
{
|
|
259 |
if(executeStepL()!=KErrNone)
|
|
260 |
SetTestStepResult(EFail); SetTestStepResult(EPass); return TestStepResult();
|
|
261 |
}
|
|
262 |
|
|
263 |
TVerdict CCommDbTest041_06::doTestStepPreambleL()
|
|
264 |
{
|
|
265 |
SetTestStepResult(EPass); return TestStepResult();
|
|
266 |
}
|
|
267 |
|
|
268 |
TInt CCommDbTest041_06::executeStepL()
|
|
269 |
{
|
|
270 |
iOverSet=CCommDbOverrideSettings::NewL(CCommDbOverrideSettings::EParamListPartial);
|
|
271 |
|
|
272 |
TUint32 tempUint = 5000;
|
|
273 |
User::LeaveIfError(iOverSet->SetIntOverride(TPtrC(DIAL_OUT_ISP), TPtrC(ISP_IWF_TO_MS), tempUint));
|
|
274 |
if(!iOverSet->IsOverridden(TPtrC(DIAL_OUT_ISP), TPtrC(ISP_IWF_TO_MS), CCommDbOverrideSettings::EIntValue))
|
|
275 |
return KErrGeneral;
|
|
276 |
|
|
277 |
TBool tempBool = ETrue;
|
|
278 |
User::LeaveIfError(iOverSet->SetBoolOverride(TPtrC(DIAL_OUT_ISP), TPtrC(SERVICE_IF_CALLBACK_ENABLED), tempBool));
|
|
279 |
if(!iOverSet->IsOverridden(TPtrC(DIAL_OUT_ISP), TPtrC(SERVICE_IF_CALLBACK_ENABLED), CCommDbOverrideSettings::EBoolValue))
|
|
280 |
return KErrGeneral;
|
|
281 |
|
|
282 |
TBuf8<KCommsDbSvrMaxFieldLength> temp8String(_L8("Hi There!!"));
|
|
283 |
User::LeaveIfError(iOverSet->SetDesOverride(TPtrC(DIAL_OUT_ISP), TPtrC(ISP_IF_CALLBACK_INFO), temp8String));
|
|
284 |
if(!iOverSet->IsOverridden(TPtrC(DIAL_OUT_ISP), TPtrC(ISP_IF_CALLBACK_INFO), CCommDbOverrideSettings::EDes8Value))
|
|
285 |
return KErrGeneral;
|
|
286 |
|
|
287 |
TBuf<KCommsDbSvrMaxFieldLength> temp16String(_L("Hi There!!"));
|
|
288 |
User::LeaveIfError(iOverSet->SetDesOverride(TPtrC(DIAL_OUT_ISP), TPtrC(ISP_DEFAULT_TEL_NUM), temp16String));
|
|
289 |
if(!iOverSet->IsOverridden(TPtrC(DIAL_OUT_ISP), TPtrC(ISP_DEFAULT_TEL_NUM), CCommDbOverrideSettings::EDes16Value))
|
|
290 |
return KErrGeneral;
|
|
291 |
|
|
292 |
TBuf<KCommsDbSvrMaxFieldLength> tempLongString(_L("SEND \"hello\"\nWAIT 20\n{\n\"hello back\"\n")); //Lots of stuff, nothing important
|
|
293 |
User::LeaveIfError(iOverSet->SetLongDesOverride(TPtrC(DIAL_OUT_ISP), TPtrC(ISP_LOGIN_SCRIPT), tempLongString));
|
|
294 |
if(!iOverSet->IsOverridden(TPtrC(DIAL_OUT_ISP), TPtrC(ISP_LOGIN_SCRIPT), CCommDbOverrideSettings::ELongDesValue))
|
|
295 |
return KErrGeneral;
|
|
296 |
|
|
297 |
return KErrNone;
|
|
298 |
}
|
|
299 |
|
|
300 |
TVerdict CCommDbTest041_06::doTestStepPostambleL()
|
|
301 |
{
|
|
302 |
delete iOverSet;
|
|
303 |
SetTestStepResult(EPass); return TestStepResult();
|
|
304 |
}
|
|
305 |
|
|
306 |
/////////////////////////////////////////////////////////////////////////////////////
|
|
307 |
|
|
308 |
CCommDbTest041_07::CCommDbTest041_07()
|
|
309 |
{
|
|
310 |
// store the name of this test case
|
|
311 |
SetTestStepName(_L("step_041_07"));
|
|
312 |
}
|
|
313 |
|
|
314 |
CCommDbTest041_07::~CCommDbTest041_07()
|
|
315 |
{}
|
|
316 |
|
|
317 |
TVerdict CCommDbTest041_07::doTestStepL( void )
|
|
318 |
{
|
|
319 |
if(executeStepL()!=KErrNotFound)
|
|
320 |
SetTestStepResult(EFail); SetTestStepResult(EPass); return TestStepResult();
|
|
321 |
}
|
|
322 |
|
|
323 |
TVerdict CCommDbTest041_07::doTestStepPreambleL()
|
|
324 |
{
|
|
325 |
SetTestStepResult(EPass); return TestStepResult();
|
|
326 |
}
|
|
327 |
|
|
328 |
TInt CCommDbTest041_07::executeStepL()
|
|
329 |
{
|
|
330 |
iOverSet=CCommDbOverrideSettings::NewL(CCommDbOverrideSettings::EParamListPartial);
|
|
331 |
|
|
332 |
return iOverSet->SetIntOverride(TPtrC(DIAL_OUT_ISP), _L("Where is the Column"), 55);
|
|
333 |
}
|
|
334 |
|
|
335 |
TVerdict CCommDbTest041_07::doTestStepPostambleL()
|
|
336 |
{
|
|
337 |
delete iOverSet;
|
|
338 |
SetTestStepResult(EPass); return TestStepResult();
|
|
339 |
}
|
|
340 |
|
|
341 |
/////////////////////////////////////////////////////////////////////////////////////
|
|
342 |
|
|
343 |
CCommDbTest041_08::CCommDbTest041_08()
|
|
344 |
{
|
|
345 |
// store the name of this test case
|
|
346 |
SetTestStepName(_L("step_041_08"));
|
|
347 |
}
|
|
348 |
|
|
349 |
CCommDbTest041_08::~CCommDbTest041_08()
|
|
350 |
{}
|
|
351 |
|
|
352 |
TVerdict CCommDbTest041_08::doTestStepL( void )
|
|
353 |
{
|
|
354 |
if(executeStepL()!=KErrNotFound)
|
|
355 |
SetTestStepResult(EFail); SetTestStepResult(EPass); return TestStepResult();
|
|
356 |
}
|
|
357 |
|
|
358 |
TVerdict CCommDbTest041_08::doTestStepPreambleL()
|
|
359 |
{
|
|
360 |
SetTestStepResult(EPass); return TestStepResult();
|
|
361 |
}
|
|
362 |
|
|
363 |
TInt CCommDbTest041_08::executeStepL()
|
|
364 |
{
|
|
365 |
iOverSet=CCommDbOverrideSettings::NewL(CCommDbOverrideSettings::EParamListPartial);
|
|
366 |
|
|
367 |
return iOverSet->SetIntOverride(_L("WhatTable"), TPtrC(ISP_IWF_TO_MS), 55);
|
|
368 |
}
|
|
369 |
|
|
370 |
TVerdict CCommDbTest041_08::doTestStepPostambleL()
|
|
371 |
{
|
|
372 |
delete iOverSet;
|
|
373 |
SetTestStepResult(EPass); return TestStepResult();
|
|
374 |
}
|
|
375 |
|
|
376 |
/////////////////////////////////////////////////////////////////////////////////////
|
|
377 |
|
|
378 |
CCommDbTest041_09::CCommDbTest041_09()
|
|
379 |
{
|
|
380 |
// store the name of this test case
|
|
381 |
SetTestStepName(_L("step_041_09"));
|
|
382 |
}
|
|
383 |
|
|
384 |
CCommDbTest041_09::~CCommDbTest041_09()
|
|
385 |
{}
|
|
386 |
|
|
387 |
TVerdict CCommDbTest041_09::doTestStepL( void )
|
|
388 |
{
|
|
389 |
if(executeStepL()!=KErrNotSupported)
|
|
390 |
SetTestStepResult(EFail); SetTestStepResult(EPass); return TestStepResult();
|
|
391 |
}
|
|
392 |
|
|
393 |
TVerdict CCommDbTest041_09::doTestStepPreambleL()
|
|
394 |
{
|
|
395 |
SetTestStepResult(EPass); return TestStepResult();
|
|
396 |
}
|
|
397 |
|
|
398 |
TInt CCommDbTest041_09::executeStepL()
|
|
399 |
{
|
|
400 |
iOverSet=CCommDbOverrideSettings::NewL(CCommDbOverrideSettings::EParamListPartial);
|
|
401 |
TBuf<KCommsDbSvrMaxFieldLength> temp(_L("Hi There!!"));
|
|
402 |
return iOverSet->SetDesOverride(TPtrC(PROXIES), TPtrC(PROXY_SERVICE_TYPE), temp);
|
|
403 |
}
|
|
404 |
|
|
405 |
TVerdict CCommDbTest041_09::doTestStepPostambleL()
|
|
406 |
{
|
|
407 |
delete iOverSet;
|
|
408 |
SetTestStepResult(EPass); return TestStepResult();
|
|
409 |
}
|
|
410 |
|
|
411 |
/////////////////////////////////////////////////////////////////////////////////////
|
|
412 |
|
|
413 |
CCommDbTest041_10::CCommDbTest041_10()
|
|
414 |
{
|
|
415 |
// store the name of this test case
|
|
416 |
SetTestStepName(_L("step_041_10"));
|
|
417 |
}
|
|
418 |
|
|
419 |
CCommDbTest041_10::~CCommDbTest041_10()
|
|
420 |
{}
|
|
421 |
|
|
422 |
TVerdict CCommDbTest041_10::doTestStepL( void )
|
|
423 |
{
|
|
424 |
if(executeStepL()!=KErrAlreadyExists)
|
|
425 |
SetTestStepResult(EFail); SetTestStepResult(EPass); return TestStepResult();
|
|
426 |
}
|
|
427 |
|
|
428 |
TVerdict CCommDbTest041_10::doTestStepPreambleL()
|
|
429 |
{
|
|
430 |
SetTestStepResult(EPass); return TestStepResult();
|
|
431 |
}
|
|
432 |
|
|
433 |
TInt CCommDbTest041_10::executeStepL()
|
|
434 |
{
|
|
435 |
iOverSet=CCommDbOverrideSettings::NewL(CCommDbOverrideSettings::EParamListPartial);
|
|
436 |
User::LeaveIfError(iOverSet->SetIntOverride(TPtrC(DIAL_OUT_ISP), TPtrC(ISP_IWF_TO_MS), 5000));
|
|
437 |
return iOverSet->SetIntOverride(TPtrC(DIAL_OUT_ISP), TPtrC(ISP_IWF_TO_MS), 5000);
|
|
438 |
}
|
|
439 |
|
|
440 |
TVerdict CCommDbTest041_10::doTestStepPostambleL()
|
|
441 |
{
|
|
442 |
delete iOverSet;
|
|
443 |
SetTestStepResult(EPass); return TestStepResult();
|
|
444 |
}
|
|
445 |
|
|
446 |
/////////////////////////////////////////////////////////////////////////////////////
|
|
447 |
|
|
448 |
CCommDbTest041_11::CCommDbTest041_11()
|
|
449 |
{
|
|
450 |
// store the name of this test case
|
|
451 |
SetTestStepName(_L("step_041_11"));
|
|
452 |
}
|
|
453 |
|
|
454 |
CCommDbTest041_11::~CCommDbTest041_11()
|
|
455 |
{}
|
|
456 |
|
|
457 |
TVerdict CCommDbTest041_11::doTestStepL( void )
|
|
458 |
{
|
|
459 |
if(executeStepL()!=KErrNotFound)
|
|
460 |
SetTestStepResult(EFail); SetTestStepResult(EPass); return TestStepResult();
|
|
461 |
}
|
|
462 |
|
|
463 |
TVerdict CCommDbTest041_11::doTestStepPreambleL()
|
|
464 |
{
|
|
465 |
SetTestStepResult(EPass); return TestStepResult();
|
|
466 |
}
|
|
467 |
|
|
468 |
TInt CCommDbTest041_11::executeStepL()
|
|
469 |
{
|
|
470 |
iOverSet=CCommDbOverrideSettings::NewL(CCommDbOverrideSettings::EParamListPartial);
|
|
471 |
TBuf<KCommsDbSvrMaxFieldLength> temp;
|
|
472 |
return iOverSet->GetDesOverride(TPtrC(PROXIES), TPtrC(PROXY_SERVICE_TYPE), temp);
|
|
473 |
}
|
|
474 |
|
|
475 |
TVerdict CCommDbTest041_11::doTestStepPostambleL()
|
|
476 |
{
|
|
477 |
delete iOverSet;
|
|
478 |
SetTestStepResult(EPass); return TestStepResult();
|
|
479 |
}
|
|
480 |
|
|
481 |
/////////////////////////////////////////////////////////////////////////////////////
|
|
482 |
|
|
483 |
CCommDbTest041_12::CCommDbTest041_12()
|
|
484 |
{
|
|
485 |
// store the name of this test case
|
|
486 |
SetTestStepName(_L("step_041_12"));
|
|
487 |
}
|
|
488 |
|
|
489 |
CCommDbTest041_12::~CCommDbTest041_12()
|
|
490 |
{}
|
|
491 |
|
|
492 |
TVerdict CCommDbTest041_12::doTestStepL( void )
|
|
493 |
{
|
|
494 |
if(executeStepL()!=KErrNone)
|
|
495 |
SetTestStepResult(EFail); SetTestStepResult(EPass); return TestStepResult();
|
|
496 |
}
|
|
497 |
|
|
498 |
TVerdict CCommDbTest041_12::doTestStepPreambleL()
|
|
499 |
{
|
|
500 |
SetTestStepResult(EPass); return TestStepResult();
|
|
501 |
}
|
|
502 |
|
|
503 |
TInt CCommDbTest041_12::executeStepL()
|
|
504 |
{
|
|
505 |
iOverSet=CCommDbOverrideSettings::NewL(CCommDbOverrideSettings::EParamListFull);
|
|
506 |
if (iOverSet->PartialFull() != CCommDbOverrideSettings::EParamListFull)
|
|
507 |
return KErrGeneral;
|
|
508 |
|
|
509 |
delete iOverSet;
|
|
510 |
iOverSet = NULL;
|
|
511 |
|
|
512 |
iOverSet=CCommDbOverrideSettings::NewL(CCommDbOverrideSettings::EParamListPartial);
|
|
513 |
if (iOverSet->PartialFull() != CCommDbOverrideSettings::EParamListPartial)
|
|
514 |
return KErrGeneral;
|
|
515 |
|
|
516 |
return KErrNone;
|
|
517 |
}
|
|
518 |
|
|
519 |
TVerdict CCommDbTest041_12::doTestStepPostambleL()
|
|
520 |
{
|
|
521 |
delete iOverSet;
|
|
522 |
SetTestStepResult(EPass); return TestStepResult();
|
|
523 |
}
|
|
524 |
|
|
525 |
/////////////////////////////////////////////////////////////////////////////////////
|
|
526 |
|
|
527 |
CCommDbTest041_13::CCommDbTest041_13()
|
|
528 |
{
|
|
529 |
// store the name of this test case
|
|
530 |
SetTestStepName(_L("step_041_13"));
|
|
531 |
}
|
|
532 |
|
|
533 |
CCommDbTest041_13::~CCommDbTest041_13()
|
|
534 |
{}
|
|
535 |
|
|
536 |
TVerdict CCommDbTest041_13::doTestStepL( void )
|
|
537 |
{
|
|
538 |
if(executeStepL()!=KErrNone)
|
|
539 |
SetTestStepResult(EFail); SetTestStepResult(EPass); return TestStepResult();
|
|
540 |
}
|
|
541 |
|
|
542 |
TVerdict CCommDbTest041_13::doTestStepPreambleL()
|
|
543 |
{
|
|
544 |
SetTestStepResult(EPass); return TestStepResult();
|
|
545 |
}
|
|
546 |
|
|
547 |
TInt CCommDbTest041_13::executeStepL()
|
|
548 |
{
|
|
549 |
iOverSet=CCommDbOverrideSettings::NewL(CCommDbOverrideSettings::EParamListPartial);
|
|
550 |
TBuf<KCommsDbSvrMaxFieldLength> temp(_L("There's no place like home"));
|
|
551 |
return iOverSet->SetDesOverride(TPtrC(MODEM_BEARER), TPtrC(MODEM_TSY_NAME), temp);
|
|
552 |
}
|
|
553 |
|
|
554 |
TVerdict CCommDbTest041_13::doTestStepPostambleL()
|
|
555 |
{
|
|
556 |
delete iOverSet;
|
|
557 |
SetTestStepResult(EPass); return TestStepResult();
|
|
558 |
}
|
|
559 |
|
|
560 |
/////////////////////////////////////////////////////////////////////////////////////
|
|
561 |
|
|
562 |
CCommDbTest041_14::CCommDbTest041_14()
|
|
563 |
{
|
|
564 |
// store the name of this test case
|
|
565 |
SetTestStepName(_L("step_041_14"));
|
|
566 |
}
|
|
567 |
|
|
568 |
CCommDbTest041_14::~CCommDbTest041_14()
|
|
569 |
{}
|
|
570 |
|
|
571 |
TVerdict CCommDbTest041_14::doTestStepL( void )
|
|
572 |
{
|
|
573 |
if(executeStepL()!=KErrNotSupported)
|
|
574 |
SetTestStepResult(EFail); SetTestStepResult(EPass); return TestStepResult();
|
|
575 |
}
|
|
576 |
|
|
577 |
TVerdict CCommDbTest041_14::doTestStepPreambleL()
|
|
578 |
{
|
|
579 |
SetTestStepResult(EPass); return TestStepResult();
|
|
580 |
}
|
|
581 |
|
|
582 |
TInt CCommDbTest041_14::executeStepL()
|
|
583 |
{
|
|
584 |
iOverSet=CCommDbOverrideSettings::NewL(CCommDbOverrideSettings::EParamListPartial);
|
|
585 |
|
|
586 |
return iOverSet->SetIntOverride(TPtrC(MODEM_BEARER), TPtrC(MODEM_STOP_BITS), 10);
|
|
587 |
}
|
|
588 |
|
|
589 |
TVerdict CCommDbTest041_14::doTestStepPostambleL()
|
|
590 |
{
|
|
591 |
delete iOverSet;
|
|
592 |
SetTestStepResult(EPass); return TestStepResult();
|
|
593 |
}
|
|
594 |
|
|
595 |
/////////////////////////////////////////////////////////////////////////////////////
|
|
596 |
|
|
597 |
CCommDbTest041_15::CCommDbTest041_15()
|
|
598 |
{
|
|
599 |
// store the name of this test case
|
|
600 |
SetTestStepName(_L("step_041_15"));
|
|
601 |
}
|
|
602 |
|
|
603 |
CCommDbTest041_15::~CCommDbTest041_15()
|
|
604 |
{}
|
|
605 |
|
|
606 |
TVerdict CCommDbTest041_15::doTestStepL( void )
|
|
607 |
{
|
|
608 |
if(executeStepL()!=KErrNone)
|
|
609 |
SetTestStepResult(EFail); SetTestStepResult(EPass); return TestStepResult();
|
|
610 |
}
|
|
611 |
|
|
612 |
TVerdict CCommDbTest041_15::doTestStepPreambleL()
|
|
613 |
{
|
|
614 |
SetTestStepResult(EPass); return TestStepResult();
|
|
615 |
}
|
|
616 |
|
|
617 |
TInt CCommDbTest041_15::executeStepL()
|
|
618 |
{
|
|
619 |
iOverSet=CCommDbOverrideSettings::NewL(CCommDbOverrideSettings::EParamListPartial);
|
|
620 |
TBuf<KCommsDbSvrMaxFieldLength> temp(_L("There's no place like home"));
|
|
621 |
if(KErrNone==iOverSet->SetIntOverride(TPtrC(PROXIES), TPtrC(PROXY_ISP), 0))
|
|
622 |
return KErrGeneral;
|
|
623 |
if(KErrNone==iOverSet->SetDesOverride(TPtrC(PROXIES), TPtrC(PROXY_SERVICE_TYPE), temp))
|
|
624 |
return KErrGeneral;
|
|
625 |
if(KErrNone==iOverSet->SetBoolOverride(TPtrC(PROXIES), TPtrC(PROXY_SERVICE_TYPE), ETrue))
|
|
626 |
return KErrGeneral;
|
|
627 |
if(KErrNone==iOverSet->SetLongDesOverride(TPtrC(PROXIES), TPtrC(PROXY_SERVER_NAME), temp))
|
|
628 |
return KErrGeneral;
|
|
629 |
if(KErrNone==iOverSet->SetDesOverride(TPtrC(PROXIES), TPtrC(PROXY_PROTOCOL_NAME), temp))
|
|
630 |
return KErrGeneral;
|
|
631 |
if(KErrNone==iOverSet->SetIntOverride(TPtrC(PROXIES), TPtrC(PROXY_PORT_NUMBER), 22))
|
|
632 |
return KErrGeneral;
|
|
633 |
if(KErrNone==iOverSet->SetLongDesOverride(TPtrC(PROXIES), TPtrC(PROXY_EXCEPTIONS), temp))
|
|
634 |
return KErrGeneral;
|
|
635 |
return KErrNone;
|
|
636 |
}
|
|
637 |
|
|
638 |
TVerdict CCommDbTest041_15::doTestStepPostambleL()
|
|
639 |
{
|
|
640 |
delete iOverSet;
|
|
641 |
SetTestStepResult(EPass); return TestStepResult();
|
|
642 |
}
|
|
643 |
|
|
644 |
/////////////////////////////////////////////////////////////////////////////////////
|
|
645 |
|
|
646 |
CCommDbTest041_16::CCommDbTest041_16()
|
|
647 |
{
|
|
648 |
// store the name of this test case
|
|
649 |
SetTestStepName(_L("step_041_16"));
|
|
650 |
}
|
|
651 |
|
|
652 |
CCommDbTest041_16::~CCommDbTest041_16()
|
|
653 |
{}
|
|
654 |
|
|
655 |
TVerdict CCommDbTest041_16::doTestStepL( void )
|
|
656 |
{
|
|
657 |
if(executeStepL()!=KErrNotSupported)
|
|
658 |
SetTestStepResult(EFail); SetTestStepResult(EPass); return TestStepResult();
|
|
659 |
}
|
|
660 |
|
|
661 |
TVerdict CCommDbTest041_16::doTestStepPreambleL()
|
|
662 |
{
|
|
663 |
SetTestStepResult(EPass); return TestStepResult();
|
|
664 |
}
|
|
665 |
|
|
666 |
TInt CCommDbTest041_16::executeStepL()
|
|
667 |
{
|
|
668 |
iOverSet=CCommDbOverrideSettings::NewL(CCommDbOverrideSettings::EParamListPartial);
|
|
669 |
TInt err;
|
|
670 |
TBuf<KCommsDbSvrMaxFieldLength> temp(_L("There's no place like home"));
|
|
671 |
if(KErrNotSupported!=(err=iOverSet->SetDesOverride(TPtrC(WAP_ACCESS_POINT), TPtrC(WAP_CURRENT_BEARER), temp)))
|
|
672 |
return err;
|
|
673 |
if(KErrNotSupported!=(err=iOverSet->SetLongDesOverride(TPtrC(WAP_ACCESS_POINT), TPtrC(WAP_START_PAGE), temp)))
|
|
674 |
return err;
|
|
675 |
return KErrNotSupported;
|
|
676 |
}
|
|
677 |
|
|
678 |
TVerdict CCommDbTest041_16::doTestStepPostambleL()
|
|
679 |
{
|
|
680 |
delete iOverSet;
|
|
681 |
SetTestStepResult(EPass); return TestStepResult();
|
|
682 |
}
|
|
683 |
|
|
684 |
/////////////////////////////////////////////////////////////////////////////////////
|
|
685 |
|
|
686 |
CCommDbTest041_17::CCommDbTest041_17()
|
|
687 |
{
|
|
688 |
// store the name of this test case
|
|
689 |
SetTestStepName(_L("step_041_17"));
|
|
690 |
}
|
|
691 |
|
|
692 |
CCommDbTest041_17::~CCommDbTest041_17()
|
|
693 |
{}
|
|
694 |
|
|
695 |
TVerdict CCommDbTest041_17::doTestStepL( void )
|
|
696 |
{
|
|
697 |
if(executeStepL()!=KErrNotSupported)
|
|
698 |
SetTestStepResult(EFail); SetTestStepResult(EPass); return TestStepResult();
|
|
699 |
}
|
|
700 |
|
|
701 |
TVerdict CCommDbTest041_17::doTestStepPreambleL()
|
|
702 |
{
|
|
703 |
SetTestStepResult(EPass); return TestStepResult();
|
|
704 |
}
|
|
705 |
|
|
706 |
TInt CCommDbTest041_17::executeStepL()
|
|
707 |
{
|
|
708 |
iOverSet=CCommDbOverrideSettings::NewL(CCommDbOverrideSettings::EParamListPartial);
|
|
709 |
TInt err;
|
|
710 |
TBuf<KCommsDbSvrMaxFieldLength> temp(_L("There's no place like home"));
|
|
711 |
if(KErrNotSupported!=(err=iOverSet->SetIntOverride(TPtrC(DEFAULT_GPRS), TPtrC(DEFAULT_GPRS_USAGE), 1)))
|
|
712 |
return err;
|
|
713 |
if(KErrNotSupported!=(err=iOverSet->SetDesOverride(TPtrC(DEFAULT_GPRS), TPtrC(DEFAULT_GPRS_APN), temp)))
|
|
714 |
return err;
|
|
715 |
if(KErrNotSupported!=(err=iOverSet->SetIntOverride(TPtrC(DEFAULT_GPRS), TPtrC(DEFAULT_GPRS_PDP_TYPE), 0)))
|
|
716 |
return err;
|
|
717 |
if(KErrNotSupported!=(err=iOverSet->SetDesOverride(TPtrC(DEFAULT_GPRS), TPtrC(DEFAULT_GPRS_PDP_ADDRESS), temp)))
|
|
718 |
return err;
|
|
719 |
if(KErrNotSupported!=(err=iOverSet->SetIntOverride(TPtrC(DEFAULT_GPRS), TPtrC(DEFAULT_GPRS_PRECEDENCE), 1)))
|
|
720 |
return err;
|
|
721 |
if(KErrNotSupported!=(err=iOverSet->SetIntOverride(TPtrC(DEFAULT_GPRS), TPtrC(DEFAULT_GPRS_DELAY), 1)))
|
|
722 |
return err;
|
|
723 |
if(KErrNotSupported!=(err=iOverSet->SetIntOverride(TPtrC(DEFAULT_GPRS), TPtrC(DEFAULT_GPRS_RELIABILITY), 1)))
|
|
724 |
return err;
|
|
725 |
if(KErrNotSupported!=(err=iOverSet->SetIntOverride(TPtrC(DEFAULT_GPRS), TPtrC(DEFAULT_GPRS_PEAK_THROUGHPUT), 1)))
|
|
726 |
return err;
|
|
727 |
if(KErrNotSupported!=(err=iOverSet->SetIntOverride(TPtrC(DEFAULT_GPRS), TPtrC(DEFAULT_GPRS_MEAN_THROUGHPUT), 1)))
|
|
728 |
return err;
|
|
729 |
if(KErrNotSupported!=(err=iOverSet->SetIntOverride(TPtrC(DEFAULT_GPRS), TPtrC(DEFAULT_GPRS_MIN_PRECEDENCE), 1)))
|
|
730 |
return err;
|
|
731 |
if(KErrNotSupported!=(err=iOverSet->SetIntOverride(TPtrC(DEFAULT_GPRS), TPtrC(DEFAULT_GPRS_MIN_DELAY), 1)))
|
|
732 |
return err;
|
|
733 |
if(KErrNotSupported!=(err=iOverSet->SetIntOverride(TPtrC(DEFAULT_GPRS), TPtrC(DEFAULT_GPRS_MIN_RELIABILITY), 1)))
|
|
734 |
return err;
|
|
735 |
if(KErrNotSupported!=(err=iOverSet->SetIntOverride(TPtrC(DEFAULT_GPRS), TPtrC(DEFAULT_GPRS_MIN_PEAK_THROUGHPUT), 1)))
|
|
736 |
return err;
|
|
737 |
if(KErrNotSupported!=(err=iOverSet->SetBoolOverride(TPtrC(DEFAULT_GPRS), TPtrC(DEFAULT_GPRS_DATA_COMPRESSION), ETrue)))
|
|
738 |
return err;
|
|
739 |
if(KErrNotSupported!=(err=iOverSet->SetBoolOverride(TPtrC(DEFAULT_GPRS), TPtrC(DEFAULT_GPRS_HEADER_COMPRESSION), ETrue)))
|
|
740 |
return err;
|
|
741 |
if(KErrNotSupported!=(err=iOverSet->SetBoolOverride(TPtrC(DEFAULT_GPRS), TPtrC(DEFAULT_GPRS_ANONYMOUS_ACCESS), ETrue)))
|
|
742 |
return err;
|
|
743 |
|
|
744 |
return KErrNotSupported;
|
|
745 |
}
|
|
746 |
|
|
747 |
TVerdict CCommDbTest041_17::doTestStepPostambleL()
|
|
748 |
{
|
|
749 |
delete iOverSet;
|
|
750 |
SetTestStepResult(EPass); return TestStepResult();
|
|
751 |
}
|
|
752 |
|
|
753 |
//////////////////////////////////////////////////////////////////////////
|
|
754 |
|
|
755 |
CCommDbTest041_18::CCommDbTest041_18()
|
|
756 |
{
|
|
757 |
// store the name of this test case
|
|
758 |
SetTestStepName(_L("step_041_18"));
|
|
759 |
}
|
|
760 |
|
|
761 |
CCommDbTest041_18::~CCommDbTest041_18()
|
|
762 |
{}
|
|
763 |
|
|
764 |
TVerdict CCommDbTest041_18::doTestStepL( void )
|
|
765 |
{
|
|
766 |
INFO_PRINTF1(_L("Step 041.18 called "));
|
|
767 |
|
|
768 |
SetTestStepResult(EPass);
|
|
769 |
CCommDbTest041_01* step041_01 = new(ELeave) CCommDbTest041_01;
|
|
770 |
CleanupStack::PushL(step041_01);
|
|
771 |
doTestStepWithHeapFailureL( *step041_01, KErrNone);
|
|
772 |
CleanupStack::PopAndDestroy(step041_01);
|
|
773 |
|
|
774 |
return TestStepResult();
|
|
775 |
}
|
|
776 |
|
|
777 |
|
|
778 |
|
|
779 |
//////////////////////////////////////////////////////////////////////////
|
|
780 |
|
|
781 |
CCommDbTest041_19::CCommDbTest041_19()
|
|
782 |
{
|
|
783 |
// store the name of this test case
|
|
784 |
SetTestStepName(_L("step_041_19"));
|
|
785 |
}
|
|
786 |
|
|
787 |
CCommDbTest041_19::~CCommDbTest041_19()
|
|
788 |
{}
|
|
789 |
|
|
790 |
TVerdict CCommDbTest041_19::doTestStepL( void )
|
|
791 |
{
|
|
792 |
INFO_PRINTF1(_L("Step 041.19 called "));
|
|
793 |
|
|
794 |
SetTestStepResult(EPass);
|
|
795 |
CCommDbTest041_02* step041_02 = new(ELeave) CCommDbTest041_02;
|
|
796 |
CleanupStack::PushL(step041_02);
|
|
797 |
doTestStepWithHeapFailureL( *step041_02, KErrNone);
|
|
798 |
CleanupStack::PopAndDestroy(step041_02);
|
|
799 |
|
|
800 |
return TestStepResult();
|
|
801 |
}
|
|
802 |
|
|
803 |
//////////////////////////////////////////////////////////////////////////
|
|
804 |
|
|
805 |
CCommDbTest041_20::CCommDbTest041_20()
|
|
806 |
{
|
|
807 |
// store the name of this test case
|
|
808 |
SetTestStepName(_L("step_041_20"));
|
|
809 |
}
|
|
810 |
|
|
811 |
CCommDbTest041_20::~CCommDbTest041_20()
|
|
812 |
{}
|
|
813 |
|
|
814 |
TVerdict CCommDbTest041_20::doTestStepL( void )
|
|
815 |
{
|
|
816 |
INFO_PRINTF1(_L("Step 041.20 called "));
|
|
817 |
|
|
818 |
SetTestStepResult(EPass);
|
|
819 |
CCommDbTest041_03* step041_03 = new(ELeave) CCommDbTest041_03;
|
|
820 |
CleanupStack::PushL(step041_03);
|
|
821 |
doTestStepWithHeapFailureL( *step041_03, KErrNone);
|
|
822 |
CleanupStack::PopAndDestroy(step041_03);
|
|
823 |
|
|
824 |
return TestStepResult();
|
|
825 |
}
|
|
826 |
|
|
827 |
//////////////////////////////////////////////////////////////////////////
|
|
828 |
|
|
829 |
CCommDbTest041_21::CCommDbTest041_21()
|
|
830 |
{
|
|
831 |
// store the name of this test case
|
|
832 |
SetTestStepName(_L("step_041_21"));
|
|
833 |
}
|
|
834 |
|
|
835 |
CCommDbTest041_21::~CCommDbTest041_21()
|
|
836 |
{}
|
|
837 |
|
|
838 |
TVerdict CCommDbTest041_21::doTestStepL( void )
|
|
839 |
{
|
|
840 |
INFO_PRINTF1(_L("Step 041.21 called "));
|
|
841 |
|
|
842 |
SetTestStepResult(EPass);
|
|
843 |
CCommDbTest041_04* step041_04 = new(ELeave) CCommDbTest041_04;
|
|
844 |
CleanupStack::PushL(step041_04);
|
|
845 |
doTestStepWithHeapFailureL( *step041_04, KErrNone);
|
|
846 |
CleanupStack::PopAndDestroy(step041_04);
|
|
847 |
|
|
848 |
return TestStepResult();
|
|
849 |
}
|
|
850 |
|
|
851 |
//////////////////////////////////////////////////////////////////////////
|
|
852 |
|
|
853 |
CCommDbTest041_22::CCommDbTest041_22()
|
|
854 |
{
|
|
855 |
// store the name of this test case
|
|
856 |
SetTestStepName(_L("step_041_22"));
|
|
857 |
}
|
|
858 |
|
|
859 |
CCommDbTest041_22::~CCommDbTest041_22()
|
|
860 |
{}
|
|
861 |
|
|
862 |
TVerdict CCommDbTest041_22::doTestStepL( void )
|
|
863 |
{
|
|
864 |
INFO_PRINTF1(_L("Step 041.22 called "));
|
|
865 |
|
|
866 |
SetTestStepResult(EPass);
|
|
867 |
CCommDbTest041_05* step041_05 = new(ELeave) CCommDbTest041_05;
|
|
868 |
CleanupStack::PushL(step041_05);
|
|
869 |
doTestStepWithHeapFailureL( *step041_05, KErrNone);
|
|
870 |
CleanupStack::PopAndDestroy(step041_05);
|
|
871 |
|
|
872 |
return TestStepResult();
|
|
873 |
}
|
|
874 |
|
|
875 |
//////////////////////////////////////////////////////////////////////////
|
|
876 |
|
|
877 |
CCommDbTest041_23::CCommDbTest041_23()
|
|
878 |
{
|
|
879 |
// store the name of this test case
|
|
880 |
SetTestStepName(_L("step_041_23"));
|
|
881 |
}
|
|
882 |
|
|
883 |
CCommDbTest041_23::~CCommDbTest041_23()
|
|
884 |
{}
|
|
885 |
|
|
886 |
TVerdict CCommDbTest041_23::doTestStepL( void )
|
|
887 |
{
|
|
888 |
INFO_PRINTF1(_L("Step 041.23 called "));
|
|
889 |
|
|
890 |
SetTestStepResult(EPass);
|
|
891 |
CCommDbTest041_06* step041_06 = new(ELeave) CCommDbTest041_06;
|
|
892 |
CleanupStack::PushL(step041_06);
|
|
893 |
doTestStepWithHeapFailureL( *step041_06, KErrNone);
|
|
894 |
CleanupStack::PopAndDestroy(step041_06);
|
|
895 |
|
|
896 |
return TestStepResult();
|
|
897 |
}
|
|
898 |
|
|
899 |
//////////////////////////////////////////////////////////////////////////
|
|
900 |
|
|
901 |
CCommDbTest041_24::CCommDbTest041_24()
|
|
902 |
{
|
|
903 |
// store the name of this test case
|
|
904 |
SetTestStepName(_L("step_041_24"));
|
|
905 |
}
|
|
906 |
|
|
907 |
CCommDbTest041_24::~CCommDbTest041_24()
|
|
908 |
{}
|
|
909 |
|
|
910 |
TVerdict CCommDbTest041_24::doTestStepL( void )
|
|
911 |
{
|
|
912 |
INFO_PRINTF1(_L("Step 041.24 called "));
|
|
913 |
|
|
914 |
SetTestStepResult(EPass);
|
|
915 |
CCommDbTest041_07* step041_07 = new(ELeave) CCommDbTest041_07;
|
|
916 |
CleanupStack::PushL(step041_07);
|
|
917 |
doTestStepWithHeapFailureL( *step041_07, KErrNotFound);
|
|
918 |
CleanupStack::PopAndDestroy(step041_07);
|
|
919 |
|
|
920 |
return TestStepResult();
|
|
921 |
}
|
|
922 |
|
|
923 |
//////////////////////////////////////////////////////////////////////////
|
|
924 |
|
|
925 |
CCommDbTest041_25::CCommDbTest041_25()
|
|
926 |
{
|
|
927 |
// store the name of this test case
|
|
928 |
SetTestStepName(_L("step_041_25"));
|
|
929 |
}
|
|
930 |
|
|
931 |
CCommDbTest041_25::~CCommDbTest041_25()
|
|
932 |
{}
|
|
933 |
|
|
934 |
TVerdict CCommDbTest041_25::doTestStepL( void )
|
|
935 |
{
|
|
936 |
INFO_PRINTF1(_L("Step 041.25 called "));
|
|
937 |
|
|
938 |
SetTestStepResult(EPass);
|
|
939 |
CCommDbTest041_08* step041_08 = new(ELeave) CCommDbTest041_08;
|
|
940 |
CleanupStack::PushL(step041_08);
|
|
941 |
doTestStepWithHeapFailureL( *step041_08, KErrNotFound);
|
|
942 |
CleanupStack::PopAndDestroy(step041_08);
|
|
943 |
|
|
944 |
return TestStepResult();
|
|
945 |
}
|
|
946 |
|
|
947 |
//////////////////////////////////////////////////////////////////////////
|
|
948 |
|
|
949 |
CCommDbTest041_26::CCommDbTest041_26()
|
|
950 |
{
|
|
951 |
// store the name of this test case
|
|
952 |
SetTestStepName(_L("step_041_26"));
|
|
953 |
}
|
|
954 |
|
|
955 |
CCommDbTest041_26::~CCommDbTest041_26()
|
|
956 |
{}
|
|
957 |
|
|
958 |
TVerdict CCommDbTest041_26::doTestStepL( void )
|
|
959 |
{
|
|
960 |
INFO_PRINTF1(_L("Step 041.26 called "));
|
|
961 |
|
|
962 |
SetTestStepResult(EPass);
|
|
963 |
CCommDbTest041_09* step041_09 = new(ELeave) CCommDbTest041_09;
|
|
964 |
CleanupStack::PushL(step041_09);
|
|
965 |
doTestStepWithHeapFailureL( *step041_09, KErrNotSupported);
|
|
966 |
CleanupStack::PopAndDestroy(step041_09);
|
|
967 |
|
|
968 |
return TestStepResult();
|
|
969 |
}
|
|
970 |
|
|
971 |
//////////////////////////////////////////////////////////////////////////
|
|
972 |
|
|
973 |
CCommDbTest041_27::CCommDbTest041_27()
|
|
974 |
{
|
|
975 |
// store the name of this test case
|
|
976 |
SetTestStepName(_L("step_041_27"));
|
|
977 |
}
|
|
978 |
|
|
979 |
CCommDbTest041_27::~CCommDbTest041_27()
|
|
980 |
{}
|
|
981 |
|
|
982 |
TVerdict CCommDbTest041_27::doTestStepL( void )
|
|
983 |
{
|
|
984 |
INFO_PRINTF1(_L("Step 041.27 called "));
|
|
985 |
|
|
986 |
SetTestStepResult(EPass);
|
|
987 |
CCommDbTest041_10* step041_10 = new(ELeave) CCommDbTest041_10;
|
|
988 |
CleanupStack::PushL(step041_10);
|
|
989 |
doTestStepWithHeapFailureL( *step041_10, KErrAlreadyExists);
|
|
990 |
CleanupStack::PopAndDestroy(step041_10);
|
|
991 |
|
|
992 |
return TestStepResult();
|
|
993 |
}
|
|
994 |
|
|
995 |
//////////////////////////////////////////////////////////////////////////
|
|
996 |
|
|
997 |
CCommDbTest041_28::CCommDbTest041_28()
|
|
998 |
{
|
|
999 |
// store the name of this test case
|
|
1000 |
SetTestStepName(_L("step_041_28"));
|
|
1001 |
}
|
|
1002 |
|
|
1003 |
CCommDbTest041_28::~CCommDbTest041_28()
|
|
1004 |
{}
|
|
1005 |
|
|
1006 |
TVerdict CCommDbTest041_28::doTestStepL( void )
|
|
1007 |
{
|
|
1008 |
INFO_PRINTF1(_L("Step 041.28 called "));
|
|
1009 |
|
|
1010 |
SetTestStepResult(EPass);
|
|
1011 |
CCommDbTest041_11* step041_11 = new(ELeave) CCommDbTest041_11;
|
|
1012 |
CleanupStack::PushL(step041_11);
|
|
1013 |
doTestStepWithHeapFailureL( *step041_11, KErrNotFound);
|
|
1014 |
CleanupStack::PopAndDestroy(step041_11);
|
|
1015 |
|
|
1016 |
return TestStepResult();
|
|
1017 |
}
|
|
1018 |
|
|
1019 |
//////////////////////////////////////////////////////////////////////////
|
|
1020 |
|
|
1021 |
CCommDbTest041_29::CCommDbTest041_29()
|
|
1022 |
{
|
|
1023 |
// store the name of this test case
|
|
1024 |
SetTestStepName(_L("step_041_29"));
|
|
1025 |
}
|
|
1026 |
|
|
1027 |
CCommDbTest041_29::~CCommDbTest041_29()
|
|
1028 |
{}
|
|
1029 |
|
|
1030 |
TVerdict CCommDbTest041_29::doTestStepL( void )
|
|
1031 |
{
|
|
1032 |
INFO_PRINTF1(_L("Step 041.29 called "));
|
|
1033 |
|
|
1034 |
SetTestStepResult(EPass);
|
|
1035 |
CCommDbTest041_12* step041_12 = new(ELeave) CCommDbTest041_12;
|
|
1036 |
CleanupStack::PushL(step041_12);
|
|
1037 |
doTestStepWithHeapFailureL( *step041_12, KErrNone);
|
|
1038 |
CleanupStack::PopAndDestroy(step041_12);
|
|
1039 |
|
|
1040 |
return TestStepResult();
|
|
1041 |
}
|
|
1042 |
|
|
1043 |
//////////////////////////////////////////////////////////////////////////
|
|
1044 |
|
|
1045 |
CCommDbTest041_30::CCommDbTest041_30()
|
|
1046 |
{
|
|
1047 |
// store the name of this test case
|
|
1048 |
SetTestStepName(_L("step_041_30"));
|
|
1049 |
}
|
|
1050 |
|
|
1051 |
CCommDbTest041_30::~CCommDbTest041_30()
|
|
1052 |
{}
|
|
1053 |
|
|
1054 |
TVerdict CCommDbTest041_30::doTestStepL( void )
|
|
1055 |
{
|
|
1056 |
INFO_PRINTF1(_L("Step 041.30 called "));
|
|
1057 |
|
|
1058 |
SetTestStepResult(EPass);
|
|
1059 |
CCommDbTest041_13* step041_13 = new(ELeave) CCommDbTest041_13;
|
|
1060 |
CleanupStack::PushL(step041_13);
|
|
1061 |
doTestStepWithHeapFailureL( *step041_13, KErrNone);
|
|
1062 |
CleanupStack::PopAndDestroy(step041_13);
|
|
1063 |
|
|
1064 |
return TestStepResult();
|
|
1065 |
}
|
|
1066 |
|
|
1067 |
//////////////////////////////////////////////////////////////////////////
|
|
1068 |
|
|
1069 |
CCommDbTest041_31::CCommDbTest041_31()
|
|
1070 |
{
|
|
1071 |
// store the name of this test case
|
|
1072 |
SetTestStepName(_L("step_041_31"));
|
|
1073 |
}
|
|
1074 |
|
|
1075 |
CCommDbTest041_31::~CCommDbTest041_31()
|
|
1076 |
{}
|
|
1077 |
|
|
1078 |
TVerdict CCommDbTest041_31::doTestStepL( void )
|
|
1079 |
{
|
|
1080 |
INFO_PRINTF1(_L("Step 041.31 called "));
|
|
1081 |
|
|
1082 |
SetTestStepResult(EPass);
|
|
1083 |
CCommDbTest041_14* step041_14 = new(ELeave) CCommDbTest041_14;
|
|
1084 |
CleanupStack::PushL(step041_14);
|
|
1085 |
doTestStepWithHeapFailureL( *step041_14, KErrNotSupported);
|
|
1086 |
CleanupStack::PopAndDestroy(step041_14);
|
|
1087 |
|
|
1088 |
return TestStepResult();
|
|
1089 |
}
|
|
1090 |
|
|
1091 |
//////////////////////////////////////////////////////////////////////////
|
|
1092 |
|
|
1093 |
CCommDbTest041_32::CCommDbTest041_32()
|
|
1094 |
{
|
|
1095 |
// store the name of this test case
|
|
1096 |
SetTestStepName(_L("step_041_32"));
|
|
1097 |
}
|
|
1098 |
|
|
1099 |
CCommDbTest041_32::~CCommDbTest041_32()
|
|
1100 |
{}
|
|
1101 |
|
|
1102 |
TVerdict CCommDbTest041_32::doTestStepL( void )
|
|
1103 |
{
|
|
1104 |
INFO_PRINTF1(_L("Step 041.32 called "));
|
|
1105 |
|
|
1106 |
SetTestStepResult(EPass);
|
|
1107 |
CCommDbTest041_15* step041_15 = new(ELeave) CCommDbTest041_15;
|
|
1108 |
CleanupStack::PushL(step041_15);
|
|
1109 |
doTestStepWithHeapFailureL( *step041_15, KErrNone);
|
|
1110 |
CleanupStack::PopAndDestroy(step041_15);
|
|
1111 |
|
|
1112 |
return TestStepResult();
|
|
1113 |
}
|
|
1114 |
|
|
1115 |
//////////////////////////////////////////////////////////////////////////
|
|
1116 |
|
|
1117 |
CCommDbTest041_33::CCommDbTest041_33()
|
|
1118 |
{
|
|
1119 |
// store the name of this test case
|
|
1120 |
SetTestStepName(_L("step_041_33"));
|
|
1121 |
}
|
|
1122 |
|
|
1123 |
CCommDbTest041_33::~CCommDbTest041_33()
|
|
1124 |
{}
|
|
1125 |
|
|
1126 |
TVerdict CCommDbTest041_33::doTestStepL( void )
|
|
1127 |
{
|
|
1128 |
INFO_PRINTF1(_L("Step 041.33 called "));
|
|
1129 |
|
|
1130 |
SetTestStepResult(EPass);
|
|
1131 |
CCommDbTest041_16* step041_16 = new(ELeave) CCommDbTest041_16;
|
|
1132 |
CleanupStack::PushL(step041_16);
|
|
1133 |
doTestStepWithHeapFailureL( *step041_16, KErrNotSupported);
|
|
1134 |
CleanupStack::PopAndDestroy(step041_16);
|
|
1135 |
|
|
1136 |
return TestStepResult();
|
|
1137 |
}
|
|
1138 |
|
|
1139 |
//////////////////////////////////////////////////////////////////////////
|
|
1140 |
|
|
1141 |
CCommDbTest041_34::CCommDbTest041_34()
|
|
1142 |
{
|
|
1143 |
// store the name of this test case
|
|
1144 |
SetTestStepName(_L("step_041_34"));
|
|
1145 |
}
|
|
1146 |
|
|
1147 |
CCommDbTest041_34::~CCommDbTest041_34()
|
|
1148 |
{}
|
|
1149 |
|
|
1150 |
TVerdict CCommDbTest041_34::doTestStepL( void )
|
|
1151 |
{
|
|
1152 |
INFO_PRINTF1(_L("Step 041.34 called "));
|
|
1153 |
|
|
1154 |
SetTestStepResult(EPass);
|
|
1155 |
CCommDbTest041_17* step041_17 = new(ELeave) CCommDbTest041_17;
|
|
1156 |
CleanupStack::PushL(step041_17);
|
|
1157 |
doTestStepWithHeapFailureL( *step041_17, KErrNotSupported);
|
|
1158 |
CleanupStack::PopAndDestroy(step041_17);
|
|
1159 |
|
|
1160 |
return TestStepResult();
|
|
1161 |
}
|
|
1162 |
|
|
1163 |
//EOF
|