Update contrib.
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
23 #include <StifLogger.h>
24 #include <TestScripterInternal.h>
25 #include <StifTestModule.h>
29 //const ?type ?constant_var = ?constant;
32 //#define ?macro ?macro_def
33 #define TEST_MODULE_VERSION_MAJOR 50
34 #define TEST_MODULE_VERSION_MINOR 9
35 #define TEST_MODULE_VERSION_BUILD 06
37 _LIT( KtiostreamsLogPath, "\\logs\\testframework\\tiostreams\\" );
39 _LIT( KtiostreamsLogFile, "tiostreams.txt" );
41 // FUNCTION PROTOTYPES
42 //?type ?function_name(?arg_list);
44 // FORWARD DECLARATIONS
45 //class ?FORWARD_CLASSNAME;
50 //typedef ?declaration
56 * Ctiostreams test class for STIF Test Framework TestScripter.
57 * ?other_description_lines
60 * @since ?Series60_version
62 NONSHARABLE_CLASS(Ctiostreams) : public CScriptBase
64 public: // Constructors and destructor
67 * Two-phased constructor.
69 static Ctiostreams* NewL( CTestModuleIf& aTestModuleIf );
74 virtual ~Ctiostreams();
76 public: // New functions
79 * ?member_description.
80 * @since ?Series60_version
81 * @param ?arg1 ?description
82 * @return ?description
84 //?type ?member_function( ?type ?arg1 );
86 public: // Functions from base classes
89 * From CScriptBase Runs a script line.
90 * @since ?Series60_version
91 * @param aItem Script line containing method name and parameters
92 * @return Symbian OS error code
94 virtual TInt RunMethodL( CStifItemParser& aItem );
96 * Method used to log version of test module
98 void SendTestModuleVersion();
99 protected: // New functions
102 * ?member_description.
103 * @since ?Series60_version
104 * @param ?arg1 ?description
105 * @return ?description
107 //?type ?member_function( ?type ?arg1 );
109 protected: // Functions from base classes
112 * From ?base_class ?member_description
114 //?type ?member_function();
119 * C++ default constructor.
121 Ctiostreams( CTestModuleIf& aTestModuleIf );
124 * By default Symbian 2nd phase constructor is private.
128 // Prohibit copy constructor if not deriving from CBase.
129 // ?classname( const ?classname& );
130 // Prohibit assigment operator if not deriving from CBase.
131 // ?classname& operator=( const ?classname& );
134 * Frees all resources allocated from test methods.
135 * @since ?Series60_version
140 * Test methods are listed below.
144 * Example test method.
145 * @since ?Series60_version
146 * @param aItem Script line containing parameters.
147 * @return Symbian OS error code.
150 virtual TInt iofstreamL( CStifItemParser& aItem );
151 virtual TInt stringbufL( CStifItemParser& aItem );
152 virtual TInt stringstreamL( CStifItemParser& aItem );
153 virtual TInt streambufL( CStifItemParser& aItem );
154 virtual TInt ostreamL( CStifItemParser& aItem );
155 virtual TInt istreamL( CStifItemParser& aItem );
156 virtual TInt istringstreamL( CStifItemParser& aItem );
157 virtual TInt ostringstreamL( CStifItemParser& aItem );
158 virtual TInt ostreamiterators( CStifItemParser& aItem );
159 virtual TInt fstreamL( CStifItemParser& aItem );
160 virtual TInt istrstreamL( CStifItemParser& aItem );
161 virtual TInt strstreamL( CStifItemParser& aItem );
162 virtual TInt ostrstreamL( CStifItemParser& aItem );
163 virtual TInt istreamiterators( CStifItemParser& aItem );
164 virtual TInt istreambufiterators( CStifItemParser& aItem );
165 virtual TInt strstreambufL( CStifItemParser& aItem );
166 virtual TInt freezeL( CStifItemParser& aItem );
167 virtual TInt fposL( CStifItemParser& aItem );
168 virtual TInt filebufL( CStifItemParser& aItem );
170 virtual TInt basicstring( CStifItemParser& aItem );
171 virtual TInt basicfilebufL( CStifItemParser& aItem );
172 virtual TInt basicistreamL( CStifItemParser& aItem );
173 virtual TInt wfstreamL( CStifItemParser& aItem );
174 virtual TInt wifstreamL( CStifItemParser& aItem );
175 virtual TInt wistreamL( CStifItemParser& aItem );
176 virtual TInt wofstreamL( CStifItemParser& aItem );
177 virtual TInt wistringstreamL( CStifItemParser& aItem );
178 virtual TInt wostringstreamL( CStifItemParser& aItem );
179 virtual TInt wstreambufL( CStifItemParser& aItem );
180 virtual TInt wostreamL( CStifItemParser& aItem );
181 virtual TInt wstringbufL( CStifItemParser& aItem );
185 // ?one_line_short_description_of_data
189 // ?one_line_short_description_of_data
194 // ?one_line_short_description_of_data
197 // Reserved pointer for future extension
200 public: // Friend classes
201 //?friend_class_declaration;
202 protected: // Friend classes
203 //?friend_class_declaration;
204 private: // Friend classes
205 //?friend_class_declaration;
209 #endif // TIOSTREAMS_H