windowing/windowserver/tman/DUMMYM.CPP
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 1995-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 // Simple dummy test, to be used as example for new tests
       
    15 // 
       
    16 //
       
    17 
       
    18 #include <e32std.h>
       
    19 #include "W32STD.H"
       
    20 #include "../tlib/testbase.h"
       
    21 #include "TMAN.H"
       
    22 
       
    23 class TDummyTest : public CTestBase
       
    24 	{
       
    25 public:
       
    26 	TDummyTest();
       
    27 	TestState DoTestL();
       
    28 	void ConstructL();
       
    29 private:
       
    30 	TSize iWinSize;
       
    31 	TInt iState;
       
    32 	};
       
    33 
       
    34 GLDEF_C CTestBase *CreateDummyTest()
       
    35 	{
       
    36 	return(new(ELeave) TDummyTest());
       
    37 	}
       
    38 
       
    39 TDummyTest::TDummyTest() : CTestBase(_L("Dummy"))
       
    40 	{}
       
    41 
       
    42 void TDummyTest::ConstructL()
       
    43 	{
       
    44 	}
       
    45 
       
    46 TestState TDummyTest::DoTestL()
       
    47 	{
       
    48 	switch(iState)
       
    49 		{
       
    50 		case 0:
       
    51 			LogSubTest(_L("Dummy 1"),1);
       
    52 			TestL(ETrue);
       
    53 			iState++;
       
    54 			break;
       
    55 		default:
       
    56 			return(EFinished);
       
    57 		}
       
    58 	return(ENext);
       
    59 	}
       
    60