datacommsserver/esockserver/test/util/src/ts_esockutilsuite.cpp
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     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 // Contains main DLL entry point for dll and definition of test suite class.
       
    15 // 
       
    16 //
       
    17 
       
    18 // EPOC includes
       
    19 #include <e32base.h>
       
    20 
       
    21 // Test system includes
       
    22 #include <networking/log.h>
       
    23 #include <networking/teststep.h>
       
    24 #include <networking/testsuite.h>
       
    25 
       
    26 // Test includes
       
    27 #include "ts_esockutilsuite.h"
       
    28 #include "ts_esockutilsteps.h"
       
    29 
       
    30 EXPORT_C CTestSuiteESockUtil* NewTestSuiteESockUtil() 
       
    31     { 
       
    32 	return new CTestSuiteESockUtil;
       
    33     }
       
    34 
       
    35 // Make a version string available for test system 
       
    36 TPtrC CTestSuiteESockUtil::GetVersion()
       
    37 	{
       
    38 #ifdef _DEBUG
       
    39 	_LIT(KTxtVersion,"1.000 (udeb)");
       
    40 #else
       
    41 	_LIT(KTxtVersion,"1.000");
       
    42 #endif
       
    43 	return KTxtVersion();
       
    44 	}
       
    45 
       
    46 void CTestSuiteESockUtil::InitialiseL()
       
    47 	{
       
    48 	AddTestStepL(new(ELeave)CTestStepLoadESock);
       
    49 	AddTestStepL(new(ELeave)CTestStepUnloadESock);
       
    50 	AddTestStepL(new(ELeave)CTestStepStopAllInterfaces);
       
    51 	AddTestStepL(new(ELeave)CTestStepUnloadESockForced);
       
    52 	AddTestStepL(new(ELeave)CTestStepUnloadESockMayLeak);
       
    53 	AddTestStepL(new(ELeave)CTestStepUnloadESockLeaks);
       
    54 	AddTestStepL(new(ELeave)CTestStepDefaultToConfig1);
       
    55 	AddTestStepL(new(ELeave)CTestStepAlwaysFail);
       
    56 	}
       
    57 
       
    58 GLDEF_C TInt E32Dll()
       
    59 	{
       
    60 	return 0;
       
    61 	}
       
    62