First public contribution.
1 // Copyright (c) 2007-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 the License "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.
18 #ifndef EXAMPLETESTCASE_H
19 #define EXAMPLETESTCASE_H
24 @SYMTestCaseID EXAMPLETESTCASE
25 @SYMTestCaseDesc Description - shows various test-framework features
31 @SYMTestActions 1. Empty step
32 2. Press any key step (with watchdog)
33 3. Another press key step (with watchdog)
34 4. Watchdog cancel function works
38 @SYMTestExpectedResults Example
44 // Something to test the Engine with if ever it changes. Verify development changes, and
45 // new test-case creation steps here.
46 class CExampleTestCase : public CTestCaseRoot
49 static CExampleTestCase* NewL(TBool aHost);
50 virtual ~CExampleTestCase();
52 void WatchdogExpired();
54 virtual void ExecuteTestCaseL();
58 //override the base-class
59 void ProcessKey(TKeyCode &aKey);
60 TInt GetStepIndex() { return(iCaseStep); };
62 virtual void DescribePreconditions();
65 CExampleTestCase(TBool aHost);
69 CTestCaseWatchdog *iWDTimer;
71 // cancel callback methods (not implemented as a 'Mixin)
72 static void FuncA(CTestCaseRoot *pThis);
73 static void FuncB(CTestCaseRoot *pThis);
74 static void FuncC(CTestCaseRoot *pThis);
91 const static TTestCaseFactoryReceipt<CExampleTestCase> iFactoryReceipt;
97 #endif // EXAMPLETESTCASE_H