|
1 /* |
|
2 * Copyright (c) 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 "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: Declaration of CTFAStifTestCaseAdapter class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __TFASTIFTESTCASEADAPTER_H__ |
|
20 #define __TFASTIFTESTCASEADAPTER_H__ |
|
21 |
|
22 #include <stiftestinterface.h> |
|
23 #include "ctfatestcaseadapter.h" |
|
24 |
|
25 class CTFATestCase; |
|
26 |
|
27 NONSHARABLE_CLASS( CTFAStifTestCaseAdapter ): public CTFATestCaseAdapter |
|
28 { |
|
29 public: |
|
30 /** |
|
31 * Creates a new test case adapter |
|
32 */ |
|
33 static CTFAStifTestCaseAdapter* NewLC( CTFATestCase& aTestCase, CTestModuleBase* aTestModule ); |
|
34 |
|
35 /** |
|
36 * Destructor |
|
37 */ |
|
38 virtual ~CTFAStifTestCaseAdapter( void ); |
|
39 |
|
40 private: |
|
41 /** |
|
42 * Constructor |
|
43 */ |
|
44 CTFAStifTestCaseAdapter( CTFATestCase& aTestCase, CTestModuleBase* aTestModule ); |
|
45 |
|
46 /** |
|
47 * 2nd phase constructor |
|
48 */ |
|
49 void ConstructL( void ); |
|
50 |
|
51 /** |
|
52 * Copy constructor is hidden |
|
53 */ |
|
54 CTFAStifTestCaseAdapter( const CTFAStifTestCaseAdapter& aAdapter ); |
|
55 |
|
56 /** |
|
57 * Assignment operator is hidden |
|
58 */ |
|
59 CTFAStifTestCaseAdapter& operator=( const CTFAStifTestCaseAdapter& aAdapter ); |
|
60 |
|
61 public: |
|
62 /** |
|
63 * Determines if the case is run on startup |
|
64 */ |
|
65 TBool RunOnStartup( void ) const; |
|
66 |
|
67 /** |
|
68 * Returns the STIF-TF test info |
|
69 */ |
|
70 TTestCaseInfo TestInfo( void ) const; |
|
71 |
|
72 /** |
|
73 * Runs this test |
|
74 */ |
|
75 void RunTestL( TTestResult& aResult ); |
|
76 |
|
77 private: |
|
78 TTestCaseInfo iTestInfo; |
|
79 CTestModuleBase* iTestModule; |
|
80 }; |
|
81 |
|
82 #endif |