linklayercontrol/nullagt/TS_nullagt/src/Nullagenttestsuite.cpp
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 2003-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 "TestSuiteNullAgent.h"
       
    17 #include "NullAgentTestSteps.h"
       
    18 
       
    19 #include "c32comm.h"
       
    20 
       
    21 
       
    22 EXPORT_C CTestSuiteNullAgt* CreateTestSuite(void)
       
    23 {
       
    24 	return new (ELeave) CTestSuiteNullAgt();
       
    25 }
       
    26 
       
    27 void CTestSuiteNullAgt::InitialiseL(void)
       
    28 {
       
    29 	// start c32 process
       
    30  	// When bootstrapping C32 we have to avoid the PhBkSyncServer being started, since
       
    31  	// it needs a different CommDB
       
    32  	_LIT(KPhbkSyncCMI, "phbsync.cmi");
       
    33     TInt ret = StartC32WithCMISuppressions(KPhbkSyncCMI);
       
    34 	if ( KErrNone != ret && KErrAlreadyExists != ret )
       
    35 		{
       
    36 		User::Leave( ret );
       
    37 		}
       
    38 
       
    39 	// add each step to the suite
       
    40 	AddTestStepL( new(ELeave) CNullAgentPreCopy());
       
    41 	AddTestStepL( new(ELeave) CTestStepNullAgtSimpleConnection(_L("Connection")) );
       
    42 	AddTestStepL( new(ELeave) CTestStepNullAgtLoopbackTest(_L("Loopback")) );
       
    43 	AddTestStepL( new(ELeave) CTestStepNullAgtReconnect(_L("Reconnect")) );
       
    44 	AddTestStepL( new(ELeave) CTestStepNullAgtNotifications(_L("Notification")) );
       
    45 	AddTestStepL( new(ELeave) CTestStepNullAgtOverrides(_L("Overrides")) );
       
    46 	AddTestStepL( new(ELeave) CTestStepNullAgtMultipleConnections(_L("Multiple")) );
       
    47 	AddTestStepL( new(ELeave) CTestStepNullAgtCommDbIf(_L("CommDbIf")) );
       
    48 	AddTestStepL( new(ELeave) CTestStepNullAgtConnectionCancel(_L("Cancel")) );
       
    49 	AddTestStepL( new(ELeave) CNullAgentPostDelete());
       
    50 }
       
    51 
       
    52 TPtrC CTestSuiteNullAgt::GetVersion(void)
       
    53 {
       
    54 	_LIT(KVersion, "1.0");
       
    55 	return KVersion();
       
    56 }