sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
*
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
|
sl@0
|
18 |
|
sl@0
|
19 |
#ifndef TIOSTREAMS_H
|
sl@0
|
20 |
#define TIOSTREAMS_H
|
sl@0
|
21 |
|
sl@0
|
22 |
// INCLUDES
|
sl@0
|
23 |
#include <StifLogger.h>
|
sl@0
|
24 |
#include <TestScripterInternal.h>
|
sl@0
|
25 |
#include <StifTestModule.h>
|
sl@0
|
26 |
|
sl@0
|
27 |
|
sl@0
|
28 |
// CONSTANTS
|
sl@0
|
29 |
//const ?type ?constant_var = ?constant;
|
sl@0
|
30 |
|
sl@0
|
31 |
// MACROS
|
sl@0
|
32 |
//#define ?macro ?macro_def
|
sl@0
|
33 |
#define TEST_MODULE_VERSION_MAJOR 50
|
sl@0
|
34 |
#define TEST_MODULE_VERSION_MINOR 9
|
sl@0
|
35 |
#define TEST_MODULE_VERSION_BUILD 06
|
sl@0
|
36 |
// Logging path
|
sl@0
|
37 |
_LIT( KtiostreamsLogPath, "\\logs\\testframework\\tiostreams\\" );
|
sl@0
|
38 |
// Log file
|
sl@0
|
39 |
_LIT( KtiostreamsLogFile, "tiostreams.txt" );
|
sl@0
|
40 |
|
sl@0
|
41 |
// FUNCTION PROTOTYPES
|
sl@0
|
42 |
//?type ?function_name(?arg_list);
|
sl@0
|
43 |
|
sl@0
|
44 |
// FORWARD DECLARATIONS
|
sl@0
|
45 |
//class ?FORWARD_CLASSNAME;
|
sl@0
|
46 |
class Ctiostreams;
|
sl@0
|
47 |
|
sl@0
|
48 |
// DATA TYPES
|
sl@0
|
49 |
//enum ?declaration
|
sl@0
|
50 |
//typedef ?declaration
|
sl@0
|
51 |
//extern ?data_type;
|
sl@0
|
52 |
|
sl@0
|
53 |
// CLASS DECLARATION
|
sl@0
|
54 |
|
sl@0
|
55 |
/**
|
sl@0
|
56 |
* Ctiostreams test class for STIF Test Framework TestScripter.
|
sl@0
|
57 |
* ?other_description_lines
|
sl@0
|
58 |
*
|
sl@0
|
59 |
* @lib ?library
|
sl@0
|
60 |
* @since ?Series60_version
|
sl@0
|
61 |
*/
|
sl@0
|
62 |
NONSHARABLE_CLASS(Ctiostreams) : public CScriptBase
|
sl@0
|
63 |
{
|
sl@0
|
64 |
public: // Constructors and destructor
|
sl@0
|
65 |
|
sl@0
|
66 |
/**
|
sl@0
|
67 |
* Two-phased constructor.
|
sl@0
|
68 |
*/
|
sl@0
|
69 |
static Ctiostreams* NewL( CTestModuleIf& aTestModuleIf );
|
sl@0
|
70 |
|
sl@0
|
71 |
/**
|
sl@0
|
72 |
* Destructor.
|
sl@0
|
73 |
*/
|
sl@0
|
74 |
virtual ~Ctiostreams();
|
sl@0
|
75 |
|
sl@0
|
76 |
public: // New functions
|
sl@0
|
77 |
|
sl@0
|
78 |
/**
|
sl@0
|
79 |
* ?member_description.
|
sl@0
|
80 |
* @since ?Series60_version
|
sl@0
|
81 |
* @param ?arg1 ?description
|
sl@0
|
82 |
* @return ?description
|
sl@0
|
83 |
*/
|
sl@0
|
84 |
//?type ?member_function( ?type ?arg1 );
|
sl@0
|
85 |
|
sl@0
|
86 |
public: // Functions from base classes
|
sl@0
|
87 |
|
sl@0
|
88 |
/**
|
sl@0
|
89 |
* From CScriptBase Runs a script line.
|
sl@0
|
90 |
* @since ?Series60_version
|
sl@0
|
91 |
* @param aItem Script line containing method name and parameters
|
sl@0
|
92 |
* @return Symbian OS error code
|
sl@0
|
93 |
*/
|
sl@0
|
94 |
virtual TInt RunMethodL( CStifItemParser& aItem );
|
sl@0
|
95 |
/**
|
sl@0
|
96 |
* Method used to log version of test module
|
sl@0
|
97 |
*/
|
sl@0
|
98 |
void SendTestModuleVersion();
|
sl@0
|
99 |
protected: // New functions
|
sl@0
|
100 |
|
sl@0
|
101 |
/**
|
sl@0
|
102 |
* ?member_description.
|
sl@0
|
103 |
* @since ?Series60_version
|
sl@0
|
104 |
* @param ?arg1 ?description
|
sl@0
|
105 |
* @return ?description
|
sl@0
|
106 |
*/
|
sl@0
|
107 |
//?type ?member_function( ?type ?arg1 );
|
sl@0
|
108 |
|
sl@0
|
109 |
protected: // Functions from base classes
|
sl@0
|
110 |
|
sl@0
|
111 |
/**
|
sl@0
|
112 |
* From ?base_class ?member_description
|
sl@0
|
113 |
*/
|
sl@0
|
114 |
//?type ?member_function();
|
sl@0
|
115 |
|
sl@0
|
116 |
private:
|
sl@0
|
117 |
|
sl@0
|
118 |
/**
|
sl@0
|
119 |
* C++ default constructor.
|
sl@0
|
120 |
*/
|
sl@0
|
121 |
Ctiostreams( CTestModuleIf& aTestModuleIf );
|
sl@0
|
122 |
|
sl@0
|
123 |
/**
|
sl@0
|
124 |
* By default Symbian 2nd phase constructor is private.
|
sl@0
|
125 |
*/
|
sl@0
|
126 |
void ConstructL();
|
sl@0
|
127 |
|
sl@0
|
128 |
// Prohibit copy constructor if not deriving from CBase.
|
sl@0
|
129 |
// ?classname( const ?classname& );
|
sl@0
|
130 |
// Prohibit assigment operator if not deriving from CBase.
|
sl@0
|
131 |
// ?classname& operator=( const ?classname& );
|
sl@0
|
132 |
|
sl@0
|
133 |
/**
|
sl@0
|
134 |
* Frees all resources allocated from test methods.
|
sl@0
|
135 |
* @since ?Series60_version
|
sl@0
|
136 |
*/
|
sl@0
|
137 |
void Delete();
|
sl@0
|
138 |
|
sl@0
|
139 |
/**
|
sl@0
|
140 |
* Test methods are listed below.
|
sl@0
|
141 |
*/
|
sl@0
|
142 |
|
sl@0
|
143 |
/**
|
sl@0
|
144 |
* Example test method.
|
sl@0
|
145 |
* @since ?Series60_version
|
sl@0
|
146 |
* @param aItem Script line containing parameters.
|
sl@0
|
147 |
* @return Symbian OS error code.
|
sl@0
|
148 |
*/
|
sl@0
|
149 |
|
sl@0
|
150 |
virtual TInt iofstreamL( CStifItemParser& aItem );
|
sl@0
|
151 |
virtual TInt stringbufL( CStifItemParser& aItem );
|
sl@0
|
152 |
virtual TInt stringstreamL( CStifItemParser& aItem );
|
sl@0
|
153 |
virtual TInt streambufL( CStifItemParser& aItem );
|
sl@0
|
154 |
virtual TInt ostreamL( CStifItemParser& aItem );
|
sl@0
|
155 |
virtual TInt istreamL( CStifItemParser& aItem );
|
sl@0
|
156 |
virtual TInt istringstreamL( CStifItemParser& aItem );
|
sl@0
|
157 |
virtual TInt ostringstreamL( CStifItemParser& aItem );
|
sl@0
|
158 |
virtual TInt ostreamiterators( CStifItemParser& aItem );
|
sl@0
|
159 |
virtual TInt fstreamL( CStifItemParser& aItem );
|
sl@0
|
160 |
virtual TInt istrstreamL( CStifItemParser& aItem );
|
sl@0
|
161 |
virtual TInt strstreamL( CStifItemParser& aItem );
|
sl@0
|
162 |
virtual TInt ostrstreamL( CStifItemParser& aItem );
|
sl@0
|
163 |
virtual TInt istreamiterators( CStifItemParser& aItem );
|
sl@0
|
164 |
virtual TInt istreambufiterators( CStifItemParser& aItem );
|
sl@0
|
165 |
virtual TInt strstreambufL( CStifItemParser& aItem );
|
sl@0
|
166 |
virtual TInt freezeL( CStifItemParser& aItem );
|
sl@0
|
167 |
virtual TInt fposL( CStifItemParser& aItem );
|
sl@0
|
168 |
virtual TInt filebufL( CStifItemParser& aItem );
|
sl@0
|
169 |
|
sl@0
|
170 |
virtual TInt basicstring( CStifItemParser& aItem );
|
sl@0
|
171 |
virtual TInt basicfilebufL( CStifItemParser& aItem );
|
sl@0
|
172 |
virtual TInt basicistreamL( CStifItemParser& aItem );
|
sl@0
|
173 |
virtual TInt wfstreamL( CStifItemParser& aItem );
|
sl@0
|
174 |
virtual TInt wifstreamL( CStifItemParser& aItem );
|
sl@0
|
175 |
virtual TInt wistreamL( CStifItemParser& aItem );
|
sl@0
|
176 |
virtual TInt wofstreamL( CStifItemParser& aItem );
|
sl@0
|
177 |
virtual TInt wistringstreamL( CStifItemParser& aItem );
|
sl@0
|
178 |
virtual TInt wostringstreamL( CStifItemParser& aItem );
|
sl@0
|
179 |
virtual TInt wstreambufL( CStifItemParser& aItem );
|
sl@0
|
180 |
virtual TInt wostreamL( CStifItemParser& aItem );
|
sl@0
|
181 |
virtual TInt wstringbufL( CStifItemParser& aItem );
|
sl@0
|
182 |
|
sl@0
|
183 |
|
sl@0
|
184 |
public: // Data
|
sl@0
|
185 |
// ?one_line_short_description_of_data
|
sl@0
|
186 |
//?data_declaration;
|
sl@0
|
187 |
|
sl@0
|
188 |
protected: // Data
|
sl@0
|
189 |
// ?one_line_short_description_of_data
|
sl@0
|
190 |
//?data_declaration;
|
sl@0
|
191 |
|
sl@0
|
192 |
private: // Data
|
sl@0
|
193 |
|
sl@0
|
194 |
// ?one_line_short_description_of_data
|
sl@0
|
195 |
//?data_declaration;
|
sl@0
|
196 |
|
sl@0
|
197 |
// Reserved pointer for future extension
|
sl@0
|
198 |
//TAny* iReserved;
|
sl@0
|
199 |
|
sl@0
|
200 |
public: // Friend classes
|
sl@0
|
201 |
//?friend_class_declaration;
|
sl@0
|
202 |
protected: // Friend classes
|
sl@0
|
203 |
//?friend_class_declaration;
|
sl@0
|
204 |
private: // Friend classes
|
sl@0
|
205 |
//?friend_class_declaration;
|
sl@0
|
206 |
|
sl@0
|
207 |
};
|
sl@0
|
208 |
|
sl@0
|
209 |
#endif // TIOSTREAMS_H
|
sl@0
|
210 |
|
sl@0
|
211 |
// End of File
|