31
|
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 "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: MMSConformanceAPITest declaration*
|
|
15 |
*/
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef MMSCONFORMANCEAPITEST_H
|
|
21 |
#define MMSCONFORMANCEAPITEST_H
|
|
22 |
|
|
23 |
// INCLUDES
|
|
24 |
#include <StifLogger.h>
|
|
25 |
#include <TestScripterInternal.h>
|
|
26 |
#include <StifTestModule.h>
|
|
27 |
#include <TestclassAssert.h>
|
|
28 |
#include <f32file.h>
|
|
29 |
|
|
30 |
// CONSTANTS
|
|
31 |
//const ?type ?constant_var = ?constant;
|
|
32 |
|
|
33 |
// MACROS
|
|
34 |
//#define ?macro ?macro_def
|
|
35 |
#define TEST_CLASS_VERSION_MAJOR 0
|
|
36 |
#define TEST_CLASS_VERSION_MINOR 0
|
|
37 |
#define TEST_CLASS_VERSION_BUILD 0
|
|
38 |
|
|
39 |
// Logging path
|
|
40 |
_LIT( KMMSConformanceAPITestLogPath, "\\logs\\testframework\\MMSConformanceAPITest\\" );
|
|
41 |
// Log file
|
|
42 |
_LIT( KMMSConformanceAPITestLogFile, "MMSConformanceAPITest.txt" );
|
|
43 |
_LIT( KMMSConformanceAPITestLogFileWithTitle, "MMSConformanceAPITest_[%S].txt" );
|
|
44 |
//Test data path
|
|
45 |
#ifdef __WINSCW__
|
|
46 |
_LIT( KTestFilePath, "C:\\testing\\Data\\MmsconformanceData\\%S" );
|
|
47 |
#endif
|
|
48 |
|
|
49 |
// FUNCTION PROTOTYPES
|
|
50 |
//?type ?function_name(?arg_list);
|
|
51 |
|
|
52 |
// FORWARD DECLARATIONS
|
|
53 |
//class ?FORWARD_CLASSNAME;
|
|
54 |
class CMMSConformanceAPITest;
|
|
55 |
class CMmsConformance;
|
|
56 |
class CMsgMediaInfo;
|
|
57 |
|
|
58 |
|
|
59 |
// DATA TYPES
|
|
60 |
//enum ?declaration
|
|
61 |
//typedef ?declaration
|
|
62 |
//extern ?data_type;
|
|
63 |
|
|
64 |
// CLASS DECLARATION
|
|
65 |
|
|
66 |
/**
|
|
67 |
* CMMSConformanceAPITest test class for STIF Test Framework TestScripter.
|
|
68 |
* This Module Tests "MMSCoformanceAPI" that covers MMSConformance.h
|
|
69 |
* @lib ?library
|
|
70 |
* @since ?Series60_version
|
|
71 |
*/
|
|
72 |
NONSHARABLE_CLASS(CMMSConformanceAPITest) : public CScriptBase
|
|
73 |
{
|
|
74 |
public: // Constructors and destructor
|
|
75 |
|
|
76 |
/**
|
|
77 |
* Two-phased constructor.
|
|
78 |
*/
|
|
79 |
static CMMSConformanceAPITest* NewL( CTestModuleIf& aTestModuleIf );
|
|
80 |
|
|
81 |
/**
|
|
82 |
* Destructor.
|
|
83 |
*/
|
|
84 |
virtual ~CMMSConformanceAPITest();
|
|
85 |
|
|
86 |
public: // New functions
|
|
87 |
|
|
88 |
/**
|
|
89 |
* ?member_description.
|
|
90 |
* @since ?Series60_version
|
|
91 |
* @param ?arg1 ?description
|
|
92 |
* @return ?description
|
|
93 |
*/
|
|
94 |
//?type ?member_function( ?type ?arg1 );
|
|
95 |
|
|
96 |
public: // Functions from base classes
|
|
97 |
|
|
98 |
/**
|
|
99 |
* From CScriptBase Runs a script line.
|
|
100 |
* @since ?Series60_version
|
|
101 |
* @param aItem Script line containing method name and parameters
|
|
102 |
* @return Symbian OS error code
|
|
103 |
*/
|
|
104 |
virtual TInt RunMethodL( CStifItemParser& aItem );
|
|
105 |
|
|
106 |
protected: // New functions
|
|
107 |
|
|
108 |
/**
|
|
109 |
* ?member_description.
|
|
110 |
* @since ?Series60_version
|
|
111 |
* @param ?arg1 ?description
|
|
112 |
* @return ?description
|
|
113 |
*/
|
|
114 |
//?type ?member_function( ?type ?arg1 );
|
|
115 |
|
|
116 |
protected: // Functions from base classes
|
|
117 |
|
|
118 |
/**
|
|
119 |
* From ?base_class ?member_description
|
|
120 |
*/
|
|
121 |
//?type ?member_function();
|
|
122 |
|
|
123 |
private:
|
|
124 |
|
|
125 |
/**
|
|
126 |
* C++ default constructor.
|
|
127 |
*/
|
|
128 |
CMMSConformanceAPITest( CTestModuleIf& aTestModuleIf );
|
|
129 |
|
|
130 |
/**
|
|
131 |
* By default Symbian 2nd phase constructor is private.
|
|
132 |
*/
|
|
133 |
void ConstructL();
|
|
134 |
|
|
135 |
// Prohibit copy constructor if not deriving from CBase.
|
|
136 |
// ?classname( const ?classname& );
|
|
137 |
// Prohibit assigment operator if not deriving from CBase.
|
|
138 |
// ?classname& operator=( const ?classname& );
|
|
139 |
|
|
140 |
/**
|
|
141 |
* Frees all resources allocated from test methods.
|
|
142 |
* @since ?Series60_version
|
|
143 |
*/
|
|
144 |
void Delete();
|
|
145 |
|
|
146 |
/**
|
|
147 |
* Method used to log version of test class
|
|
148 |
*/
|
|
149 |
void SendTestClassVersion();
|
|
150 |
|
|
151 |
//ADD NEW METHOD DEC HERE
|
|
152 |
//[TestMethods] - Do not remove
|
|
153 |
/**
|
|
154 |
* Test case for NewL of CMmsConformance
|
|
155 |
*/
|
|
156 |
TInt TestMmsConfNewL( CStifItemParser& aItem );
|
|
157 |
|
|
158 |
/**
|
|
159 |
* Test case for NewLC of CMmsConformance
|
|
160 |
*/
|
|
161 |
TInt TestMmsConfNewLC( CStifItemParser& aItem );
|
|
162 |
|
|
163 |
/**
|
|
164 |
* Test case for IsConformantMime of CMmsConformance
|
|
165 |
*/
|
|
166 |
TInt TestIsConformantMimeL( CStifItemParser& aItem );
|
|
167 |
|
|
168 |
/**
|
|
169 |
* Test case for MediaConformance of CMmsConformance
|
|
170 |
*/
|
|
171 |
TInt TestMediaConformanceL( CStifItemParser& aItem );
|
|
172 |
|
|
173 |
/**
|
|
174 |
* Test case for ConformanceVersion of CMmsConformance
|
|
175 |
*/
|
|
176 |
TInt TestConformanceVersion( CStifItemParser& aItem );
|
|
177 |
|
|
178 |
//HelperFunctions
|
|
179 |
/**
|
|
180 |
* Initializes iMediaInfo which will be used in other testcases
|
|
181 |
*/
|
|
182 |
TInt InitDataL( CStifItemParser& aItem );
|
|
183 |
|
|
184 |
/*
|
|
185 |
* Cleans up data initialized in InitDataL
|
|
186 |
* call it after calling InitDataL...
|
|
187 |
*/
|
|
188 |
void CleanUp();
|
|
189 |
|
|
190 |
|
|
191 |
public: // Data
|
|
192 |
// ?one_line_short_description_of_data
|
|
193 |
//?data_declaration;
|
|
194 |
|
|
195 |
protected: // Data
|
|
196 |
// ?one_line_short_description_of_data
|
|
197 |
//?data_declaration;
|
|
198 |
|
|
199 |
private: // Data
|
|
200 |
|
|
201 |
//Pointer to
|
|
202 |
CMmsConformance* iMmsConformance;
|
|
203 |
CMsgMediaInfo* iMediaInfo;
|
|
204 |
// Reserved pointer for future extension
|
|
205 |
//TAny* iReserved;
|
|
206 |
|
|
207 |
public: // Friend classes
|
|
208 |
//?friend_class_declaration;
|
|
209 |
protected: // Friend classes
|
|
210 |
//?friend_class_declaration;
|
|
211 |
private: // Friend classes
|
|
212 |
//?friend_class_declaration;
|
|
213 |
|
|
214 |
};
|
|
215 |
|
|
216 |
#endif // MMSCONFORMANCEAPITEST_H
|
|
217 |
|
|
218 |
// End of File
|