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) 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 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#ifndef tsnsrprovidertest_H |
|
20 |
#define tsnsrprovidertest_H |
|
21 |
||
22 |
// INCLUDES |
|
23 |
#include <StifLogger.h> |
|
24 |
#include <TestScripterInternal.h> |
|
25 |
#include <StifTestModule.h> |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
26 |
#include <liwservicehandler.h> |
19 | 27 |
#include <liwgenericparam.h> |
28 |
||
29 |
||
30 |
||
31 |
class CLiwGenericParamList; |
|
32 |
class CLiwDefaultMap; |
|
33 |
class CLiwDefaultList; |
|
34 |
||
35 |
using namespace LIW; |
|
36 |
||
37 |
extern int getlisttestL(int, char**); |
|
38 |
/*extern int getlistapplication_test2(int, char**); |
|
39 |
extern int getlistapplication_test3(int, char**); |
|
40 |
extern int getlistapplication_test3(int, char**); |
|
41 |
*/ |
|
42 |
//extern int accum2_test(int, char**); |
|
43 |
// CONSTANTS |
|
44 |
//const ?type ?constant_var = ?constant; |
|
45 |
||
46 |
// MACROS |
|
47 |
//#define ?macro ?macro_def |
|
48 |
// Logging path |
|
49 |
_LIT( KappmanagertestLogPath, "\\logs\\testframework\\TappmanagerTest\\" ); |
|
50 |
// Log file |
|
51 |
_LIT( KappmanagertestLogFile, "TappmanagerTest.txt" ); |
|
52 |
||
53 |
// FUNCTION PROTOTYPES |
|
54 |
//?type ?function_name(?arg_list); |
|
55 |
||
56 |
// FORWARD DECLARATIONS |
|
57 |
//class ?FORWARD_CLASSNAME; |
|
58 |
class CProviderTest; |
|
59 |
||
60 |
// DATA TYPES |
|
61 |
//enum ?declaration |
|
62 |
//typedef ?declaration |
|
63 |
//extern ?data_type; |
|
64 |
||
65 |
// CLASS DECLARATION |
|
66 |
||
67 |
/** |
|
68 |
* Cstlport_accum test class for STIF Test Framework TestScripter. |
|
69 |
* ?other_description_lines |
|
70 |
* |
|
71 |
* @lib ?library |
|
72 |
* @since ?Series60_version |
|
73 |
*/ |
|
74 |
NONSHARABLE_CLASS(CProviderTest) : public CScriptBase |
|
75 |
{ |
|
76 |
public: // Constructors and destructor |
|
77 |
||
78 |
/** |
|
79 |
* Two-phased constructor. |
|
80 |
*/ |
|
81 |
static CProviderTest* NewL( CTestModuleIf& aTestModuleIf ); |
|
82 |
||
83 |
/** |
|
84 |
* Destructor. |
|
85 |
*/ |
|
86 |
virtual ~CProviderTest(); |
|
87 |
||
88 |
public: // New functions |
|
89 |
||
90 |
/** |
|
91 |
* ?member_description. |
|
92 |
* @since ?Series60_version |
|
93 |
* @param ?arg1 ?description |
|
94 |
* @return ?description |
|
95 |
*/ |
|
96 |
//?type ?member_function( ?type ?arg1 ); |
|
97 |
||
98 |
public: // Functions from base classes |
|
99 |
||
100 |
/** |
|
101 |
* From CScriptBase Runs a script line. |
|
102 |
* @since ?Series60_version |
|
103 |
* @param aItem Script line containing method name and parameters |
|
104 |
* @return Symbian OS error code |
|
105 |
*/ |
|
106 |
virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
107 |
||
108 |
protected: // New functions |
|
109 |
||
110 |
/** |
|
111 |
* ?member_description. |
|
112 |
* @since ?Series60_version |
|
113 |
* @param ?arg1 ?description |
|
114 |
* @return ?description |
|
115 |
*/ |
|
116 |
//?type ?member_function( ?type ?arg1 ); |
|
117 |
||
118 |
protected: // Functions from base classes |
|
119 |
||
120 |
/** |
|
121 |
* From ?base_class ?member_description |
|
122 |
*/ |
|
123 |
//?type ?member_function(); |
|
124 |
||
125 |
private: |
|
126 |
||
127 |
/** |
|
128 |
* C++ default constructor. |
|
129 |
*/ |
|
130 |
CProviderTest( CTestModuleIf& aTestModuleIf ); |
|
131 |
||
132 |
/** |
|
133 |
* By default Symbian 2nd phase constructor is private. |
|
134 |
*/ |
|
135 |
void ConstructL(); |
|
136 |
||
137 |
// Prohibit copy constructor if not deriving from CBase. |
|
138 |
// ?classname( const ?classname& ); |
|
139 |
// Prohibit assigment operator if not deriving from CBase. |
|
140 |
// ?classname& operator=( const ?classname& ); |
|
141 |
||
142 |
/** |
|
143 |
* Frees all resources allocated from test methods. |
|
144 |
* @since ?Series60_version |
|
145 |
*/ |
|
146 |
void Delete(); |
|
147 |
||
148 |
/** |
|
149 |
* Test methods are listed below. |
|
150 |
*/ |
|
151 |
||
152 |
/** |
|
153 |
* Example test method. |
|
154 |
* @since ?Series60_version |
|
155 |
* @param aItem Script line containing parameters. |
|
156 |
* @return Symbian OS error code. |
|
157 |
*/ |
|
158 |
||
159 |
virtual TInt CheckInputArgumentType( CStifItemParser& aItem ); |
|
160 |
TInt FillInputParmaeterList(CStifItemParser& aItem , CLiwGenericParamList* input ); |
|
161 |
TInt FillMap( CStifItemParser& aItem , CLiwDefaultMap* aMap ); |
|
162 |
TInt FillList( CStifItemParser& aItem , CLiwDefaultList* aList ); |
|
163 |
void PrintInputParameterList( CLiwGenericParamList* input ); |
|
164 |
||
165 |
||
166 |
||
167 |
||
168 |
||
169 |
/* virtual TInt getlistapplication_test2L( CStifItemParser& aItem ); |
|
170 |
virtual TInt getlistapplication_test3L( CStifItemParser& aItem ); |
|
171 |
/* virtual TInt getlistapplicationmms_test1L( CStifItemParser& aItem ); |
|
172 |
virtual TInt getlistapplicationmms_test2L( CStifItemParser& aItem ); |
|
173 |
*/ |
|
174 |
||
175 |
public: // Data |
|
176 |
// ?one_line_short_description_of_data |
|
177 |
//?data_declaration; |
|
178 |
||
179 |
protected: // Data |
|
180 |
// ?one_line_short_description_of_data |
|
181 |
//?data_declaration; |
|
182 |
||
183 |
private: // Data |
|
184 |
||
185 |
// ?one_line_short_description_of_data |
|
186 |
//?data_declaration; |
|
187 |
||
188 |
// Reserved pointer for future extension |
|
189 |
//TAny* iReserved; |
|
190 |
//static TInt iCount; |
|
191 |
||
192 |
||
193 |
/** Contains the output buffer.*/ |
|
194 |
HBufC* iOutputBuffer; |
|
195 |
||
196 |
public: // Friend classes |
|
197 |
//?friend_class_declaration; |
|
198 |
protected: // Friend classes |
|
199 |
//?friend_class_declaration; |
|
200 |
private: // Friend classes |
|
201 |
//?friend_class_declaration; |
|
202 |
||
203 |
}; |
|
204 |
||
205 |
#endif // STLPORT_ACCUM_H |
|
206 |
||
207 |
// End of File |