Update contrib.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // This file is a helper for TestFramework Unit Test classes.
15 // It subclasses the abstract CTestSuite to produce a working class we can test
22 // Test system includes
23 #include <testframework.h>
24 #include "TestStepVirtualStub.h"
25 #include "TestSuiteVirtualStub.h"
28 // do not export if Unit Testing
29 #if defined (__TSU_TESTFRAMEWORK__)
33 // define only if not Unit Testing
37 // Create an instance of this test suite.
38 // NewTestSuiteVirtualStubL is exported at ordinal 1.
39 // This provides the interface to allow the Test Framework
40 // to create instances of this test suite.
41 EXPORT_C CTestSuiteVirtualStub* NewTestSuiteVirtualStubL()
43 CTestSuiteVirtualStub* result = new (ELeave) CTestSuiteVirtualStub;
44 CleanupStack::PushL(result);
46 CleanupStack::Pop(); // result
52 CTestSuiteVirtualStub::~CTestSuiteVirtualStub()
56 _LIT(KTxtVersion,"CTestSuiteVirtualStub Version");
58 // Get test suite version.
59 TPtrC CTestSuiteVirtualStub::GetVersion() const
64 // Initialiser for test suite.
65 // This creates all the test steps and stores them
66 // inside CTestSuiteVirtualStub
67 void CTestSuiteVirtualStub::InitialiseL()
70 // store the name of this test suite
71 iSuiteName = KTestSuiteVirtualStub;
74 AddTestStepL(RTestStepVirtualStub::NewL());