datacommsserver/networkcontroller/ts_netconoom/TestSuiteNetCon.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 "TestSuiteNetCon.h"
       
    17 #include "TestStepNetCon.h"
       
    18 
       
    19 
       
    20 
       
    21 EXPORT_C CTestSuiteNetCon* NewTestSuiteNetConL() 
       
    22 //
       
    23 // NewTestSuiteNetConL is exported at ordinal 1
       
    24 // this provides the interface to allow schedule test
       
    25 // to create instances of this test suite
       
    26 //
       
    27 	{
       
    28 
       
    29 	return new(ELeave) CTestSuiteNetCon();
       
    30     }
       
    31 
       
    32 
       
    33 CTestSuiteNetCon::~CTestSuiteNetCon()
       
    34 //
       
    35 // D'tor
       
    36 //
       
    37 	{
       
    38 	}
       
    39 
       
    40 
       
    41 TPtrC CTestSuiteNetCon::GetVersion()
       
    42 //
       
    43 // Make a version string available for test system
       
    44 //	
       
    45 	{
       
    46 	
       
    47 	_LIT(KTxtVersion,"1.0");
       
    48 	return KTxtVersion();
       
    49 	}
       
    50 
       
    51 
       
    52 void CTestSuiteNetCon::AddTestStepL(CTestStepNetCon* aTestStep)
       
    53 //
       
    54 // Add a test step into the suite
       
    55 //
       
    56 	{
       
    57 
       
    58 	// test steps contain a pointer back to the suite which owns them
       
    59 	aTestStep->iTestSuite = this; 
       
    60 
       
    61 	// add the step using tyhe base class method
       
    62 	CTestSuite::AddTestStepL(aTestStep);
       
    63 	}
       
    64 
       
    65 
       
    66 void CTestSuiteNetCon::InitialiseL()
       
    67 //
       
    68 // Constructor for NetCon test suite
       
    69 // this creates the NetCon test step and
       
    70 // stores it inside CTestSuiteNetCon
       
    71 //
       
    72 	{
       
    73 
       
    74 	// add test steps
       
    75 	for(TInt i=1; i<3; ++i)
       
    76 		{
       
    77 		AddTestStepL(new(ELeave) CTestStepNetCon(i));
       
    78 		}
       
    79 	}
       
    80