equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * @file TestPolicy.h |
|
16 * @internalComponent |
|
17 * |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 #ifndef TESTPOLICY_H |
|
24 #define TESTPOLICY_H |
|
25 |
|
26 #include <e32base.h> |
|
27 #include <e32test.h> |
|
28 |
|
29 |
|
30 |
|
31 /** In OTGDI suite, this does not do any policy/decision making, it merely instantiates the test |
|
32 */ |
|
33 class CBasicTestPolicy : public CActive |
|
34 { |
|
35 public: |
|
36 static CBasicTestPolicy* NewL(); |
|
37 virtual ~CBasicTestPolicy(); |
|
38 |
|
39 virtual void RunTestCaseL(const TDesC& aTestCaseId,TRequestStatus* aStatus); |
|
40 void SignalTestComplete(TInt aCompletionCode); |
|
41 |
|
42 private: |
|
43 CBasicTestPolicy(); |
|
44 /** |
|
45 2nd phase constructor |
|
46 */ |
|
47 void ConstructL(); |
|
48 |
|
49 protected: |
|
50 void DoCancel(); |
|
51 void RunL(); |
|
52 TInt RunError(TInt aError); |
|
53 |
|
54 // DATA |
|
55 public: |
|
56 CTestCaseRoot* iTestCase; |
|
57 |
|
58 private: |
|
59 TRequestStatus* iNotifierStatus; |
|
60 }; |
|
61 |
|
62 |
|
63 #endif // TESTPOLICY_H |