datacommsserver/networkcontroller/ts_netcon/ReconnectTests.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 "ReconnectTests.h"
       
    17 
       
    18 //
       
    19 //  Test case NC-3-1
       
    20 //
       
    21 
       
    22 CNetConTest0301* CNetConTest0301::NewLC()
       
    23 	{
       
    24 	CNetConTest0301* self = new(ELeave) CNetConTest0301();
       
    25 	CleanupStack::PushL(self);
       
    26 	self->ConstructL();
       
    27 	return self;
       
    28 	}
       
    29 
       
    30 CNetConTest0301::CNetConTest0301()
       
    31 	{
       
    32 	
       
    33 	iAvailableBearers = KCommDbBearerCSD;
       
    34 	iDialogBoxError = KErrNone;
       
    35 	iExpectedError = KErrNone;
       
    36 	}
       
    37 
       
    38 const TDesC& CNetConTest0301::Name() const
       
    39 	{
       
    40 
       
    41 	_LIT(KTestName, "Test Case NC-3-1");
       
    42 	return KTestName();
       
    43 	}
       
    44 
       
    45 
       
    46 //
       
    47 //  Test case NC-3-2
       
    48 //
       
    49 
       
    50 CNetConTest0302* CNetConTest0302::NewLC()
       
    51 	{
       
    52 	CNetConTest0302* self = new(ELeave) CNetConTest0302();
       
    53 	CleanupStack::PushL(self);
       
    54 	self->ConstructL();
       
    55 	return self;
       
    56 	}
       
    57 
       
    58 CNetConTest0302::CNetConTest0302()
       
    59 	{
       
    60 	
       
    61 	iAvailableBearers = KCommDbBearerUnknown;
       
    62 	iDialogBoxError = KErrNone;
       
    63 	iExpectedError = KErrCancel;
       
    64 	}
       
    65 
       
    66 const TDesC& CNetConTest0302::Name() const
       
    67 	{
       
    68 
       
    69 	_LIT(KTestName, "Test Case NC-3-2");
       
    70 	return KTestName();
       
    71 	}
       
    72 
       
    73 
       
    74 //
       
    75 //  Test case NC-3-3
       
    76 //
       
    77 
       
    78 CNetConTest0303* CNetConTest0303::NewLC()
       
    79 	{
       
    80 	CNetConTest0303* self = new(ELeave) CNetConTest0303();
       
    81 	CleanupStack::PushL(self);
       
    82 	self->ConstructL();
       
    83 	return self;
       
    84 	}
       
    85 
       
    86 CNetConTest0303::CNetConTest0303()
       
    87 	{
       
    88 	
       
    89 	iAvailableBearers = KCommDbBearerCSD;
       
    90 	iDialogBoxError = KErrNone;
       
    91 	iExpectedError = KErrNone;
       
    92 	}
       
    93 
       
    94 const TDesC& CNetConTest0303::Name() const
       
    95 	{
       
    96 
       
    97 	_LIT(KTestName, "Test Case NC-3-3");
       
    98 	return KTestName();
       
    99 	}
       
   100 
       
   101 
       
   102 //
       
   103 //  Test case NC-3-4
       
   104 //
       
   105 
       
   106 CNetConTest0304* CNetConTest0304::NewLC()
       
   107 	{
       
   108 	CNetConTest0304* self = new(ELeave) CNetConTest0304();
       
   109 	CleanupStack::PushL(self);
       
   110 	self->ConstructL();
       
   111 	return self;
       
   112 	}
       
   113 
       
   114 CNetConTest0304::CNetConTest0304()
       
   115 	{
       
   116 	
       
   117 	iAvailableBearers = KCommDbBearerCSD;
       
   118 	iDialogBoxError = KErrCancel;
       
   119 	iExpectedError = KErrCancel;
       
   120 	}
       
   121 
       
   122 const TDesC& CNetConTest0304::Name() const
       
   123 	{
       
   124 
       
   125 	_LIT(KTestName, "Test Case NC-3-4");
       
   126 	return KTestName();
       
   127 	}
       
   128