datacommsserver/networkcontroller/ts_netcon/BearerTests.cpp
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #include "BearerTests.h"
       
    17 #include "CTelBearer.h"
       
    18 #include "NetConError.h"
       
    19 
       
    20 //
       
    21 //  Test case NC-4-1
       
    22 //
       
    23 
       
    24 CNetConTest0401* CNetConTest0401::NewLC()
       
    25 	{
       
    26 	CNetConTest0401* self = new(ELeave) CNetConTest0401();
       
    27 	CleanupStack::PushL(self);
       
    28 	self->ConstructL();
       
    29 	return self;
       
    30 	}
       
    31 
       
    32 CNetConTest0401::CNetConTest0401()
       
    33 	{
       
    34 	}
       
    35 
       
    36 void CNetConTest0401::ConstructL()
       
    37 	{
       
    38 
       
    39 	CNetConBearerTestBase::ConstructL(); // base class construct
       
    40 	}
       
    41 
       
    42 CNetConTest0401::~CNetConTest0401()
       
    43 	{
       
    44 	}
       
    45 
       
    46 const TDesC& CNetConTest0401::Name() const
       
    47 	{
       
    48 
       
    49 	_LIT(KTestName, "Test Case NC-4-1");
       
    50 	return KTestName();
       
    51 	}
       
    52 
       
    53 void CNetConTest0401::StartTestL()
       
    54 	{
       
    55 
       
    56 	iTelBearer->StartChecking(EFalse);
       
    57 	iTelBearer->StopChecking();
       
    58 	CompleteTest(MNetConTest::EPassed);
       
    59 	}
       
    60 
       
    61 
       
    62 //
       
    63 //  Test case NC-4-2
       
    64 //
       
    65 
       
    66 CNetConTest0402* CNetConTest0402::NewLC()
       
    67 	{
       
    68 	CNetConTest0402* self = new(ELeave) CNetConTest0402();
       
    69 	CleanupStack::PushL(self);
       
    70 	self->ConstructL();
       
    71 	return self;
       
    72 	}
       
    73 
       
    74 CNetConTest0402::CNetConTest0402()
       
    75 	{
       
    76 	}
       
    77 
       
    78 void CNetConTest0402::ConstructL()
       
    79 	{
       
    80 
       
    81 	CNetConBearerTestBase::ConstructL(); // base class construct
       
    82 	}
       
    83 
       
    84 CNetConTest0402::~CNetConTest0402()
       
    85 	{
       
    86 	}
       
    87 
       
    88 const TDesC& CNetConTest0402::Name() const
       
    89 	{
       
    90 
       
    91 	_LIT(KTestName, "Test Case NC-4-2");
       
    92 	return KTestName();
       
    93 	}
       
    94 
       
    95 void CNetConTest0402::StartTestL()
       
    96 	{
       
    97 	
       
    98 	if(!iTelBearer->StopChecking())
       
    99 		{
       
   100 		CompleteTest(MNetConTest::EPassed);
       
   101 		}
       
   102 	else
       
   103 		{
       
   104 		CompleteTest(MNetConTest::EFailed);
       
   105 		}
       
   106 	}
       
   107 
       
   108 
       
   109 
       
   110 //
       
   111 //  Test case NC-4-3
       
   112 //
       
   113 
       
   114 CNetConTest0403* CNetConTest0403::NewLC()
       
   115 	{
       
   116 	CNetConTest0403* self = new(ELeave) CNetConTest0403();
       
   117 	CleanupStack::PushL(self);
       
   118 	self->ConstructL();
       
   119 	return self;
       
   120 	}
       
   121 
       
   122 CNetConTest0403::CNetConTest0403()
       
   123 	{
       
   124 	}
       
   125 
       
   126 void CNetConTest0403::ConstructL()
       
   127 	{
       
   128 
       
   129 	CNetConBearerTestBase::ConstructL(); // base class construct
       
   130 	}
       
   131 
       
   132 CNetConTest0403::~CNetConTest0403()
       
   133 	{
       
   134 	}
       
   135 
       
   136 const TDesC& CNetConTest0403::Name() const
       
   137 	{
       
   138 
       
   139 	_LIT(KTestName, "Test Case NC-4-3");
       
   140 	return KTestName();
       
   141 	}
       
   142 
       
   143 void CNetConTest0403::StartTestL()
       
   144 	{
       
   145 
       
   146 	const TInt err = iTelBearer->SecondPhaseAvailability();
       
   147 	if (err == KErrNone)
       
   148 		{
       
   149 		CompleteTest(MNetConTest::EPassed);
       
   150 		}
       
   151 	else
       
   152 		{
       
   153 		CompleteTest(MNetConTest::EFailed);
       
   154 		}
       
   155 	}
       
   156 
       
   157 
       
   158 //
       
   159 //  Test case NC-4-4
       
   160 //
       
   161 
       
   162 CNetConTest0404* CNetConTest0404::NewLC()
       
   163 	{
       
   164 	CNetConTest0404* self = new(ELeave) CNetConTest0404();
       
   165 	CleanupStack::PushL(self);
       
   166 	self->ConstructL();
       
   167 	return self;
       
   168 	}
       
   169 
       
   170 CNetConTest0404::CNetConTest0404()
       
   171 	{
       
   172 	}
       
   173 
       
   174 void CNetConTest0404::ConstructL()
       
   175 	{
       
   176 
       
   177 	CNetConBearerTestBase::ConstructL(); // base class construct
       
   178 	}
       
   179 
       
   180 CNetConTest0404::~CNetConTest0404()
       
   181 	{
       
   182 	}
       
   183 
       
   184 const TDesC& CNetConTest0404::Name() const
       
   185 	{
       
   186 
       
   187 	_LIT(KTestName, "Test Case NC-4-4");
       
   188 	return KTestName();
       
   189 	}
       
   190 
       
   191 void CNetConTest0404::StartTestL()
       
   192 	{
       
   193 
       
   194 	MNetConTest::TResult outcome = MNetConTest::EFailed;
       
   195 	
       
   196 	if(!iTelBearer->StartChecking())
       
   197 		{
       
   198 		outcome = MNetConTest::EFailed;
       
   199 		}
       
   200 	else
       
   201 		{
       
   202 		const TInt err = iTelBearer->SecondPhaseAvailability();
       
   203 		if (err == KErrNone)
       
   204 			{
       
   205 			outcome = MNetConTest::EPassed;
       
   206 			}
       
   207 		else
       
   208 			{
       
   209 			outcome = MNetConTest::EFailed;
       
   210 			}
       
   211 		}
       
   212 
       
   213 	CompleteTest(outcome);
       
   214 	}
       
   215 
       
   216 
       
   217 //
       
   218 //  Test case NC-4-5
       
   219 //
       
   220 
       
   221 CNetConTest0405* CNetConTest0405::NewLC()
       
   222 	{
       
   223 	CNetConTest0405* self = new(ELeave) CNetConTest0405();
       
   224 	CleanupStack::PushL(self);
       
   225 	self->ConstructL();
       
   226 	return self;
       
   227 	}
       
   228 
       
   229 CNetConTest0405::CNetConTest0405()
       
   230 	{
       
   231 	}
       
   232 
       
   233 void CNetConTest0405::ConstructL()
       
   234 	{
       
   235 
       
   236 	CNetConBearerTestBase::ConstructL(); // base class construct
       
   237 	}
       
   238 
       
   239 CNetConTest0405::~CNetConTest0405()
       
   240 	{
       
   241 
       
   242 	}
       
   243 
       
   244 const TDesC& CNetConTest0405::Name() const
       
   245 	{
       
   246 
       
   247 	_LIT(KTestName, "Test Case NC-4-5");
       
   248 	return KTestName();
       
   249 	}
       
   250 
       
   251 void CNetConTest0405::StartTestL()
       
   252 	{
       
   253 
       
   254 	MNetConTest::TResult outcome = MNetConTest::EFailed;
       
   255 	
       
   256 	if(!iTelBearer->StartChecking())
       
   257 		{
       
   258 		outcome = MNetConTest::EFailed;
       
   259 		}
       
   260 	else if (!iTelBearer->StopChecking())
       
   261 		{
       
   262 		outcome = MNetConTest::EFailed;
       
   263 		}
       
   264 	else
       
   265 		{
       
   266 		const TInt err = iTelBearer->SecondPhaseAvailability();
       
   267 		if (err == KErrNone)
       
   268 			{
       
   269 			outcome = MNetConTest::EPassed;
       
   270 			}
       
   271 		else
       
   272 			{
       
   273 			outcome = MNetConTest::EFailed;
       
   274 			}
       
   275 		}
       
   276 
       
   277 	CompleteTest(outcome);
       
   278 	}
       
   279 
       
   280 
       
   281 //
       
   282 //  Test case NC-4-6
       
   283 //
       
   284 
       
   285 CNetConTest0406* CNetConTest0406::NewLC()
       
   286 	{
       
   287 	CNetConTest0406* self = new(ELeave) CNetConTest0406();
       
   288 	CleanupStack::PushL(self);
       
   289 	self->ConstructL();
       
   290 	return self;
       
   291 	}
       
   292 
       
   293 CNetConTest0406::CNetConTest0406()
       
   294 	{
       
   295 	}
       
   296 
       
   297 void CNetConTest0406::ConstructL()
       
   298 	{
       
   299 	CNetConBearerTestBase::ConstructL(); // base class construct
       
   300 	}
       
   301 
       
   302 CNetConTest0406::~CNetConTest0406()
       
   303 	{
       
   304 
       
   305 	}
       
   306 
       
   307 const TDesC& CNetConTest0406::Name() const
       
   308 	{
       
   309 
       
   310 	_LIT(KTestName, "Test Case NC-4-6");
       
   311 	return KTestName();
       
   312 	}
       
   313 
       
   314 void CNetConTest0406::StartTestL()
       
   315 	{
       
   316 
       
   317 	iTelBearer->StartChecking(EFalse);
       
   318 	}
       
   319 
       
   320 void CNetConTest0406::GetTsyNameL(TDes& aName)
       
   321 	{
       
   322 
       
   323 	_LIT(KTsyName, "mm.tsy");
       
   324 	aName = KTsyName();
       
   325 	}
       
   326 
       
   327 void CNetConTest0406::SetNetworkMode(RMobilePhone::TMobilePhoneNetworkMode)
       
   328 	{ }
       
   329 
       
   330 void CNetConTest0406::BearerStateChange(CBearerBase* aBearer)
       
   331 	{
       
   332 	
       
   333 	ASSERT(aBearer == iTelBearer);
       
   334 	(void)aBearer;
       
   335 
       
   336 	CompleteTest(MNetConTest::EPassed);
       
   337 	}
       
   338 
       
   339 
       
   340 
       
   341 //
       
   342 //  Test case NC-4-9
       
   343 //
       
   344 
       
   345 CNetConTest0409* CNetConTest0409::NewLC()
       
   346 	{
       
   347 	CNetConTest0409* self = new(ELeave) CNetConTest0409();
       
   348 	CleanupStack::PushL(self);
       
   349 	self->ConstructL();
       
   350 	return self;
       
   351 	}
       
   352 
       
   353 CNetConTest0409::CNetConTest0409()
       
   354 	{
       
   355 	}
       
   356 
       
   357 void CNetConTest0409::ConstructL()
       
   358 	{
       
   359 	CNetConBearerTestBase::ConstructL(); // base class construct
       
   360 	}
       
   361 
       
   362 CNetConTest0409::~CNetConTest0409()
       
   363 	{
       
   364 
       
   365 	}
       
   366 
       
   367 const TDesC& CNetConTest0409::Name() const
       
   368 	{
       
   369 
       
   370 	_LIT(KTestName, "Test Case NC-4-9");
       
   371 	return KTestName();
       
   372 	}
       
   373 
       
   374 void CNetConTest0409::StartTestL()
       
   375 	{
       
   376 
       
   377 	iTelBearer->StartChecking(EFalse);
       
   378 	}
       
   379 
       
   380 void CNetConTest0409::GetTsyNameL(TDes& aName)
       
   381 	{
       
   382 
       
   383 	aName = Name();
       
   384 	}
       
   385 
       
   386 void CNetConTest0409::BearerStateChange(CBearerBase* aBearer)
       
   387 	{
       
   388 
       
   389 	ASSERT(aBearer == iTelBearer);
       
   390 
       
   391 	if (aBearer->AvailableBearerSet() == KCommDbBearerUnknown)
       
   392 		{
       
   393 		CompleteTest(MNetConTest::EPassed);
       
   394 		}
       
   395 	else
       
   396 		{
       
   397 		CompleteTest(MNetConTest::EFailed);
       
   398 		}
       
   399 	}
       
   400 
       
   401 
       
   402 //
       
   403 //  Test case NC-4-11
       
   404 //
       
   405 
       
   406 CNetConTest0411* CNetConTest0411::NewLC()
       
   407 	{
       
   408 	CNetConTest0411* self = new(ELeave) CNetConTest0411();
       
   409 	CleanupStack::PushL(self);
       
   410 	self->ConstructL();
       
   411 	return self;
       
   412 	}
       
   413 
       
   414 CNetConTest0411::CNetConTest0411()
       
   415 	{
       
   416 	}
       
   417 
       
   418 void CNetConTest0411::ConstructL()
       
   419 	{
       
   420 	CNetConBearerTestBase::ConstructL(); // base class construct
       
   421 	}
       
   422 
       
   423 CNetConTest0411::~CNetConTest0411()
       
   424 	{
       
   425 
       
   426 	}
       
   427 
       
   428 const TDesC& CNetConTest0411::Name() const
       
   429 	{
       
   430 
       
   431 	_LIT(KTestName, "Test Case NC-4-11");
       
   432 	return KTestName();
       
   433 	}
       
   434 
       
   435 void CNetConTest0411::StartTestL()
       
   436 	{
       
   437 
       
   438 	iTelBearer->StartChecking(EFalse);
       
   439 	}
       
   440 
       
   441 void CNetConTest0411::GetTsyNameL(TDes& aName)
       
   442 	{
       
   443 
       
   444 	aName = Name();
       
   445 	}
       
   446 
       
   447 void CNetConTest0411::BearerStateChange(CBearerBase* aBearer)
       
   448 	{
       
   449 
       
   450 	ASSERT(aBearer == iTelBearer);
       
   451 
       
   452 	if (aBearer->AvailableBearerSet() == KCommDbBearerUnknown)
       
   453 		{
       
   454 		CompleteTest(MNetConTest::EPassed);
       
   455 		}
       
   456 	else
       
   457 		{
       
   458 		CompleteTest(MNetConTest::EFailed);
       
   459 		}
       
   460 	}
       
   461 
       
   462 
       
   463 //
       
   464 //  Test case NC-4-13
       
   465 //
       
   466 
       
   467 CNetConTest0413* CNetConTest0413::NewLC()
       
   468 	{
       
   469 	CNetConTest0413* self = new(ELeave) CNetConTest0413();
       
   470 	CleanupStack::PushL(self);
       
   471 	self->ConstructL();
       
   472 	return self;
       
   473 	}
       
   474 
       
   475 CNetConTest0413::CNetConTest0413()
       
   476 	{
       
   477 	}
       
   478 
       
   479 void CNetConTest0413::ConstructL()
       
   480 	{
       
   481 
       
   482 	CNetConBearerTestBase::ConstructL(); // base class construct
       
   483 	}
       
   484 
       
   485 CNetConTest0413::~CNetConTest0413()
       
   486 	{
       
   487 	}
       
   488 
       
   489 const TDesC& CNetConTest0413::Name() const
       
   490 	{
       
   491 
       
   492 	_LIT(KTestName, "Test Case NC-4-13");
       
   493 	return KTestName();
       
   494 	}
       
   495 
       
   496 void CNetConTest0413::StartTestL()
       
   497 	{
       
   498 
       
   499 	iTelBearer->StartChecking(EFalse);
       
   500 	}
       
   501 
       
   502 void CNetConTest0413::GetTsyNameL(TDes& aName)
       
   503 	{
       
   504 
       
   505 	aName = Name();
       
   506 	}
       
   507 
       
   508 void CNetConTest0413::BearerStateChange(CBearerBase* aBearer)
       
   509 	{
       
   510 
       
   511 	ASSERT(aBearer == iTelBearer);
       
   512 
       
   513 	if (aBearer->AvailableBearerSet() == KCommDbBearerUnknown)
       
   514 		{
       
   515 		CompleteTest(MNetConTest::EPassed);
       
   516 		}
       
   517 	else
       
   518 		{
       
   519 		CompleteTest(MNetConTest::EFailed);
       
   520 		}
       
   521 	}
       
   522 
       
   523 
       
   524 //
       
   525 //  Test case NC-4-15
       
   526 //
       
   527 
       
   528 CNetConTest0415* CNetConTest0415::NewLC()
       
   529 	{
       
   530 	CNetConTest0415* self = new(ELeave) CNetConTest0415();
       
   531 	CleanupStack::PushL(self);
       
   532 	self->ConstructL();
       
   533 	return self;
       
   534 	}
       
   535 
       
   536 CNetConTest0415::CNetConTest0415()
       
   537 	{
       
   538 	}
       
   539 
       
   540 void CNetConTest0415::ConstructL()
       
   541 	{
       
   542 
       
   543 	CNetConBearerTestBase::ConstructL(); // base class construct
       
   544 	}
       
   545 
       
   546 CNetConTest0415::~CNetConTest0415()
       
   547 	{
       
   548 	}
       
   549 
       
   550 const TDesC& CNetConTest0415::Name() const
       
   551 	{
       
   552 
       
   553 	_LIT(KTestName, "Test Case NC-4-15");
       
   554 	return KTestName();
       
   555 	}
       
   556 
       
   557 void CNetConTest0415::StartTestL()
       
   558 	{
       
   559 
       
   560 	iTelBearer->StartChecking(EFalse);
       
   561 	}
       
   562 
       
   563 void CNetConTest0415::GetTsyNameL(TDes& aName)
       
   564 	{
       
   565 
       
   566 	aName = Name();
       
   567 	}
       
   568 
       
   569 void CNetConTest0415::SetNetworkMode(RMobilePhone::TMobilePhoneNetworkMode)
       
   570 	{ }
       
   571 
       
   572 void CNetConTest0415::BearerStateChange(CBearerBase* aBearer)
       
   573 	{
       
   574 
       
   575 	ASSERT(aBearer == iTelBearer);
       
   576 
       
   577 	if (aBearer->AvailableBearerSet() == KCommDbBearerUnknown)
       
   578 		{
       
   579 		CompleteTest(MNetConTest::EPassed);
       
   580 		}
       
   581 	else
       
   582 		{
       
   583 		CompleteTest(MNetConTest::EFailed);
       
   584 		}
       
   585 	}
       
   586 
       
   587 
       
   588 //
       
   589 //  Test case NC-4-17
       
   590 //
       
   591 
       
   592 CNetConTest0417* CNetConTest0417::NewLC()
       
   593 	{
       
   594 	CNetConTest0417* self = new(ELeave) CNetConTest0417();
       
   595 	CleanupStack::PushL(self);
       
   596 	self->ConstructL();
       
   597 	return self;
       
   598 	}
       
   599 
       
   600 CNetConTest0417::CNetConTest0417()
       
   601 	{
       
   602 	}
       
   603 
       
   604 void CNetConTest0417::ConstructL()
       
   605 	{
       
   606 
       
   607 	CNetConBearerTestBase::ConstructL(); // base class construct
       
   608 	}
       
   609 
       
   610 CNetConTest0417::~CNetConTest0417()
       
   611 	{
       
   612 	}
       
   613 
       
   614 const TDesC& CNetConTest0417::Name() const
       
   615 	{
       
   616 
       
   617 	_LIT(KTestName, "Test Case NC-4-17");
       
   618 	return KTestName();
       
   619 	}
       
   620 
       
   621 void CNetConTest0417::StartTestL()
       
   622 	{
       
   623 
       
   624 	iTelBearer->StartChecking(EFalse);
       
   625 	}
       
   626 
       
   627 void CNetConTest0417::GetTsyNameL(TDes& aName)
       
   628 	{
       
   629 
       
   630 	aName = Name();
       
   631 	}
       
   632 
       
   633 void CNetConTest0417::SetNetworkMode(RMobilePhone::TMobilePhoneNetworkMode)
       
   634 	{ }
       
   635 
       
   636 void CNetConTest0417::BearerStateChange(CBearerBase* aBearer)
       
   637 	{
       
   638 
       
   639 	ASSERT(aBearer == iTelBearer);
       
   640 
       
   641 	if (aBearer->AvailableBearerSet() == KCommDbBearerUnknown)
       
   642 		{
       
   643 		CompleteTest(MNetConTest::EPassed);
       
   644 		}
       
   645 	else
       
   646 		{
       
   647 		CompleteTest(MNetConTest::EFailed);
       
   648 		}
       
   649 	}
       
   650 
       
   651 
       
   652 //
       
   653 //  Test case NC-4-18
       
   654 //
       
   655 
       
   656 CNetConTest0418* CNetConTest0418::NewLC()
       
   657 	{
       
   658 	CNetConTest0418* self = new(ELeave) CNetConTest0418();
       
   659 	CleanupStack::PushL(self);
       
   660 	self->ConstructL();
       
   661 	return self;
       
   662 	}
       
   663 
       
   664 CNetConTest0418::CNetConTest0418()
       
   665 	{
       
   666 	}
       
   667 
       
   668 void CNetConTest0418::ConstructL()
       
   669 	{
       
   670 
       
   671 	CNetConBearerTestBase::ConstructL(); // base class construct
       
   672 	}
       
   673 
       
   674 CNetConTest0418::~CNetConTest0418()
       
   675 	{
       
   676 	}
       
   677 
       
   678 const TDesC& CNetConTest0418::Name() const
       
   679 	{
       
   680 
       
   681 	_LIT(KTestName, "Test Case NC-4-18");
       
   682 	return KTestName();
       
   683 	}
       
   684 
       
   685 void CNetConTest0418::StartTestL()
       
   686 	{
       
   687 
       
   688 	iTelBearer->StartChecking(EFalse);
       
   689 	}
       
   690 
       
   691 void CNetConTest0418::GetTsyNameL(TDes& aName)
       
   692 	{
       
   693 
       
   694 	_LIT(KTsyName, "mm.tsy");
       
   695 	aName = KTsyName();
       
   696 	}
       
   697 
       
   698 void CNetConTest0418::SetNetworkMode(RMobilePhone::TMobilePhoneNetworkMode)
       
   699 	{ }
       
   700 
       
   701 void CNetConTest0418::GetMinSigStrengthL(TUint32& aMinAcceptedSignalStrength)
       
   702 	{
       
   703 
       
   704 	aMinAcceptedSignalStrength = 10500;
       
   705 	}
       
   706 
       
   707 void CNetConTest0418::BearerStateChange(CBearerBase* aBearer)
       
   708 	{
       
   709 
       
   710 	ASSERT(aBearer == iTelBearer);
       
   711 	(void)aBearer;
       
   712 
       
   713 	const TInt ret = iTelBearer->SecondPhaseAvailability();
       
   714 
       
   715 	if(ret == KErrNone)
       
   716 		{
       
   717 		CompleteTest(MNetConTest::EPassed);
       
   718 		}
       
   719 	else
       
   720 		{
       
   721 		CompleteTest(MNetConTest::EFailed);
       
   722 		}
       
   723 	}
       
   724 
       
   725 
       
   726 //
       
   727 //  Test case NC-4-19
       
   728 //
       
   729 
       
   730 CNetConTest0419* CNetConTest0419::NewLC()
       
   731 	{
       
   732 	CNetConTest0419* self = new(ELeave) CNetConTest0419();
       
   733 	CleanupStack::PushL(self);
       
   734 	self->ConstructL();
       
   735 	return self;
       
   736 	}
       
   737 
       
   738 CNetConTest0419::CNetConTest0419()
       
   739 	{
       
   740 	}
       
   741 
       
   742 void CNetConTest0419::ConstructL()
       
   743 	{
       
   744 
       
   745 	CNetConBearerTestBase::ConstructL(); // base class construct
       
   746 	}
       
   747 
       
   748 CNetConTest0419::~CNetConTest0419()
       
   749 	{
       
   750 	}
       
   751 
       
   752 const TDesC& CNetConTest0419::Name() const
       
   753 	{
       
   754 
       
   755 	_LIT(KTestName, "Test Case NC-4-19");
       
   756 	return KTestName();
       
   757 	}
       
   758 
       
   759 void CNetConTest0419::StartTestL()
       
   760 	{
       
   761 
       
   762 	iTelBearer->StartChecking(EFalse);
       
   763 	}
       
   764 
       
   765 void CNetConTest0419::GetTsyNameL(TDes& aName)
       
   766 	{
       
   767 
       
   768 	_LIT(KTsyName, "mm.tsy");
       
   769 	aName = KTsyName();
       
   770 	}
       
   771 
       
   772 void CNetConTest0419::SetNetworkMode(RMobilePhone::TMobilePhoneNetworkMode)
       
   773 	{ }
       
   774 
       
   775 void CNetConTest0419::GetMinSigStrengthL(TUint32& aMinAcceptedSignalStrength)
       
   776 	{
       
   777 
       
   778 	aMinAcceptedSignalStrength = 12000;
       
   779 	}
       
   780 
       
   781 void CNetConTest0419::BearerStateChange(CBearerBase* aBearer)
       
   782 	{
       
   783 
       
   784 	ASSERT(aBearer == iTelBearer);
       
   785 	(void)aBearer;
       
   786 
       
   787 	const TInt ret = iTelBearer->SecondPhaseAvailability();
       
   788 
       
   789 	if(ret == KErrNetConInadequateSignalStrengh)
       
   790 		{
       
   791 		CompleteTest(MNetConTest::EPassed);
       
   792 		}
       
   793 	else
       
   794 		{
       
   795 		CompleteTest(MNetConTest::EFailed);
       
   796 		}
       
   797 	}
       
   798 
       
   799 
       
   800 //
       
   801 //  Test case NC-4-20
       
   802 //
       
   803 
       
   804 CNetConTest0420* CNetConTest0420::NewLC()
       
   805 	{
       
   806 	CNetConTest0420* self = new(ELeave) CNetConTest0420();
       
   807 	CleanupStack::PushL(self);
       
   808 	self->ConstructL();
       
   809 	return self;
       
   810 	}
       
   811 
       
   812 CNetConTest0420::CNetConTest0420()
       
   813 	{
       
   814 	}
       
   815 
       
   816 void CNetConTest0420::ConstructL()
       
   817 	{
       
   818 
       
   819 	CNetConBearerTestBase::ConstructL(); // base class construct
       
   820 	}
       
   821 
       
   822 CNetConTest0420::~CNetConTest0420()
       
   823 	{
       
   824 	}
       
   825 
       
   826 const TDesC& CNetConTest0420::Name() const
       
   827 	{
       
   828 
       
   829 	_LIT(KTestName, "Test Case NC-4-20");
       
   830 	return KTestName();
       
   831 	}
       
   832 
       
   833 void CNetConTest0420::GetTsyNameL(TDes& aName)
       
   834 	{
       
   835 
       
   836 	aName = Name();
       
   837 	}
       
   838 
       
   839 void CNetConTest0420::StartTestL()
       
   840 	{
       
   841 
       
   842 	iTelBearer->StartChecking(EFalse);
       
   843 	}
       
   844 
       
   845 void CNetConTest0420::SetNetworkMode(RMobilePhone::TMobilePhoneNetworkMode)
       
   846 	{
       
   847 	}
       
   848 
       
   849 void CNetConTest0420::BearerStateChange(CBearerBase* aBearer)
       
   850 	{
       
   851 
       
   852 	ASSERT(aBearer == iTelBearer);
       
   853 	(void)aBearer;
       
   854 
       
   855 	const TUint32 available = iTelBearer->AvailableBearerSet();
       
   856 	}
       
   857 	
       
   858