commsconfig/commsdatabaseshim/ts_commdb/Step_019_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 019.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_019_xx.h"
       
    29 
       
    30 
       
    31 
       
    32 //
       
    33 //	Test step 019.01
       
    34 //
       
    35 
       
    36 // constructor
       
    37 CCommDbTest019_01::CCommDbTest019_01()
       
    38 	{
       
    39 	// store the name of this test case
       
    40 	iTestStepName = _L("step_019_01");
       
    41 	}
       
    42 
       
    43 // destructor
       
    44 CCommDbTest019_01::~CCommDbTest019_01()
       
    45 	{
       
    46 	}
       
    47 
       
    48 
       
    49 TVerdict CCommDbTest019_01::doTestStepPreambleL()
       
    50 	{	
       
    51 	openDbL();
       
    52 	return EPass;
       
    53 	}
       
    54 
       
    55 
       
    56 TInt CCommDbTest019_01::executeStepL()
       
    57 	{
       
    58 	TInt ret=KErrGeneral;
       
    59 
       
    60 	//Select a view and verify the records in it
       
    61 
       
    62 	//This should just select 2 records
       
    63 	iTheView = iTheDb->OpenViewMatchingUintLC( TPtrC(DIAL_OUT_ISP), TPtrC(ISP_TYPE), EIspTypeInternetAndWAP );
       
    64 	CleanupStack::Pop();
       
    65 	CDBLEAVE( iTheView->GotoFirstRecord(), KErrNone );
       
    66 
       
    67 	//Check its the record we expect
       
    68 	TBuf<KCommsDbSvrMaxFieldLength> value;
       
    69 	iTheView->ReadTextL( TPtrC(COMMDB_NAME), value );
       
    70 	if( !value.Compare(_L("Record #1")) )
       
    71 		{
       
    72 		//There should be no more records in the view
       
    73 		CDBLEAVE( iTheView->GotoNextRecord(), KErrNotFound );
       
    74 		ret = KErrNone;
       
    75 		}
       
    76 	
       
    77 	return ret;
       
    78 	}
       
    79 
       
    80 
       
    81 
       
    82 TVerdict CCommDbTest019_01::doTestStepL( )
       
    83 	{
       
    84 	Log(_L("Step 019.01 called "));
       
    85 
       
    86 
       
    87 	if ( executeStepL() == KErrNone )
       
    88 		iTestStepResult = EPass;
       
    89 	else
       
    90 		iTestStepResult = EFail;
       
    91 
       
    92 	return iTestStepResult;
       
    93 	}
       
    94 
       
    95 
       
    96 
       
    97 //
       
    98 //	Test step 019.02
       
    99 //
       
   100 
       
   101 // constructor
       
   102 CCommDbTest019_02::CCommDbTest019_02()
       
   103 	{
       
   104 	// store the name of this test case
       
   105 	iTestStepName = _L("step_019_02");
       
   106 	}
       
   107 
       
   108 // destructor
       
   109 CCommDbTest019_02::~CCommDbTest019_02()
       
   110 	{
       
   111 	}
       
   112 
       
   113 
       
   114 TVerdict CCommDbTest019_02::doTestStepPreambleL()
       
   115 	{	
       
   116 	openDbL();
       
   117 	return EPass;
       
   118 	}
       
   119 
       
   120 
       
   121 TInt CCommDbTest019_02::executeStepL()
       
   122 	{
       
   123 	TInt ret=KErrGeneral;
       
   124 
       
   125 	//Select a view and verify the records in it
       
   126 
       
   127 	//This should just select 2 records
       
   128 	iTheView = iTheDb->OpenViewMatchingBoolLC( TPtrC(DIAL_OUT_ISP), TPtrC(ISP_PROMPT_FOR_LOGIN), EFalse );
       
   129 	CleanupStack::Pop();
       
   130 	CDBLEAVE( iTheView->GotoFirstRecord(), KErrNone );
       
   131 
       
   132 	//Check its the record we expect
       
   133 	TBuf<KCommsDbSvrMaxFieldLength> value;
       
   134 	iTheView->ReadTextL( TPtrC(COMMDB_NAME), value );
       
   135 	if( !value.Compare(_L("Record #1")) )
       
   136 		{
       
   137 			// Move onto the second record and check that
       
   138 			CDBLEAVE( iTheView->GotoNextRecord(), KErrNone );
       
   139 			iTheView->ReadTextL( TPtrC(COMMDB_NAME), value );
       
   140 			if ( !value.Compare(_L("Record #2")) )
       
   141 				{
       
   142 				//There should be no more records in the view
       
   143 				CDBLEAVE( iTheView->GotoNextRecord(), KErrNotFound );
       
   144 				ret = KErrNone;
       
   145 				}
       
   146 		}
       
   147 
       
   148 	
       
   149 	return ret;
       
   150 	}
       
   151 
       
   152 
       
   153 
       
   154 TVerdict CCommDbTest019_02::doTestStepL( )
       
   155 	{
       
   156 	Log(_L("Step 019.02 called "));
       
   157 
       
   158 
       
   159 	if ( executeStepL() == KErrNone )
       
   160 		iTestStepResult = EPass;
       
   161 	else
       
   162 		iTestStepResult = EFail;
       
   163 
       
   164 	return iTestStepResult;
       
   165 	}
       
   166 
       
   167 
       
   168 //
       
   169 //	Test step 019.03
       
   170 //
       
   171 
       
   172 // constructor
       
   173 CCommDbTest019_03::CCommDbTest019_03()
       
   174 	{
       
   175 	// store the name of this test case
       
   176 	iTestStepName = _L("step_019_03");
       
   177 	}
       
   178 
       
   179 // destructor
       
   180 CCommDbTest019_03::~CCommDbTest019_03()
       
   181 	{
       
   182 	}
       
   183 
       
   184 
       
   185 TVerdict CCommDbTest019_03::doTestStepPreambleL()
       
   186 	{	
       
   187 	openDbL();
       
   188 	return EPass;
       
   189 	}
       
   190 
       
   191 
       
   192 TInt CCommDbTest019_03::executeStepL()
       
   193 	{
       
   194 	TInt ret=KErrNone;
       
   195 	//Select a view and verify the records in it
       
   196 
       
   197 	//This should just select 2 records
       
   198 	iTheView = iTheDb->OpenViewMatchingTextLC( TPtrC(DIAL_OUT_ISP), TPtrC(ISP_IF_CALLBACK_INFO), _L8("Call me back") );
       
   199 	CleanupStack::Pop();
       
   200 	CDBLEAVE( iTheView->GotoFirstRecord(), KErrNone );
       
   201 
       
   202 	//Check its the record we expect
       
   203 	TBuf<KCommsDbSvrMaxFieldLength> value;
       
   204 	iTheView->ReadTextL( TPtrC(COMMDB_NAME), value );
       
   205 	if( !value.Compare(_L("Record #1")) )
       
   206 		{
       
   207 			// Move onto the second record and check that
       
   208 			CDBLEAVE( iTheView->GotoNextRecord(), KErrNone );
       
   209 			iTheView->ReadTextL( TPtrC(COMMDB_NAME), value );
       
   210 			if ( !value.Compare(_L("Record #3")) )
       
   211 				{
       
   212 				//There should be no more records in the view
       
   213 				CDBLEAVE( iTheView->GotoNextRecord(), KErrNotFound );
       
   214 				ret = KErrNone;
       
   215 				}
       
   216 		}
       
   217 
       
   218 	return ret;
       
   219 	}
       
   220 
       
   221 
       
   222 
       
   223 TVerdict CCommDbTest019_03::doTestStepL( )
       
   224 	{
       
   225 	Log(_L("Step 019.03 called "));
       
   226 
       
   227 
       
   228 	if ( executeStepL() == KErrNone )
       
   229 		iTestStepResult = EPass;
       
   230 	else
       
   231 		iTestStepResult = EFail;
       
   232 
       
   233 	return iTestStepResult;
       
   234 	}
       
   235 
       
   236 
       
   237 //
       
   238 //	Test step 019.04
       
   239 //
       
   240 
       
   241 // constructor
       
   242 CCommDbTest019_04::CCommDbTest019_04()
       
   243 	{
       
   244 	// store the name of this test case
       
   245 	iTestStepName = _L("step_019_04");
       
   246 	}
       
   247 
       
   248 // destructor
       
   249 CCommDbTest019_04::~CCommDbTest019_04()
       
   250 	{
       
   251 	}
       
   252 
       
   253 
       
   254 TVerdict CCommDbTest019_04::doTestStepPreambleL()
       
   255 	{	
       
   256 	openDbL();
       
   257 	return EPass;
       
   258 	}
       
   259 
       
   260 
       
   261 TInt CCommDbTest019_04::executeStepL()
       
   262 	{
       
   263 	TInt ret=KErrNone;
       
   264 	//Select a view and verify the records in it
       
   265 
       
   266 	//This should just select 2 records
       
   267 	iTheView = iTheDb->OpenViewMatchingTextLC( TPtrC(DIAL_OUT_ISP), TPtrC(ISP_IF_CALLBACK_INFO), _L("Call me back") );
       
   268 	CleanupStack::Pop();
       
   269 	CDBLEAVE( iTheView->GotoFirstRecord(), KErrNone );
       
   270 
       
   271 	//Check its the record we expect
       
   272 	TBuf<KCommsDbSvrMaxFieldLength> value;
       
   273 	iTheView->ReadTextL( TPtrC(COMMDB_NAME), value );
       
   274 	if( !value.Compare(_L("Record #1")) )
       
   275 		{
       
   276 			// Move onto the second record and check that
       
   277 			CDBLEAVE( iTheView->GotoNextRecord(), KErrNone );
       
   278 			iTheView->ReadTextL( TPtrC(COMMDB_NAME), value );
       
   279 			if ( !value.Compare(_L("Record #3")) )
       
   280 				{
       
   281 				//There should be no more records in the view
       
   282 				CDBLEAVE( iTheView->GotoNextRecord(), KErrNotFound );
       
   283 				ret = KErrNone;
       
   284 				}
       
   285 		}
       
   286 
       
   287 	return ret;
       
   288 	}
       
   289 
       
   290 
       
   291 
       
   292 TVerdict CCommDbTest019_04::doTestStepL( )
       
   293 	{
       
   294 	Log(_L("Step 019.04 called "));
       
   295 
       
   296 
       
   297 	if ( executeStepL() == KErrNone )
       
   298 		iTestStepResult = EPass;
       
   299 	else
       
   300 		iTestStepResult = EFail;
       
   301 
       
   302 	return iTestStepResult;
       
   303 	}
       
   304 
       
   305 
       
   306 //
       
   307 //	Test step 019.05
       
   308 //
       
   309 
       
   310 // constructor
       
   311 CCommDbTest019_05::CCommDbTest019_05()
       
   312 	{
       
   313 	// store the name of this test case
       
   314 	iTestStepName = _L("step_019_05");
       
   315 	}
       
   316 
       
   317 // destructor
       
   318 CCommDbTest019_05::~CCommDbTest019_05()
       
   319 	{
       
   320 	}
       
   321 
       
   322 
       
   323 TVerdict CCommDbTest019_05::doTestStepPreambleL()
       
   324 	{	
       
   325 	openDbL();
       
   326 	return EPass;
       
   327 	}
       
   328 
       
   329 
       
   330 TInt CCommDbTest019_05::executeStepL()
       
   331 	{
       
   332 	TInt ret=KErrGeneral;
       
   333 	//Select a view on an invalid table
       
   334 
       
   335 	TRAPD(r, iTheView = iTheDb->OpenViewMatchingTextLC( _L("Invalid"), TPtrC(ISP_IF_CALLBACK_INFO), _L8("Call me back") ) );
       
   336 	if ( r== KErrNone )
       
   337 		{
       
   338 		//The test has failed as the open view did not leave
       
   339 		CleanupStack::Pop();
       
   340 		}
       
   341 		else
       
   342 		{
       
   343 			//The call did leave
       
   344 			ret = r;
       
   345 		}
       
   346 	
       
   347 	return ret;
       
   348 	}
       
   349 
       
   350 
       
   351 
       
   352 TVerdict CCommDbTest019_05::doTestStepL( )
       
   353 	{
       
   354 	Log(_L("Step 019.05 called "));
       
   355 
       
   356 
       
   357 	if ( executeStepL() == KErrNotFound )
       
   358 		iTestStepResult = EPass;
       
   359 	else
       
   360 		iTestStepResult = EFail;
       
   361 
       
   362 	return iTestStepResult;
       
   363 	}
       
   364 
       
   365 
       
   366 //
       
   367 //	Test step 019.06
       
   368 //
       
   369 
       
   370 // constructor
       
   371 CCommDbTest019_06::CCommDbTest019_06()
       
   372 	{
       
   373 	// store the name of this test case
       
   374 	iTestStepName = _L("step_019_06");
       
   375 	}
       
   376 
       
   377 // destructor
       
   378 CCommDbTest019_06::~CCommDbTest019_06()
       
   379 	{
       
   380 	}
       
   381 
       
   382 
       
   383 TVerdict CCommDbTest019_06::doTestStepPreambleL()
       
   384 	{	
       
   385 	openDbL();
       
   386 	return EPass;
       
   387 	}
       
   388 
       
   389 
       
   390 TInt CCommDbTest019_06::executeStepL()
       
   391 	{
       
   392 	TInt ret=KErrGeneral;
       
   393 	//Select a view on an invalid table
       
   394 
       
   395 	TRAPD(r, iTheView = iTheDb->OpenViewMatchingTextLC( TPtrC(DIAL_OUT_ISP), _L("Invalid"), _L8("Call me back") ) );
       
   396 	if ( r== KErrNone )
       
   397 		{
       
   398 		//The test has failed as the open view did not leave
       
   399 		CleanupStack::Pop();
       
   400 		}
       
   401 		else
       
   402 		{
       
   403 			//The call did leave
       
   404 			ret = r;
       
   405 		}
       
   406 	
       
   407 	return ret;
       
   408 	}
       
   409 
       
   410 
       
   411 
       
   412 TVerdict CCommDbTest019_06::doTestStepL( )
       
   413 	{
       
   414 	Log(_L("Step 019.06 called "));
       
   415 
       
   416 
       
   417 	if ( executeStepL() == KErrNotFound )
       
   418 		iTestStepResult = EPass;
       
   419 	else
       
   420 		iTestStepResult = EFail;
       
   421 
       
   422 	return iTestStepResult;
       
   423 	}
       
   424 
       
   425 
       
   426 //
       
   427 //	Test step 019.07
       
   428 //
       
   429 
       
   430 // constructor
       
   431 CCommDbTest019_07::CCommDbTest019_07()
       
   432 	{
       
   433 	// store the name of this test case
       
   434 	iTestStepName = _L("step_019_07");
       
   435 	}
       
   436 
       
   437 // destructor
       
   438 CCommDbTest019_07::~CCommDbTest019_07()
       
   439 	{
       
   440 	}
       
   441 
       
   442 
       
   443 TVerdict CCommDbTest019_07::doTestStepPreambleL()
       
   444 	{	
       
   445 	openDbL();
       
   446 	return EPass;
       
   447 	}
       
   448 
       
   449 
       
   450 TInt CCommDbTest019_07::executeStepL()
       
   451 	{
       
   452 	TInt ret=KErrNone;
       
   453 	//Select a view and verify the records in it
       
   454 
       
   455 	//This should just select 3 records
       
   456 	iTheView = iTheDb->OpenViewMatchingTextLC( TPtrC(DIAL_OUT_ISP), TPtrC(ISP_LOGIN_NAME), _L8("") );
       
   457 	CleanupStack::Pop();
       
   458 	CDBLEAVE( iTheView->GotoFirstRecord(), KErrNone );
       
   459 
       
   460 	//Check its the record we expect
       
   461 	TBuf<KCommsDbSvrMaxFieldLength> value;
       
   462 	iTheView->ReadTextL( TPtrC(COMMDB_NAME), value );
       
   463 	if( !value.Compare(_L("Record #1")) )
       
   464 		{
       
   465 			// Move onto the second record and check that
       
   466 			CDBLEAVE( iTheView->GotoNextRecord(), KErrNone );
       
   467 			iTheView->ReadTextL( TPtrC(COMMDB_NAME), value );
       
   468 			if ( !value.Compare(_L("Record #2")) )
       
   469 				{
       
   470 				//There should be no more records in the view
       
   471 				CDBLEAVE( iTheView->GotoNextRecord(), KErrNone );
       
   472 				iTheView->ReadTextL( TPtrC(COMMDB_NAME), value );
       
   473 				if ( !value.Compare(_L("Record #3")) )
       
   474 					{
       
   475 					CDBLEAVE( iTheView->GotoNextRecord(), KErrNotFound );
       
   476 					ret = KErrNone;
       
   477 					}
       
   478 				}
       
   479 		}
       
   480 
       
   481 	return ret;
       
   482 	}
       
   483 
       
   484 
       
   485 
       
   486 TVerdict CCommDbTest019_07::doTestStepL( )
       
   487 	{
       
   488 	Log(_L("Step 019.07 called "));
       
   489 
       
   490 
       
   491 	if ( executeStepL() == KErrNone )
       
   492 		iTestStepResult = EPass;
       
   493 	else
       
   494 		iTestStepResult = EFail;
       
   495 
       
   496 	return iTestStepResult;
       
   497 	}
       
   498 
       
   499 
       
   500 //
       
   501 //	Test step 019.08
       
   502 //
       
   503 
       
   504 // constructor
       
   505 CCommDbTest019_08::CCommDbTest019_08()
       
   506 	{
       
   507 	// store the name of this test case
       
   508 	iTestStepName = _L("step_019_08");
       
   509 	}
       
   510 
       
   511 // destructor
       
   512 CCommDbTest019_08::~CCommDbTest019_08()
       
   513 	{
       
   514 	}
       
   515 
       
   516 TVerdict CCommDbTest019_08::doTestStepL( )
       
   517 	{
       
   518 	Log(_L("Step 019.08 called "));
       
   519 
       
   520 	iTestStepResult = EPass;
       
   521 
       
   522 		// Heap test for 019.01
       
   523 
       
   524 	CCommDbTest019_01* step019_01 = new(ELeave) CCommDbTest019_01;
       
   525 	CleanupStack::PushL(step019_01);
       
   526 	step019_01->iSuite = iSuite;
       
   527 	if ( doTestStepWithHeapFailureL( *step019_01, KErrNone) == EFail )
       
   528 		iTestStepResult = EFail;
       
   529 	CleanupStack::PopAndDestroy(step019_01);
       
   530 
       
   531 
       
   532 	return iTestStepResult;	
       
   533 
       
   534 }
       
   535 
       
   536 
       
   537 //
       
   538 //	Test step 019.09
       
   539 //
       
   540 
       
   541 // constructor
       
   542 CCommDbTest019_09::CCommDbTest019_09()
       
   543 	{
       
   544 	// store the name of this test case
       
   545 	iTestStepName = _L("step_019_09");
       
   546 	}
       
   547 
       
   548 // destructor
       
   549 CCommDbTest019_09::~CCommDbTest019_09()
       
   550 	{
       
   551 	}
       
   552 
       
   553 TVerdict CCommDbTest019_09::doTestStepL( )
       
   554 	{
       
   555 	Log(_L("Step 019.09 called "));
       
   556 
       
   557 	iTestStepResult = EPass;
       
   558 	
       
   559 			// Heap test for 019.02
       
   560 
       
   561 	CCommDbTest019_02* step019_02 = new CCommDbTest019_02;
       
   562 	CleanupStack::PushL(step019_02);
       
   563 	step019_02->iSuite = iSuite;
       
   564 	if ( doTestStepWithHeapFailureL( *step019_02, KErrNone) == EFail )
       
   565 		iTestStepResult = EFail;
       
   566 	CleanupStack::PopAndDestroy(step019_02);
       
   567 	
       
   568 	return iTestStepResult;
       
   569 	
       
   570 	}
       
   571 	
       
   572 //
       
   573 //	Test step 019.10
       
   574 //
       
   575 
       
   576 // constructor
       
   577 CCommDbTest019_10::CCommDbTest019_10()
       
   578 	{
       
   579 	// store the name of this test case
       
   580 	iTestStepName = _L("step_019_10");
       
   581 	}
       
   582 
       
   583 // destructor
       
   584 CCommDbTest019_10::~CCommDbTest019_10()
       
   585 	{
       
   586 	}
       
   587 
       
   588 TVerdict CCommDbTest019_10::doTestStepL( )
       
   589 	{
       
   590 	Log(_L("Step 019.10 called "));
       
   591 
       
   592 	iTestStepResult = EPass;
       
   593 	
       
   594 		// Heap test for 019.03
       
   595 
       
   596 	CCommDbTest019_03* step019_03 = new CCommDbTest019_03;
       
   597 	CleanupStack::PushL(step019_03);
       
   598 	step019_03->iSuite = iSuite;
       
   599 	if ( doTestStepWithHeapFailureL( *step019_03, KErrNone) == EFail )
       
   600 		iTestStepResult = EFail;
       
   601 	CleanupStack::PopAndDestroy(step019_03);
       
   602 	
       
   603 	return iTestStepResult;
       
   604 	
       
   605 	}
       
   606 	
       
   607 //
       
   608 //	Test step 019.11
       
   609 //
       
   610 
       
   611 // constructor
       
   612 CCommDbTest019_11::CCommDbTest019_11()
       
   613 	{
       
   614 	// store the name of this test case
       
   615 	iTestStepName = _L("step_019_11");
       
   616 	}
       
   617 
       
   618 // destructor
       
   619 CCommDbTest019_11::~CCommDbTest019_11()
       
   620 	{
       
   621 	}
       
   622 
       
   623 TVerdict CCommDbTest019_11::doTestStepL( )
       
   624 	{
       
   625 	Log(_L("Step 019.11 called "));
       
   626 
       
   627 	iTestStepResult = EPass;
       
   628 	
       
   629 		// Heap test for 019.04
       
   630 
       
   631 	CCommDbTest019_04* step019_04 = new CCommDbTest019_04;
       
   632 	CleanupStack::PushL(step019_04);
       
   633 	step019_04->iSuite = iSuite;
       
   634 	if ( doTestStepWithHeapFailureL( *step019_04, KErrNone) == EFail )
       
   635 		iTestStepResult = EFail;
       
   636 	CleanupStack::PopAndDestroy(step019_04);
       
   637 	
       
   638 	return iTestStepResult;
       
   639 	
       
   640 	}
       
   641 
       
   642 //
       
   643 //	Test step 019.12
       
   644 //
       
   645 
       
   646 // constructor
       
   647 CCommDbTest019_12::CCommDbTest019_12()
       
   648 	{
       
   649 	// store the name of this test case
       
   650 	iTestStepName = _L("step_019_12");
       
   651 	}
       
   652 
       
   653 // destructor
       
   654 CCommDbTest019_12::~CCommDbTest019_12()
       
   655 	{
       
   656 	}
       
   657 
       
   658 TVerdict CCommDbTest019_12::doTestStepL( )
       
   659 	{
       
   660 	Log(_L("Step 019.12 called "));
       
   661 
       
   662 	iTestStepResult = EPass;
       
   663 	
       
   664 		// Heap test for 019.05
       
   665 
       
   666 	CCommDbTest019_05* step019_05 = new CCommDbTest019_05;
       
   667 	CleanupStack::PushL(step019_05);
       
   668 	step019_05->iSuite = iSuite;
       
   669 	if ( doTestStepWithHeapFailureL( *step019_05, KErrNotFound) == EFail )
       
   670 		iTestStepResult = EFail;
       
   671 	CleanupStack::PopAndDestroy(step019_05);
       
   672 	
       
   673 	
       
   674 	return iTestStepResult;
       
   675 	
       
   676 	}
       
   677 	
       
   678 //
       
   679 //	Test step 019.13
       
   680 //
       
   681 
       
   682 // constructor
       
   683 CCommDbTest019_13::CCommDbTest019_13()
       
   684 	{
       
   685 	// store the name of this test case
       
   686 	iTestStepName = _L("step_019_13");
       
   687 	}
       
   688 
       
   689 // destructor
       
   690 CCommDbTest019_13::~CCommDbTest019_13()
       
   691 	{
       
   692 	}
       
   693 
       
   694 TVerdict CCommDbTest019_13::doTestStepL( )
       
   695 	{
       
   696 	Log(_L("Step 019.13 called "));
       
   697 
       
   698 	iTestStepResult = EPass;
       
   699 	
       
   700 		// Heap test for 019.06
       
   701 
       
   702 	CCommDbTest019_06* step019_06 = new CCommDbTest019_06;
       
   703 	CleanupStack::PushL(step019_06);
       
   704 	step019_06->iSuite = iSuite;
       
   705 	if ( doTestStepWithHeapFailureL( *step019_06, KErrNotFound) == EFail )
       
   706 		iTestStepResult = EFail;
       
   707 	CleanupStack::PopAndDestroy(step019_06);
       
   708 	
       
   709 	
       
   710 	return iTestStepResult;
       
   711 	
       
   712 	}
       
   713 	
       
   714 //
       
   715 //	Test step 019.14
       
   716 //
       
   717 
       
   718 // constructor
       
   719 CCommDbTest019_14::CCommDbTest019_14()
       
   720 	{
       
   721 	// store the name of this test case
       
   722 	iTestStepName = _L("step_019_14");
       
   723 	}
       
   724 
       
   725 // destructor
       
   726 CCommDbTest019_14::~CCommDbTest019_14()
       
   727 	{
       
   728 	}
       
   729 
       
   730 TVerdict CCommDbTest019_14::doTestStepL( )
       
   731 	{
       
   732 	Log(_L("Step 019.14 called "));
       
   733 
       
   734 	iTestStepResult = EPass;
       
   735 	
       
   736 		// Heap test for 019.07
       
   737 
       
   738 	CCommDbTest019_07* step019_07 = new CCommDbTest019_07;
       
   739 	CleanupStack::PushL(step019_07);
       
   740 	step019_07->iSuite = iSuite;
       
   741 	if ( doTestStepWithHeapFailureL( *step019_07, KErrNone) == EFail )
       
   742 		iTestStepResult = EFail;
       
   743 	CleanupStack::PopAndDestroy(step019_07);
       
   744 	
       
   745 	return iTestStepResult;
       
   746 	
       
   747 	}
       
   748 
       
   749 //EOF