|
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 the License "Symbian Foundation License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: STIF testclass declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef PROFILESMOKETESTMODULE_H |
|
19 #define PROFILESMOKETESTMODULE_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <f32file.h> |
|
23 #include <StifLogger.h> |
|
24 #include <TestScripterInternal.h> |
|
25 #include <StifTestModule.h> |
|
26 #include <TestclassAssert.h> |
|
27 |
|
28 // CONSTANTS |
|
29 //const ?type ?constant_var = ?constant; |
|
30 |
|
31 // MACROS |
|
32 //#define ?macro ?macro_def |
|
33 #define TEST_CLASS_VERSION_MAJOR 0 |
|
34 #define TEST_CLASS_VERSION_MINOR 0 |
|
35 #define TEST_CLASS_VERSION_BUILD 0 |
|
36 |
|
37 // Logging path |
|
38 _LIT( KProfileSmokeTestModuleLogPath, "\\logs\\testframework\\ProfileSmokeTestModule\\" ); |
|
39 // Log file |
|
40 _LIT( KProfileSmokeTestModuleLogFile, "ProfileSmokeTestModule.txt" ); |
|
41 _LIT( KProfileSmokeTestModuleLogFileWithTitle, "ProfileSmokeTestModule_[%S].txt" ); |
|
42 |
|
43 // FUNCTION PROTOTYPES |
|
44 //?type ?function_name(?arg_list); |
|
45 |
|
46 // FORWARD DECLARATIONS |
|
47 //class ?FORWARD_CLASSNAME; |
|
48 class CProfileSmokeTestModule; |
|
49 |
|
50 // DATA TYPES |
|
51 //enum ?declaration |
|
52 //typedef ?declaration |
|
53 //extern ?data_type; |
|
54 |
|
55 // CLASS DECLARATION |
|
56 |
|
57 /** |
|
58 * CProfileSmokeTestModule test class for STIF Test Framework TestScripter. |
|
59 * ?other_description_lines |
|
60 * |
|
61 * @lib ?library |
|
62 * @since ?Series60_version |
|
63 */ |
|
64 NONSHARABLE_CLASS(CProfileSmokeTestModule) : public CScriptBase |
|
65 { |
|
66 public: // Constructors and destructor |
|
67 |
|
68 /** |
|
69 * Two-phased constructor. |
|
70 */ |
|
71 static CProfileSmokeTestModule* NewL( CTestModuleIf& aTestModuleIf ); |
|
72 |
|
73 /** |
|
74 * Destructor. |
|
75 */ |
|
76 virtual ~CProfileSmokeTestModule(); |
|
77 |
|
78 public: // New functions |
|
79 |
|
80 /** |
|
81 * ?member_description. |
|
82 * @since ?Series60_version |
|
83 * @param ?arg1 ?description |
|
84 * @return ?description |
|
85 */ |
|
86 //?type ?member_function( ?type ?arg1 ); |
|
87 |
|
88 public: // Functions from base classes |
|
89 |
|
90 /** |
|
91 * From CScriptBase Runs a script line. |
|
92 * @since ?Series60_version |
|
93 * @param aItem Script line containing method name and parameters |
|
94 * @return Symbian OS error code |
|
95 */ |
|
96 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
97 |
|
98 protected: // New functions |
|
99 |
|
100 /** |
|
101 * ?member_description. |
|
102 * @since ?Series60_version |
|
103 * @param ?arg1 ?description |
|
104 * @return ?description |
|
105 */ |
|
106 //?type ?member_function( ?type ?arg1 ); |
|
107 |
|
108 protected: // Functions from base classes |
|
109 |
|
110 /** |
|
111 * From ?base_class ?member_description |
|
112 */ |
|
113 //?type ?member_function(); |
|
114 |
|
115 private: |
|
116 |
|
117 /** |
|
118 * C++ default constructor. |
|
119 */ |
|
120 CProfileSmokeTestModule( CTestModuleIf& aTestModuleIf ); |
|
121 |
|
122 /** |
|
123 * By default Symbian 2nd phase constructor is private. |
|
124 */ |
|
125 void ConstructL(); |
|
126 |
|
127 // Prohibit copy constructor if not deriving from CBase. |
|
128 // ?classname( const ?classname& ); |
|
129 // Prohibit assigment operator if not deriving from CBase. |
|
130 // ?classname& operator=( const ?classname& ); |
|
131 |
|
132 /** |
|
133 * Frees all resources allocated from test methods. |
|
134 * @since ?Series60_version |
|
135 */ |
|
136 void Delete(); |
|
137 |
|
138 /** |
|
139 * Test methods are listed below. |
|
140 */ |
|
141 |
|
142 /** |
|
143 * Example test method. |
|
144 * @since ?Series60_version |
|
145 * @param aItem Script line containing parameters. |
|
146 * @return Symbian OS error code. |
|
147 */ |
|
148 virtual TInt CheckActiveProfileL( CStifItemParser& aItem); |
|
149 virtual TInt SetActiveProfileL( CStifItemParser& aItem ); |
|
150 |
|
151 /** |
|
152 * Method used to log version of test class |
|
153 */ |
|
154 void SendTestClassVersion(); |
|
155 |
|
156 //ADD NEW METHOD DEC HERE |
|
157 //[TestMethods] - Do not remove |
|
158 |
|
159 public: // Data |
|
160 // ?one_line_short_description_of_data |
|
161 //?data_declaration; |
|
162 |
|
163 protected: // Data |
|
164 // ?one_line_short_description_of_data |
|
165 //?data_declaration; |
|
166 |
|
167 private: // Data |
|
168 RFs iFs; |
|
169 // ?one_line_short_description_of_data |
|
170 //?data_declaration; |
|
171 |
|
172 // Reserved pointer for future extension |
|
173 //TAny* iReserved; |
|
174 |
|
175 public: // Friend classes |
|
176 //?friend_class_declaration; |
|
177 protected: // Friend classes |
|
178 //?friend_class_declaration; |
|
179 private: // Friend classes |
|
180 //?friend_class_declaration; |
|
181 |
|
182 }; |
|
183 |
|
184 #endif // PROFILESMOKETESTMODULE_H |
|
185 |
|
186 // End of File |