commsconfig/commsdatabaseshim/ts_commdb/Step_026_xx.cpp
changeset 72 ae47d0499bee
parent 68 5da8188e392b
child 77 c9776eadbffd
equal deleted inserted replaced
68:5da8188e392b 72:ae47d0499bee
     1 // Copyright (c) 2001-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 // This contains CommDb Unit Test Cases 026.XX
       
    15 // 
       
    16 //
       
    17 
       
    18 // EPOC includes
       
    19 #include <e32base.h>
       
    20 #include <commdb.h>
       
    21 #include <d32comm.h>
       
    22 
       
    23 // Test system includes
       
    24 #include <networking/log.h>
       
    25 #include <networking/teststep.h>
       
    26 #include "Teststepcommdb.h"
       
    27 #include "TestSuiteCommdb.h"
       
    28 #include "Step_026_xx.h"
       
    29 
       
    30 //_LIT(KCommDefault3, "C:\\default3.dat");
       
    31 
       
    32 CCommDbTest026_01::CCommDbTest026_01()
       
    33 	{
       
    34 	// store the name of this test case
       
    35 	iTestStepName = _L("step_026_01");
       
    36 	}
       
    37 
       
    38 CCommDbTest026_01::~CCommDbTest026_01()
       
    39 	{}
       
    40 
       
    41 TVerdict CCommDbTest026_01::doTestStepL( void )
       
    42 	{
       
    43 	executeStepL();
       
    44 	return EPass;
       
    45 	}
       
    46 
       
    47 TVerdict CCommDbTest026_01::doTestStepPreambleL()
       
    48 	{
       
    49 //	copyFileL(KCommDbName, KCommDefault3);
       
    50 	iTheDb=CCommsDatabase::NewL();
       
    51 
       
    52 	iPrefView = iTheDb->OpenConnectionPrefTableLC();
       
    53 	CleanupStack::Pop();
       
    54 
       
    55 
       
    56 	return EPass;
       
    57 	}
       
    58 
       
    59 TInt CCommDbTest026_01::executeStepL()
       
    60 	{
       
    61 
       
    62 	CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref1;
       
    63 	pref1.iRanking = 1;
       
    64 	pref1.iDirection = ECommDbConnectionDirectionOutgoing;
       
    65 	pref1.iDialogPref = ECommDbDialogPrefPrompt;
       
    66 	pref1.iBearer.iBearerSet = KCommDbBearerCSD;
       
    67 	pref1.iBearer.iIapId = 1;
       
    68 
       
    69 	iPrefView->InsertConnectionPreferenceL(pref1, EFalse);
       
    70 
       
    71 	CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref2;
       
    72 	pref2.iRanking = 2;
       
    73 	pref2.iDirection = ECommDbConnectionDirectionOutgoing;
       
    74 	pref2.iDialogPref = ECommDbDialogPrefPrompt;
       
    75 	pref2.iBearer.iBearerSet = KCommDbBearerCSD;
       
    76 	pref2.iBearer.iIapId = 2;
       
    77 	
       
    78 	iPrefView->InsertConnectionPreferenceL(pref2, EFalse);
       
    79 
       
    80 	return KErrNone;
       
    81 	}
       
    82 	
       
    83 TVerdict CCommDbTest026_01::doTestStepPostambleL()
       
    84 	{
       
    85 		//Get rid of our view
       
    86 	if(iPrefView)
       
    87 		{
       
    88 		delete iPrefView;
       
    89 		}
       
    90 	iPrefView=0;
       
    91 
       
    92 	//Create a new view that should have the record that was added in executeStepL and
       
    93 	// may have been left in by a leave condition
       
    94 	iPrefView = iTheDb->OpenConnectionPrefTableLC();
       
    95 	CleanupStack::Pop();
       
    96 
       
    97 	if(iPrefView->GotoFirstRecord() == KErrNone)
       
    98 		{
       
    99 		iPrefView->DeleteConnectionPreferenceL();
       
   100 		}
       
   101 	if(iPrefView->GotoFirstRecord() == KErrNone)
       
   102 		{
       
   103 		iPrefView->DeleteConnectionPreferenceL();
       
   104 		}
       
   105 	
       
   106 	// Cleanup after test run
       
   107 	CTestStepCommDb::doTestStepPostambleL();	
       
   108 	return EPass;
       
   109 	}
       
   110 
       
   111 //
       
   112 
       
   113 CCommDbTest026_02::CCommDbTest026_02()
       
   114 	{
       
   115 	// store the name of this test case
       
   116 	iTestStepName = _L("step_026_02");
       
   117 	}
       
   118 
       
   119 CCommDbTest026_02::~CCommDbTest026_02()
       
   120 	{}
       
   121 
       
   122 TVerdict CCommDbTest026_02::doTestStepL( void )
       
   123 	{
       
   124 	if (KErrAlreadyExists == executeStepL())
       
   125 		return EPass;
       
   126 	return EFail;
       
   127 	}
       
   128 
       
   129 TVerdict CCommDbTest026_02::doTestStepPreambleL()
       
   130 	{
       
   131 //	copyFileL(KCommDefault3, KCommDbName);
       
   132 	iTheDb=CCommsDatabase::NewL();
       
   133 
       
   134 	iPrefView = iTheDb->OpenConnectionPrefTableLC();
       
   135 	CleanupStack::Pop();
       
   136 
       
   137 	iTheDb->SetGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS),2);
       
   138 	return EPass;
       
   139 	}
       
   140 
       
   141 TInt CCommDbTest026_02::executeStepL()
       
   142 	{
       
   143 
       
   144 	CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref1;
       
   145 	pref1.iRanking = 1;
       
   146 	pref1.iDirection = ECommDbConnectionDirectionOutgoing;
       
   147 	pref1.iDialogPref = ECommDbDialogPrefPrompt;
       
   148 	pref1.iBearer.iBearerSet = KCommDbBearerCSD;
       
   149 	pref1.iBearer.iIapId = 1;
       
   150 
       
   151 	iPrefView->InsertConnectionPreferenceL(pref1, EFalse);
       
   152 
       
   153 	CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref2;
       
   154 	pref2.iRanking = 1;
       
   155 	pref2.iDirection = ECommDbConnectionDirectionOutgoing;
       
   156 	pref2.iDialogPref = ECommDbDialogPrefPrompt;
       
   157 	pref2.iBearer.iBearerSet = KCommDbBearerCSD;
       
   158 	pref2.iBearer.iIapId = 2;
       
   159 	
       
   160 	TRAPD(err, iPrefView->InsertConnectionPreferenceL(pref2, EFalse));
       
   161 	
       
   162 	return err;
       
   163 	}
       
   164 	
       
   165 TVerdict CCommDbTest026_02::doTestStepPostambleL()
       
   166 	{
       
   167 	delete iPrefView;
       
   168 	iPrefView = NULL;
       
   169 	delete iTheDb;
       
   170 	iTheDb=NULL;
       
   171 	return EPass;
       
   172 	}
       
   173 
       
   174 //
       
   175 
       
   176 CCommDbTest026_03::CCommDbTest026_03()
       
   177 	{
       
   178 	// store the name of this test case
       
   179 	iTestStepName = _L("step_026_03");
       
   180 	}
       
   181 
       
   182 CCommDbTest026_03::~CCommDbTest026_03()
       
   183 	{}
       
   184 
       
   185 TVerdict CCommDbTest026_03::doTestStepL( void )
       
   186 	{
       
   187 	if (KErrAlreadyExists == executeStepL())
       
   188 		return EPass;
       
   189 	return EFail;
       
   190 	}
       
   191 
       
   192 TVerdict CCommDbTest026_03::doTestStepPreambleL()
       
   193 	{
       
   194 	iTheDb=CCommsDatabase::NewL();
       
   195 
       
   196 	iPrefView = iTheDb->OpenConnectionPrefTableLC();
       
   197 	CleanupStack::Pop();
       
   198 
       
   199 	iTheDb->SetGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS),2);
       
   200 	return EPass;
       
   201 	}
       
   202 
       
   203 TInt CCommDbTest026_03::executeStepL()
       
   204 	{
       
   205 
       
   206 	CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref1;
       
   207 	pref1.iRanking = 1;
       
   208 	pref1.iDirection = ECommDbConnectionDirectionIncoming;
       
   209 	pref1.iDialogPref = ECommDbDialogPrefPrompt;
       
   210 	pref1.iBearer.iBearerSet = KCommDbBearerCSD;
       
   211 	pref1.iBearer.iIapId = 3;
       
   212 
       
   213 	iPrefView->InsertConnectionPreferenceL(pref1, EFalse);
       
   214 
       
   215 	CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref2;
       
   216 	pref2.iRanking = 1;
       
   217 	pref2.iDirection = ECommDbConnectionDirectionIncoming;
       
   218 	pref2.iDialogPref = ECommDbDialogPrefPrompt;
       
   219 	pref2.iBearer.iBearerSet = KCommDbBearerCSD;
       
   220 	pref2.iBearer.iIapId = 4;
       
   221 	
       
   222 	TRAPD(err, iPrefView->InsertConnectionPreferenceL(pref2, EFalse));
       
   223 	
       
   224 	return err;
       
   225 	}
       
   226 	
       
   227 TVerdict CCommDbTest026_03::doTestStepPostambleL()
       
   228 	{
       
   229 	delete iPrefView;
       
   230 	iPrefView = NULL;
       
   231 	delete iTheDb;
       
   232 	iTheDb=NULL;
       
   233 	return EPass;
       
   234 	}
       
   235 
       
   236 //
       
   237 
       
   238 CCommDbTest026_04::CCommDbTest026_04()
       
   239 	{
       
   240 	// store the name of this test case
       
   241 	iTestStepName = _L("step_026_04");
       
   242 	}
       
   243 
       
   244 CCommDbTest026_04::~CCommDbTest026_04()
       
   245 	{}
       
   246 
       
   247 TVerdict CCommDbTest026_04::doTestStepL( void )
       
   248 	{
       
   249 	if (KErrOverflow == executeStepL())
       
   250 		return EPass;
       
   251 	return EFail;
       
   252 	}
       
   253 
       
   254 TVerdict CCommDbTest026_04::doTestStepPreambleL()
       
   255 	{
       
   256 	iTheDb=CCommsDatabase::NewL();
       
   257 
       
   258 	iPrefView = iTheDb->OpenConnectionPrefTableLC();
       
   259 	CleanupStack::Pop();
       
   260 
       
   261 	iTheDb->SetGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS),2);
       
   262 	return EPass;
       
   263 	}
       
   264 
       
   265 TInt CCommDbTest026_04::executeStepL()
       
   266 	{
       
   267 
       
   268 	CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref1;
       
   269 	pref1.iRanking = 85;
       
   270 	pref1.iDirection = ECommDbConnectionDirectionIncoming;
       
   271 	pref1.iDialogPref = ECommDbDialogPrefPrompt;
       
   272 	pref1.iBearer.iBearerSet = KCommDbBearerCSD;
       
   273 	pref1.iBearer.iIapId = 3;
       
   274 
       
   275 	TRAPD(err, iPrefView->InsertConnectionPreferenceL(pref1, EFalse));
       
   276 	
       
   277 	return err;
       
   278 	}
       
   279 	
       
   280 TVerdict CCommDbTest026_04::doTestStepPostambleL()
       
   281 	{
       
   282 	delete iPrefView;
       
   283 	iPrefView = NULL;
       
   284 	delete iTheDb;
       
   285 	iTheDb=NULL;
       
   286 	return EPass;
       
   287 	}
       
   288 
       
   289 //
       
   290 
       
   291 CCommDbTest026_05::CCommDbTest026_05()
       
   292 	{
       
   293 	// store the name of this test case
       
   294 	iTestStepName = _L("step_026_05");
       
   295 	}
       
   296 
       
   297 CCommDbTest026_05::~CCommDbTest026_05()
       
   298 	{}
       
   299 
       
   300 TVerdict CCommDbTest026_05::doTestStepL( void )
       
   301 	{
       
   302 	if (KErrNotFound == executeStepL())
       
   303 		return EPass;
       
   304 	return EFail;
       
   305 	}
       
   306 
       
   307 TVerdict CCommDbTest026_05::doTestStepPreambleL()
       
   308 	{
       
   309 	iTheDb=CCommsDatabase::NewL();
       
   310 
       
   311 	iPrefView = iTheDb->OpenConnectionPrefTableLC();
       
   312 	CleanupStack::Pop();
       
   313 
       
   314 	iTheDb->SetGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS),2);
       
   315 	return EPass;
       
   316 	}
       
   317 
       
   318 TInt CCommDbTest026_05::executeStepL()
       
   319 	{
       
   320 
       
   321 	CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref1;
       
   322 	pref1.iRanking = 1;
       
   323 	pref1.iDirection = ECommDbConnectionDirectionIncoming;
       
   324 	pref1.iDialogPref = ECommDbDialogPrefPrompt;
       
   325 	pref1.iBearer.iBearerSet = KCommDbBearerCSD;
       
   326 	pref1.iBearer.iIapId = 0xffffffff;
       
   327 
       
   328 	TRAPD(err, iPrefView->InsertConnectionPreferenceL(pref1, EFalse));
       
   329 
       
   330 	return err;
       
   331 	}
       
   332 	
       
   333 TVerdict CCommDbTest026_05::doTestStepPostambleL()
       
   334 	{
       
   335 	//Get rid of our view
       
   336 	if(iPrefView)
       
   337 		{
       
   338 		delete iPrefView;
       
   339 		}
       
   340 	iPrefView=0;
       
   341 
       
   342 	//Create a new view that should have the record that was added in executeStepL and
       
   343 	// may have been left in by a leave condition
       
   344 	iPrefView = iTheDb->OpenConnectionPrefTableLC();
       
   345 	CleanupStack::Pop();
       
   346 
       
   347 	if(iPrefView->GotoFirstRecord() == KErrNone)
       
   348 		{
       
   349 		iPrefView->DeleteConnectionPreferenceL();
       
   350 		}
       
   351 	
       
   352 	iTheDb->ClearGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS));
       
   353 	
       
   354 	// Cleanup after test run
       
   355 	CTestStepCommDb::doTestStepPostambleL();	
       
   356 	return EPass;
       
   357 	}
       
   358 
       
   359 //
       
   360 
       
   361 CCommDbTest026_06::CCommDbTest026_06()
       
   362 	{
       
   363 	// store the name of this test case
       
   364 	iTestStepName = _L("step_026_06");
       
   365 	}
       
   366 
       
   367 CCommDbTest026_06::~CCommDbTest026_06()
       
   368 	{}
       
   369 
       
   370 TVerdict CCommDbTest026_06::doTestStepL( void )
       
   371 	{
       
   372 	if (KErrArgument == executeStepL())
       
   373 		return EPass;
       
   374 	return EFail;
       
   375 	}
       
   376 
       
   377 TVerdict CCommDbTest026_06::doTestStepPreambleL()
       
   378 	{
       
   379 	iTheDb=CCommsDatabase::NewL();
       
   380 
       
   381 	iPrefView = iTheDb->OpenConnectionPrefTableLC();
       
   382 	CleanupStack::Pop();
       
   383 
       
   384 	iTheDb->SetGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS),2);
       
   385 	return EPass;
       
   386 	}
       
   387 
       
   388 TInt CCommDbTest026_06::executeStepL()
       
   389 	{
       
   390 
       
   391 	CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref1;
       
   392 	pref1.iRanking = 1;
       
   393 	pref1.iDirection = ECommDbConnectionDirectionIncoming;
       
   394 	pref1.iDialogPref = ECommDbDialogPrefPrompt;
       
   395 	pref1.iBearer.iBearerSet = 0x80000000;
       
   396 	pref1.iBearer.iIapId = 3;
       
   397 
       
   398 	TRAPD(err, iPrefView->InsertConnectionPreferenceL(pref1, EFalse));
       
   399 
       
   400 	return err;
       
   401 	}
       
   402 	
       
   403 TVerdict CCommDbTest026_06::doTestStepPostambleL()
       
   404 	{
       
   405 	//Get rid of our view
       
   406 	if(iPrefView)
       
   407 		{
       
   408 		delete iPrefView;
       
   409 		}
       
   410 	iPrefView=0;
       
   411 
       
   412 	//Create a new view that should have the record that was added in executeStepL and
       
   413 	// may have been left in by a leave condition
       
   414 	iPrefView = iTheDb->OpenConnectionPrefTableLC();
       
   415 	CleanupStack::Pop();
       
   416 
       
   417 	if(iPrefView->GotoFirstRecord() == KErrNone)
       
   418 		{
       
   419 		iPrefView->DeleteConnectionPreferenceL();
       
   420 		}
       
   421 
       
   422 	iTheDb->ClearGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS));
       
   423 	
       
   424 	// Cleanup after test run
       
   425 	CTestStepCommDb::doTestStepPostambleL();	
       
   426 	return EPass;
       
   427 	}
       
   428 
       
   429 //
       
   430 
       
   431 CCommDbTest026_07::CCommDbTest026_07()
       
   432 	{
       
   433 	// store the name of this test case
       
   434 	iTestStepName = _L("step_026_07");
       
   435 	}
       
   436 
       
   437 CCommDbTest026_07::~CCommDbTest026_07()
       
   438 	{}
       
   439 
       
   440 TVerdict CCommDbTest026_07::doTestStepL( void )
       
   441 	{
       
   442 	if (KErrArgument == executeStepL())
       
   443 		return EPass;
       
   444 	return EFail;
       
   445 	}
       
   446 
       
   447 TVerdict CCommDbTest026_07::doTestStepPreambleL()
       
   448 	{
       
   449 	iTheDb=CCommsDatabase::NewL();
       
   450 
       
   451 	iPrefView = iTheDb->OpenConnectionPrefTableLC();
       
   452 	CleanupStack::Pop();
       
   453 
       
   454 	iTheDb->SetGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS),2);
       
   455 	return EPass;
       
   456 	}
       
   457 
       
   458 TInt CCommDbTest026_07::executeStepL()
       
   459 	{
       
   460 
       
   461 	CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref1;
       
   462 	pref1.iRanking = 1;
       
   463 	pref1.iDirection = ECommDbConnectionDirectionOutgoing;
       
   464 	pref1.iDialogPref = ECommDbDialogPrefPromptIfWrongMode;
       
   465 	pref1.iBearer.iBearerSet = KCommDbBearerCSD;
       
   466 	pref1.iBearer.iIapId = 1;
       
   467 
       
   468 	TRAPD(err, iPrefView->InsertConnectionPreferenceL(pref1, EFalse));
       
   469 
       
   470 	return err;
       
   471 	}
       
   472 	
       
   473 TVerdict CCommDbTest026_07::doTestStepPostambleL()
       
   474 	{
       
   475 	//Get rid of our view
       
   476 	if(iPrefView)
       
   477 		{
       
   478 		delete iPrefView;
       
   479 		}
       
   480 	iPrefView=0;
       
   481 
       
   482 	//Create a new view that should have the record that was added in executeStepL and
       
   483 	// may have been left in by a leave condition
       
   484 	iPrefView = iTheDb->OpenConnectionPrefTableLC();
       
   485 	CleanupStack::Pop();
       
   486 
       
   487 	if(iPrefView->GotoFirstRecord() == KErrNone)
       
   488 		{
       
   489 		iPrefView->DeleteConnectionPreferenceL();
       
   490 		}
       
   491 
       
   492 	iTheDb->ClearGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS));
       
   493 	
       
   494 	// Cleanup after test run
       
   495 	CTestStepCommDb::doTestStepPostambleL();	
       
   496 	return EPass;
       
   497 	}
       
   498 
       
   499 //
       
   500 
       
   501 CCommDbTest026_08::CCommDbTest026_08()
       
   502 	{
       
   503 	// store the name of this test case
       
   504 	iTestStepName = _L("step_026_08");
       
   505 	}
       
   506 
       
   507 CCommDbTest026_08::~CCommDbTest026_08()
       
   508 	{}
       
   509 
       
   510 TVerdict CCommDbTest026_08::doTestStepL( void )
       
   511 	{
       
   512 	if (KErrArgument == executeStepL())
       
   513 		return EPass;
       
   514 	return EFail;
       
   515 	}
       
   516 
       
   517 TVerdict CCommDbTest026_08::doTestStepPreambleL()
       
   518 	{
       
   519 	iTheDb=CCommsDatabase::NewL();
       
   520 
       
   521 	iPrefView = iTheDb->OpenConnectionPrefTableLC();
       
   522 	CleanupStack::Pop();
       
   523 
       
   524 	iTheDb->SetGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS),2);
       
   525 	return EPass;
       
   526 	}
       
   527 
       
   528 TInt CCommDbTest026_08::executeStepL()
       
   529 	{
       
   530 
       
   531 	CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref1;
       
   532 	pref1.iRanking = 1;
       
   533 	pref1.iDirection = ECommDbConnectionDirectionIncoming;
       
   534 	pref1.iDialogPref = ECommDbDialogPrefPrompt;
       
   535 	pref1.iBearer.iBearerSet = KCommDbBearerCSD;
       
   536 	pref1.iBearer.iIapId = 1;
       
   537 
       
   538 	TRAPD(err, iPrefView->InsertConnectionPreferenceL(pref1, EFalse));
       
   539 
       
   540 	return err;
       
   541 	}
       
   542 	
       
   543 TVerdict CCommDbTest026_08::doTestStepPostambleL()
       
   544 	{
       
   545 	//Get rid of our view
       
   546 	if(iPrefView)
       
   547 		{
       
   548 		delete iPrefView;
       
   549 		}
       
   550 	iPrefView=0;
       
   551 
       
   552 	//Create a new view that should have the record that was added in executeStepL and
       
   553 	// may have been left in by a leave condition
       
   554 	iPrefView = iTheDb->OpenConnectionPrefTableLC();
       
   555 	CleanupStack::Pop();
       
   556 
       
   557 	if(iPrefView->GotoFirstRecord() == KErrNone)
       
   558 		{
       
   559 		iPrefView->DeleteConnectionPreferenceL();
       
   560 		}
       
   561 
       
   562 	iTheDb->ClearGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS));
       
   563 	
       
   564 	// Cleanup after test run
       
   565 	CTestStepCommDb::doTestStepPostambleL();	
       
   566 	return EPass;
       
   567 	}
       
   568 
       
   569 //
       
   570 
       
   571 CCommDbTest026_09::CCommDbTest026_09()
       
   572 	{
       
   573 	// store the name of this test case
       
   574 	iTestStepName = _L("step_026_09");
       
   575 	}
       
   576 
       
   577 CCommDbTest026_09::~CCommDbTest026_09()
       
   578 	{}
       
   579 
       
   580 TVerdict CCommDbTest026_09::doTestStepL( void )
       
   581 	{
       
   582 	Log(_L("Step 026.09 called "));
       
   583 
       
   584 	iTestStepResult = EPass;
       
   585 
       
   586 	CCommDbTest026_01* step026_01 = new(ELeave) CCommDbTest026_01;
       
   587 	CleanupStack::PushL(step026_01);
       
   588 	step026_01->iSuite = iSuite;
       
   589 	doTestStepWithHeapFailureL( *step026_01, KErrNone);
       
   590 	CleanupStack::PopAndDestroy(step026_01);
       
   591 
       
   592 
       
   593 	return iTestStepResult;
       
   594 	}
       
   595 
       
   596 
       
   597 CCommDbTest026_10::CCommDbTest026_10()
       
   598 	{
       
   599 	// store the name of this test case
       
   600 	iTestStepName = _L("step_026_10");
       
   601 	}
       
   602 
       
   603 CCommDbTest026_10::~CCommDbTest026_10()
       
   604 	{}
       
   605 
       
   606 TVerdict CCommDbTest026_10::doTestStepL( void )
       
   607 	{
       
   608 	Log(_L("Step 026.10 called "));
       
   609 
       
   610 	iTestStepResult = EPass;
       
   611 	
       
   612 	CCommDbTest026_02* step026_02 = new(ELeave) CCommDbTest026_02;
       
   613 	CleanupStack::PushL(step026_02);
       
   614 	step026_02->iSuite = iSuite;
       
   615 	doTestStepWithHeapFailureL( *step026_02, KErrAlreadyExists);
       
   616 	CleanupStack::PopAndDestroy(step026_02);
       
   617 	
       
   618 	return iTestStepResult;
       
   619 	}
       
   620 	
       
   621 	
       
   622 CCommDbTest026_11::CCommDbTest026_11()
       
   623 	{
       
   624 	// store the name of this test case
       
   625 	iTestStepName = _L("step_026_11");
       
   626 	}
       
   627 
       
   628 CCommDbTest026_11::~CCommDbTest026_11()
       
   629 	{}
       
   630 
       
   631 TVerdict CCommDbTest026_11::doTestStepL( void )
       
   632 	{
       
   633 	Log(_L("Step 026.11 called "));
       
   634 
       
   635 	iTestStepResult = EPass;
       
   636 	
       
   637 		CCommDbTest026_03* step026_03 = new(ELeave) CCommDbTest026_03;
       
   638 	CleanupStack::PushL(step026_03);
       
   639 	step026_03->iSuite = iSuite;
       
   640 	doTestStepWithHeapFailureL( *step026_03, KErrAlreadyExists);
       
   641 	CleanupStack::PopAndDestroy(step026_03);
       
   642 	
       
   643 	return iTestStepResult;
       
   644 	}
       
   645 	
       
   646 CCommDbTest026_12::CCommDbTest026_12()
       
   647 	{
       
   648 	// store the name of this test case
       
   649 	iTestStepName = _L("step_026_12");
       
   650 	}
       
   651 
       
   652 CCommDbTest026_12::~CCommDbTest026_12()
       
   653 	{}
       
   654 
       
   655 TVerdict CCommDbTest026_12::doTestStepL( void )
       
   656 	{
       
   657 	Log(_L("Step 026.12 called "));
       
   658 
       
   659 	iTestStepResult = EPass;
       
   660 	
       
   661 	CCommDbTest026_04* step026_04 = new(ELeave) CCommDbTest026_04;
       
   662 	CleanupStack::PushL(step026_04);
       
   663 	step026_04->iSuite = iSuite;
       
   664 	doTestStepWithHeapFailureL( *step026_04, KErrOverflow);
       
   665 	CleanupStack::PopAndDestroy(step026_04);
       
   666 	
       
   667 	return iTestStepResult;
       
   668 	}	
       
   669 	
       
   670 CCommDbTest026_13::CCommDbTest026_13()
       
   671 	{
       
   672 	// store the name of this test case
       
   673 	iTestStepName = _L("step_026_13");
       
   674 	}
       
   675 
       
   676 CCommDbTest026_13::~CCommDbTest026_13()
       
   677 	{}
       
   678 
       
   679 TVerdict CCommDbTest026_13::doTestStepL( void )
       
   680 	{
       
   681 	Log(_L("Step 026.13 called "));
       
   682 
       
   683 	iTestStepResult = EPass;
       
   684 	
       
   685 	CCommDbTest026_05* step026_05 = new(ELeave) CCommDbTest026_05;
       
   686 	CleanupStack::PushL(step026_05);
       
   687 	step026_05->iSuite = iSuite;
       
   688 	doTestStepWithHeapFailureL( *step026_05, KErrNotFound);
       
   689 	CleanupStack::PopAndDestroy(step026_05);
       
   690 	
       
   691 	return iTestStepResult;
       
   692 	}	
       
   693 		
       
   694 CCommDbTest026_14::CCommDbTest026_14()
       
   695 	{
       
   696 	// store the name of this test case
       
   697 	iTestStepName = _L("step_026_14");
       
   698 	}
       
   699 
       
   700 CCommDbTest026_14::~CCommDbTest026_14()
       
   701 	{}
       
   702 
       
   703 TVerdict CCommDbTest026_14::doTestStepL( void )
       
   704 	{
       
   705 	Log(_L("Step 026.14 called "));
       
   706 
       
   707 	iTestStepResult = EPass;
       
   708 	
       
   709 	CCommDbTest026_06* step026_06 = new(ELeave) CCommDbTest026_06;
       
   710 	CleanupStack::PushL(step026_06);
       
   711 	step026_06->iSuite = iSuite;
       
   712 	doTestStepWithHeapFailureL( *step026_06, KErrArgument);
       
   713 	CleanupStack::PopAndDestroy(step026_06);
       
   714 	
       
   715 	return iTestStepResult;
       
   716 	}	
       
   717 	
       
   718 CCommDbTest026_15::CCommDbTest026_15()
       
   719 	{
       
   720 	// store the name of this test case
       
   721 	iTestStepName = _L("step_026_15");
       
   722 	}
       
   723 
       
   724 CCommDbTest026_15::~CCommDbTest026_15()
       
   725 	{}
       
   726 
       
   727 TVerdict CCommDbTest026_15::doTestStepL( void )
       
   728 	{
       
   729 	Log(_L("Step 026.15 called "));
       
   730 
       
   731 	iTestStepResult = EPass;
       
   732 	
       
   733 	CCommDbTest026_07* step026_07 = new(ELeave) CCommDbTest026_07;
       
   734 	CleanupStack::PushL(step026_07);
       
   735 	step026_07->iSuite = iSuite;
       
   736 	doTestStepWithHeapFailureL( *step026_07, KErrArgument);
       
   737 	CleanupStack::PopAndDestroy(step026_07);
       
   738 	
       
   739 	return iTestStepResult;
       
   740 	}	
       
   741 	
       
   742 CCommDbTest026_16::CCommDbTest026_16()
       
   743 	{
       
   744 	// store the name of this test case
       
   745 	iTestStepName = _L("step_026_16");
       
   746 	}
       
   747 
       
   748 CCommDbTest026_16::~CCommDbTest026_16()
       
   749 	{}
       
   750 
       
   751 TVerdict CCommDbTest026_16::doTestStepL( void )
       
   752 	{
       
   753 	Log(_L("Step 026.16 called "));
       
   754 
       
   755 	iTestStepResult = EPass;
       
   756 	
       
   757 	CCommDbTest026_08* step026_08 = new(ELeave) CCommDbTest026_08;
       
   758 	CleanupStack::PushL(step026_08);
       
   759 	step026_08->iSuite = iSuite;
       
   760 	doTestStepWithHeapFailureL( *step026_08, KErrArgument);
       
   761 	CleanupStack::PopAndDestroy(step026_08);
       
   762 	
       
   763 	return iTestStepResult;
       
   764 	}	
       
   765 
       
   766 //EOF