sl@0: // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // Simple dummy test, to be used as example for new tests sl@0: // sl@0: // sl@0: sl@0: #include sl@0: #include "W32STD.H" sl@0: #include "../tlib/testbase.h" sl@0: #include "TMAN.H" sl@0: sl@0: class TDummyTest : public CTestBase sl@0: { sl@0: public: sl@0: TDummyTest(); sl@0: TestState DoTestL(); sl@0: void ConstructL(); sl@0: private: sl@0: TSize iWinSize; sl@0: TInt iState; sl@0: }; sl@0: sl@0: GLDEF_C CTestBase *CreateDummyTest() sl@0: { sl@0: return(new(ELeave) TDummyTest()); sl@0: } sl@0: sl@0: TDummyTest::TDummyTest() : CTestBase(_L("Dummy")) sl@0: {} sl@0: sl@0: void TDummyTest::ConstructL() sl@0: { sl@0: } sl@0: sl@0: TestState TDummyTest::DoTestL() sl@0: { sl@0: switch(iState) sl@0: { sl@0: case 0: sl@0: LogSubTest(_L("Dummy 1"),1); sl@0: TestL(ETrue); sl@0: iState++; sl@0: break; sl@0: default: sl@0: return(EFinished); sl@0: } sl@0: return(ENext); sl@0: } sl@0: