author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 24 Nov 2009 08:56:33 +0200 | |
changeset 33 | 50974a8b132e |
parent 19 | 989d2f495d90 |
permissions | -rw-r--r-- |
19 | 1 |
/* |
2 |
* Copyright (c) 2002 - 2007 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: ?Description |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
||
20 |
||
21 |
#ifndef TLOGPROVIDERTEST_H |
|
22 |
#define TLOGPROVIDERTEST_H |
|
23 |
||
24 |
// INCLUDES |
|
25 |
#include <StifLogger.h> |
|
26 |
#include <TestScripterInternal.h> |
|
27 |
#include <StifTestModule.h> |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
28 |
#include <liwservicehandler.h> |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
29 |
#include <liwcommon.h> |
19 | 30 |
|
31 |
||
32 |
||
33 |
||
34 |
||
35 |
||
36 |
||
37 |
||
38 |
||
39 |
||
40 |
// CONSTANTS |
|
41 |
//const ?type ?constant_var = ?constant; |
|
42 |
||
43 |
// MACROS |
|
44 |
//#define ?macro ?macro_def |
|
45 |
// Logging path |
|
46 |
_LIT( KtlogprovidertestLogPath, "\\logs\\testframework\\tlogprovidertest\\" ); |
|
47 |
// Log file |
|
48 |
_LIT( KtlogprovidertestLogFile, "tlogprovidertest.txt" ); |
|
49 |
_LIT( KtlogprovidertestLogFileWithTitle, "tlogprovidertest_[%S].txt" ); |
|
50 |
||
51 |
// FUNCTION PROTOTYPES |
|
52 |
//?type ?function_name(?arg_list); |
|
53 |
||
54 |
// FORWARD DECLARATIONS |
|
55 |
//class ?FORWARD_CLASSNAME; |
|
56 |
class Ctlogprovidertest; |
|
57 |
class CEventDetails; |
|
58 |
class CFilterDetails; |
|
59 |
class CLiwLogIter; |
|
60 |
//class CFilterDetails; |
|
61 |
||
62 |
// DATA TYPES |
|
63 |
//enum ?declaration |
|
64 |
//typedef ?declaration |
|
65 |
//extern ?data_type; |
|
66 |
||
67 |
// CLASS DECLARATION |
|
68 |
||
69 |
/** |
|
70 |
* Ctlogprovidertest test class for STIF Test Framework TestScripter. |
|
71 |
* ?other_description_lines |
|
72 |
* |
|
73 |
* @lib ?library |
|
74 |
* @since ?Series60_version |
|
75 |
*/ |
|
76 |
NONSHARABLE_CLASS(Ctlogprovidertest) : public CScriptBase |
|
77 |
{ |
|
78 |
public: // Constructors and destructor |
|
79 |
||
80 |
/** |
|
81 |
* Two-phased constructor. |
|
82 |
*/ |
|
83 |
static Ctlogprovidertest* NewL( CTestModuleIf& aTestModuleIf ); |
|
84 |
||
85 |
/** |
|
86 |
* Destructor. |
|
87 |
*/ |
|
88 |
virtual ~Ctlogprovidertest(); |
|
89 |
||
90 |
public: // New functions |
|
91 |
||
92 |
||
93 |
||
94 |
enum |
|
95 |
{ |
|
96 |
EIndex0 = 0 , |
|
97 |
EIndex1 , |
|
98 |
EIndex2 , |
|
99 |
EIndex3 , |
|
100 |
};/** |
|
101 |
* ?member_description. |
|
102 |
* @since ?Series60_version |
|
103 |
* @param ?arg1 ?description |
|
104 |
* @return ?description |
|
105 |
*/ |
|
106 |
//?type ?member_function( ?type ?arg1 ); |
|
107 |
||
108 |
public: // Functions from base classes |
|
109 |
||
110 |
/** |
|
111 |
* From CScriptBase Runs a script line. |
|
112 |
* @since ?Series60_version |
|
113 |
* @param aItem Script line containing method name and parameters |
|
114 |
* @return Symbian OS error code |
|
115 |
*/ |
|
116 |
virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
117 |
||
118 |
protected: // New functions |
|
119 |
||
120 |
/** |
|
121 |
* ?member_description. |
|
122 |
* @since ?Series60_version |
|
123 |
* @param ?arg1 ?description |
|
124 |
* @return ?description |
|
125 |
*/ |
|
126 |
//?type ?member_function( ?type ?arg1 ); |
|
127 |
||
128 |
protected: // Functions from base classes |
|
129 |
||
130 |
/** |
|
131 |
* From ?base_class ?member_description |
|
132 |
*/ |
|
133 |
//?type ?member_function(); |
|
134 |
||
135 |
private: |
|
136 |
||
137 |
/** |
|
138 |
* C++ default constructor. |
|
139 |
*/ |
|
140 |
Ctlogprovidertest( CTestModuleIf& aTestModuleIf ); |
|
141 |
||
142 |
/** |
|
143 |
* By default Symbian 2nd phase constructor is private. |
|
144 |
*/ |
|
145 |
void ConstructL(); |
|
146 |
||
147 |
// Prohibit copy constructor if not deriving from CBase. |
|
148 |
// ?classname( const ?classname& ); |
|
149 |
// Prohibit assigment operator if not deriving from CBase. |
|
150 |
// ?classname& operator=( const ?classname& ); |
|
151 |
||
152 |
/** |
|
153 |
* Frees all resources allocated from test methods. |
|
154 |
* @since ?Series60_version |
|
155 |
*/ |
|
156 |
void Delete(); |
|
157 |
||
158 |
/** |
|
159 |
* Test methods are listed below. |
|
160 |
*/ |
|
161 |
||
162 |
/** |
|
163 |
* Example test method. |
|
164 |
* @since ?Series60_version |
|
165 |
* @param aItem Script line containing parameters. |
|
166 |
* @return Symbian OS error code. |
|
167 |
*/ |
|
168 |
virtual TInt addL( CStifItemParser& aItem ); |
|
169 |
virtual TInt add2L( CStifItemParser& aItem ); |
|
170 |
virtual TInt get1L( CStifItemParser& aItem ); |
|
171 |
virtual TInt get2L( CStifItemParser& aItem ); |
|
172 |
virtual TInt delete1L( CStifItemParser& aItem ); |
|
173 |
virtual TInt delete2L( CStifItemParser& aItem ); |
|
174 |
virtual TInt deleteneg1L( CStifItemParser& aItem ); |
|
175 |
virtual TInt cancel1L( CStifItemParser& aItem ); |
|
176 |
virtual TInt cancel2L( CStifItemParser& aItem ); |
|
177 |
||
178 |
virtual TInt sapierrorsL( CStifItemParser& aItem ); |
|
179 |
virtual TInt wronginterfaceL( CStifItemParser& aItem ); |
|
180 |
virtual TInt loadtwiceL( CStifItemParser& aItem ); |
|
181 |
virtual TInt wrongcommandL( CStifItemParser& aItem ); |
|
182 |
||
183 |
//ADD NEW METHOD DEC HERE |
|
184 |
//[TestMethods] - Do not remove |
|
185 |
||
186 |
public: // Data |
|
187 |
// ?one_line_short_description_of_data |
|
188 |
//?data_declaration; |
|
189 |
||
190 |
protected: // Data |
|
191 |
// ?one_line_short_description_of_data |
|
192 |
//?data_declaration; |
|
193 |
||
194 |
private: // Data |
|
195 |
||
196 |
// ?one_line_short_description_of_data |
|
197 |
//?data_declaration; |
|
198 |
||
199 |
// Reserved pointer for future extension |
|
200 |
//TAny* iReserved; |
|
201 |
||
202 |
public: // Friend classes |
|
203 |
//?friend_class_declaration; |
|
204 |
protected: // Friend classes |
|
205 |
//?friend_class_declaration; |
|
206 |
private: // Friend classes |
|
207 |
//?friend_class_declaration; |
|
208 |
||
209 |
}; |
|
210 |
TInt addtest1L(CEventDetails *aDetails); |
|
211 |
TInt addtest2L(CEventDetails *aDetails); |
|
212 |
TInt getlist1L(CFilterDetails *aDetails); |
|
213 |
TInt getlist2L(CFilterDetails *aDetails); |
|
214 |
TInt deletetest1L(CEventDetails *aDetails); |
|
215 |
TInt deletetest1_0L(CEventDetails *aDetails); |
|
216 |
TInt deletetest2L(CEventDetails *aDetails); |
|
217 |
TInt cancel1_0L(CEventDetails *aDetails); |
|
218 |
TInt cancel1_1L(CEventDetails *aDetails); |
|
219 |
||
220 |
TInt sapierrors(); |
|
221 |
TInt wronginterface1(CEventDetails *aDetails); |
|
222 |
TInt loadtwice(CEventDetails *aDetails); |
|
223 |
TInt wrongcommand(CEventDetails *aDetails); |
|
224 |
#endif // TLOGPROVIDERTEST_H |
|
225 |
||
226 |
// End of File |