sl@0
|
1 |
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
// f32test\cfileman\t_cfileman_aux.h
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//
|
sl@0
|
17 |
|
sl@0
|
18 |
#ifndef T_CFILEMAN_AUX_H
|
sl@0
|
19 |
#define T_CFILEMAN_AUX_H
|
sl@0
|
20 |
|
sl@0
|
21 |
#include <f32file.h>
|
sl@0
|
22 |
#include <e32test.h>
|
sl@0
|
23 |
#include <hal.h>
|
sl@0
|
24 |
#include "t_server.h"
|
sl@0
|
25 |
|
sl@0
|
26 |
void RmDir(const TDesC& aDirName);
|
sl@0
|
27 |
TBool CompareL(const TDesC& aDir1,const TDesC& aDir2);
|
sl@0
|
28 |
void SetupDirectories(TBool aCreateFiles, TFileName* aDestOtherDrive);
|
sl@0
|
29 |
void InitialiseL();
|
sl@0
|
30 |
void Cleanup();
|
sl@0
|
31 |
void CleanupFileHandles();
|
sl@0
|
32 |
|
sl@0
|
33 |
struct TDirSetupFiles;
|
sl@0
|
34 |
|
sl@0
|
35 |
void ParsingDirDataBlock(TInt aDataBlock[], RArray<TInt>& aFinalDirDataArray);
|
sl@0
|
36 |
void SetupDir(TDesC& aPath, TDirSetupFiles aDirSetupData);
|
sl@0
|
37 |
void SetupDirFiles(const TDesC& aPath, const TDirSetupFiles& aDirFiles);
|
sl@0
|
38 |
|
sl@0
|
39 |
void PrintDir(const TDesC& aPath, const TChar& aDrv);
|
sl@0
|
40 |
|
sl@0
|
41 |
///////////////////////////////////////////////////////////////////////////////
|
sl@0
|
42 |
// Files Setup Pattern Definitions
|
sl@0
|
43 |
///////////////////////////////////////////////////////////////////////////////
|
sl@0
|
44 |
static TPtrC gDirPatterns[] =
|
sl@0
|
45 |
{
|
sl@0
|
46 |
_L("FILE1.TXT"), // 0
|
sl@0
|
47 |
_L("FILE2.TXT"), // 1
|
sl@0
|
48 |
_L("FILE01.TXT"), // 2
|
sl@0
|
49 |
_L("FILE02.TXT"), // 3
|
sl@0
|
50 |
_L("FILE.TXT"), // 4
|
sl@0
|
51 |
_L("OTHER.TXT"), // 5
|
sl@0
|
52 |
_L("FILE.DAT"), // 6
|
sl@0
|
53 |
_L("FILE"), // 7
|
sl@0
|
54 |
|
sl@0
|
55 |
_L("DIR1\\"), // 8
|
sl@0
|
56 |
|
sl@0
|
57 |
_L("DIR1\\FILE1.TXT"), // 9
|
sl@0
|
58 |
_L("DIR1\\FILE2.TXT"), // 10
|
sl@0
|
59 |
_L("DIR1\\FILE01.TXT"), // 11
|
sl@0
|
60 |
_L("DIR1\\FILE02.TXT"), // 12
|
sl@0
|
61 |
_L("DIR1\\FILE.TXT"), // 13
|
sl@0
|
62 |
_L("DIR1\\OTHER.TXT"), // 14
|
sl@0
|
63 |
_L("DIR1\\FILE.DAT"), // 15
|
sl@0
|
64 |
_L("DIR1\\FILE"), // 16
|
sl@0
|
65 |
|
sl@0
|
66 |
_L("DIR2\\"), // 17
|
sl@0
|
67 |
|
sl@0
|
68 |
_L("DIR2\\FILE1.TXT"), // 18
|
sl@0
|
69 |
_L("DIR2\\FILE2.TXT"), // 19
|
sl@0
|
70 |
_L("DIR2\\FILE01.TXT"), // 20
|
sl@0
|
71 |
_L("DIR2\\FILE02.TXT"), // 21
|
sl@0
|
72 |
_L("DIR2\\FILE.TXT"), // 22
|
sl@0
|
73 |
_L("DIR2\\OTHER.TXT"), // 23
|
sl@0
|
74 |
_L("DIR2\\FILE.DAT"), // 24
|
sl@0
|
75 |
_L("DIR2\\FILE"), // 25
|
sl@0
|
76 |
|
sl@0
|
77 |
|
sl@0
|
78 |
_L("DIR1\\DIR11\\"), // 26
|
sl@0
|
79 |
|
sl@0
|
80 |
_L("DIR1\\DIR11\\FILE1.TXT"), // 27
|
sl@0
|
81 |
_L("DIR1\\DIR11\\FILE2.TXT"), // 28
|
sl@0
|
82 |
_L("DIR1\\DIR11\\FILE01.TXT"), // 29
|
sl@0
|
83 |
_L("DIR1\\DIR11\\FILE02.TXT"), // 30
|
sl@0
|
84 |
_L("DIR1\\DIR11\\FILE.TXT"), // 31
|
sl@0
|
85 |
_L("DIR1\\DIR11\\OTHER.TXT"), // 32
|
sl@0
|
86 |
_L("DIR1\\DIR11\\FILE.DAT"), // 33
|
sl@0
|
87 |
_L("DIR1\\DIR11\\FILE"), // 34
|
sl@0
|
88 |
|
sl@0
|
89 |
|
sl@0
|
90 |
_L("DIR1\\DIR12\\"), // 35
|
sl@0
|
91 |
|
sl@0
|
92 |
_L("DIR1\\DIR12\\FILE1.TXT"), // 36
|
sl@0
|
93 |
_L("DIR1\\DIR12\\FILE2.TXT"), // 37
|
sl@0
|
94 |
_L("DIR1\\DIR12\\FILE01.TXT"), // 38
|
sl@0
|
95 |
_L("DIR1\\DIR12\\FILE02.TXT"), // 39
|
sl@0
|
96 |
_L("DIR1\\DIR12\\FILE.TXT"), // 40
|
sl@0
|
97 |
_L("DIR1\\DIR12\\OTHER.TXT"), // 41
|
sl@0
|
98 |
_L("DIR1\\DIR12\\FILE.DAT"), // 42
|
sl@0
|
99 |
_L("DIR1\\DIR12\\FILE"), // 43
|
sl@0
|
100 |
|
sl@0
|
101 |
//Special
|
sl@0
|
102 |
_L("RENAMED.TXT"), //44
|
sl@0
|
103 |
_L("RENAMED1.TXT"), //45
|
sl@0
|
104 |
_L("RENAMED2.TXT"), //46
|
sl@0
|
105 |
_L("RENAMED01.TXT"), //47
|
sl@0
|
106 |
_L("RENAMED02.TXT"), //48
|
sl@0
|
107 |
_L("RENAMED.DAT"), //49
|
sl@0
|
108 |
_L("RENAMED"), //50
|
sl@0
|
109 |
|
sl@0
|
110 |
_L("FILE1.REN"), //51
|
sl@0
|
111 |
_L("FILE2.REN"), //52
|
sl@0
|
112 |
_L("FILE01.REN"), //53
|
sl@0
|
113 |
_L("FILE02.REN"), //54
|
sl@0
|
114 |
_L("FILE.REN"), //55
|
sl@0
|
115 |
_L("OTHER.REN"), //56
|
sl@0
|
116 |
_L("RENAMED.REN"), //57
|
sl@0
|
117 |
_L("RENAMED1.REN"), //58
|
sl@0
|
118 |
_L("RENAMED2.REN"), //59
|
sl@0
|
119 |
_L("RENAMED01.REN"), //60
|
sl@0
|
120 |
_L("RENAMED02.REN"), //61
|
sl@0
|
121 |
_L("abcEtxt"), //62
|
sl@0
|
122 |
_L("DIR1\\RENAMED.TXT"), //63
|
sl@0
|
123 |
_L("DIR1\\RENAMED1.TXT"), //64
|
sl@0
|
124 |
_L("DIR1\\RENAMED2.TXT"), //65
|
sl@0
|
125 |
_L("DIR1\\RENAMED01.TXT"), //66
|
sl@0
|
126 |
_L("DIR1\\RENAMED02.TXT"), //67
|
sl@0
|
127 |
_L("DIR1\\DIR11\\RENAMED.TXT"), //68
|
sl@0
|
128 |
_L("DIR1\\DIR11\\RENAMED1.TXT"), //69
|
sl@0
|
129 |
_L("DIR1\\DIR11\\RENAMED2.TXT"), //70
|
sl@0
|
130 |
_L("DIR1\\DIR11\\RENAMED01.TXT"), //71
|
sl@0
|
131 |
_L("DIR1\\DIR11\\RENAMED02.TXT"), //72
|
sl@0
|
132 |
_L("DIR1\\DIR12\\RENAMED.TXT"), //73
|
sl@0
|
133 |
_L("DIR1\\DIR12\\RENAMED1.TXT"), //74
|
sl@0
|
134 |
_L("DIR1\\DIR12\\RENAMED2.TXT"), //75
|
sl@0
|
135 |
_L("DIR1\\DIR12\\RENAMED01.TXT"), //76
|
sl@0
|
136 |
_L("DIR1\\DIR12\\RENAMED02.TXT"), //77
|
sl@0
|
137 |
_L("DIR2\\RENAMED.TXT"), //78
|
sl@0
|
138 |
_L("DIR2\\RENAMED1.TXT"), //79
|
sl@0
|
139 |
_L("DIR2\\RENAMED2.TXT"), //80
|
sl@0
|
140 |
_L("DIR2\\RENAMED01.TXT"), //81
|
sl@0
|
141 |
_L("DIR2\\RENAMED02.TXT"), //82
|
sl@0
|
142 |
_L("DIR1\\FILE1.REN"), //83
|
sl@0
|
143 |
_L("DIR1\\FILE2.REN"), //84
|
sl@0
|
144 |
_L("DIR1\\FILE01.REN"), //85
|
sl@0
|
145 |
_L("DIR1\\FILE02.REN"), //86
|
sl@0
|
146 |
_L("DIR1\\FILE.REN"), //87
|
sl@0
|
147 |
_L("DIR1\\OTHER.REN"), //88
|
sl@0
|
148 |
_L("DIR1\\RENAMED.REN"), //89
|
sl@0
|
149 |
_L("DIR1\\RENAMED1.REN"), //90
|
sl@0
|
150 |
_L("DIR1\\RENAMED2.REN"), //91
|
sl@0
|
151 |
_L("DIR1\\RENAMED01.REN"), //92
|
sl@0
|
152 |
_L("DIR1\\RENAMED02.REN"), //93
|
sl@0
|
153 |
_L("DIR1\\DIR11\\FILE1.REN"), //94
|
sl@0
|
154 |
_L("DIR1\\DIR11\\FILE2.REN"), //95
|
sl@0
|
155 |
_L("DIR1\\DIR11\\FILE01.REN"), //96
|
sl@0
|
156 |
_L("DIR1\\DIR11\\FILE02.REN"), //97
|
sl@0
|
157 |
_L("DIR1\\DIR11\\FILE.REN"), //98
|
sl@0
|
158 |
_L("DIR1\\DIR11\\OTHER.REN"), //99
|
sl@0
|
159 |
_L("DIR1\\DIR11\\RENAMED.REN"), //100
|
sl@0
|
160 |
_L("DIR1\\DIR11\\RENAMED1.REN"), //101
|
sl@0
|
161 |
_L("DIR1\\DIR11\\RENAMED2.REN"), //102
|
sl@0
|
162 |
_L("DIR1\\DIR11\\RENAMED01.REN"), //103
|
sl@0
|
163 |
_L("DIR1\\DIR11\\RENAMED02.REN"), //104
|
sl@0
|
164 |
_L("DIR1\\DIR12\\FILE1.REN"), //105
|
sl@0
|
165 |
_L("DIR1\\DIR12\\FILE2.REN"), //106
|
sl@0
|
166 |
_L("DIR1\\DIR12\\FILE01.REN"), //107
|
sl@0
|
167 |
_L("DIR1\\DIR12\\FILE02.REN"), //108
|
sl@0
|
168 |
_L("DIR1\\DIR12\\FILE.REN"), //109
|
sl@0
|
169 |
_L("DIR1\\DIR12\\OTHER.REN"), //110
|
sl@0
|
170 |
_L("DIR1\\DIR12\\RENAMED.REN"), //111
|
sl@0
|
171 |
_L("DIR1\\DIR12\\RENAMED1.REN"), //112
|
sl@0
|
172 |
_L("DIR1\\DIR12\\RENAMED2.REN"), //113
|
sl@0
|
173 |
_L("DIR1\\DIR12\\RENAMED01.REN"), //114
|
sl@0
|
174 |
_L("DIR1\\DIR12\\RENAMED02.REN"), //115
|
sl@0
|
175 |
_L("DIR2\\FILE1.REN"), //116
|
sl@0
|
176 |
_L("DIR2\\FILE2.REN"), //117
|
sl@0
|
177 |
_L("DIR2\\FILE01.REN"), //118
|
sl@0
|
178 |
_L("DIR2\\FILE02.REN"), //119
|
sl@0
|
179 |
_L("DIR2\\FILE.REN"), //120
|
sl@0
|
180 |
_L("DIR2\\OTHER.REN"), //121
|
sl@0
|
181 |
_L("DIR2\\RENAMED.REN"), //122
|
sl@0
|
182 |
_L("DIR2\\RENAMED1.REN"), //123
|
sl@0
|
183 |
_L("DIR2\\RENAMED2.REN"), //124
|
sl@0
|
184 |
_L("DIR2\\RENAMED01.REN"), //125
|
sl@0
|
185 |
_L("DIR2\\RENAMED02.REN"), //126
|
sl@0
|
186 |
_L("DIR1\\RENAMED.DAT"), //127
|
sl@0
|
187 |
_L("DIR1\\DIR11\\RENAMED.DAT"), //128
|
sl@0
|
188 |
_L("DIR1\\DIR12\\RENAMED.DAT"), //129
|
sl@0
|
189 |
_L("DIR2\\RENAMED.DAT"), //130
|
sl@0
|
190 |
|
sl@0
|
191 |
};
|
sl@0
|
192 |
|
sl@0
|
193 |
#define EOB -1 // 'End Of Block' tag
|
sl@0
|
194 |
#define CON (EOB - 1) // 'Continue' tag
|
sl@0
|
195 |
#define LAST 130 // Last item's tag
|
sl@0
|
196 |
//...
|
sl@0
|
197 |
|
sl@0
|
198 |
// Predefined dir data blocks for testing data setup:
|
sl@0
|
199 |
#define ALL {0,CON,LAST,EOB} // Block includes all items
|
sl@0
|
200 |
|
sl@0
|
201 |
#define EMPTY {EOB} // Empty block
|
sl@0
|
202 |
|
sl@0
|
203 |
#define BLOCK01 {0,CON,7,EOB}
|
sl@0
|
204 |
#define BLOCK02 {0,CON,4,EOB}
|
sl@0
|
205 |
#define BLOCK03 {0,CON,5,EOB}
|
sl@0
|
206 |
#define BLOCK04 {0,CON,7,9,CON,16,18,CON,25,27,CON,34,36,CON,43,EOB}// Src\\*
|
sl@0
|
207 |
#define BLOCK05 {0,CON,4,9,CON,13,18,CON,22,27,CON,31,36,CON,40,EOB}// Src\\FILE*.TXT
|
sl@0
|
208 |
#define BLOCK06 {0,1,9,10,18,19,27,28,36,37,EOB}// Src\\FILE?.TXT
|
sl@0
|
209 |
#define BLOCK07 {0,CON,5,9,CON,14,18,CON,23,27,CON,32,36,CON,41,EOB}//Src\\*.TXT
|
sl@0
|
210 |
#define BLOCK08 {4,6,13,15,22,24,31,33,40,42,55,EOB}//Src\\FILE.*
|
sl@0
|
211 |
#define BLOCK09 {8,CON,16,26,CON,43,EOB}
|
sl@0
|
212 |
#define BLOCK10 {26,CON,34,EOB}
|
sl@0
|
213 |
#define BLOCK11 {9,CON,16,26,CON,43,EOB}
|
sl@0
|
214 |
#define BLOCK12 {9,CON,16,EOB}
|
sl@0
|
215 |
#define BLOCK13 {0,CON,3,EOB}
|
sl@0
|
216 |
#define BLOCK14 {0,1,EOB}
|
sl@0
|
217 |
#define BLOCK15 {0,1,8,9,10,17,18,19,26,27,28,35,36,37,EOB}
|
sl@0
|
218 |
#define BLOCK16 {5,8,14,17,23,26,32,35,41,EOB}
|
sl@0
|
219 |
#define BLOCK17 {3,8,12,17,21,26,30,35,39,EOB}
|
sl@0
|
220 |
#define BLOCK18 {8,CON,16,EOB}
|
sl@0
|
221 |
#define BLOCK19 {51,CON,61,EOB}
|
sl@0
|
222 |
#define BLOCK20 {0,CON,5,44,CON,48,EOB}
|
sl@0
|
223 |
#define BLOCK21 {0,CON,25,35,CON,61,EOB}
|
sl@0
|
224 |
#define BLOCK22 {9,CON,63,EOB}
|
sl@0
|
225 |
#define BLOCK23 {63,CON,71}
|
sl@0
|
226 |
#define BLOCK24 {0,CON,7,44,CON,62,EOB}
|
sl@0
|
227 |
#define BLOCK25 {0,CON,7,9,CON,16,18,CON,25,27,CON,34,36,CON,62,EOB}
|
sl@0
|
228 |
#define BLOCK26 {0,CON,5,9,CON,14,18,CON,23,27,CON,32,36,CON,41,44,CON,48,EOB}
|
sl@0
|
229 |
#define BLOCK27 {4,6,13,15,22,24,31,33,40,42,55,EOB}
|
sl@0
|
230 |
#define BLOCK28 {8,CON,43,EOB}
|
sl@0
|
231 |
#define BLOCK29 {0,CON,5,44,CON,48,EOB}
|
sl@0
|
232 |
#define BLOCK30 {44,8,63,17,68,26,73,35,78,EOB}
|
sl@0
|
233 |
#define BLOCK31 {44,CON,48,63,CON,82,EOB}
|
sl@0
|
234 |
#define BLOCK32 {51,CON,61,83,CON,126,EOB}
|
sl@0
|
235 |
#define BLOCK33 {44,49,57,89,100,111,122,127,CON,130,EOB}
|
sl@0
|
236 |
#define BLOCK36 {0,CON,5,9,CON,14,18,CON,23,27,CON,32,36,CON,41,44,CON,48,63,CON,82,EOB}
|
sl@0
|
237 |
#define BLOCK37 {4,6,13,15,22,24,31,33,40,42,55,87,98,109,120,EOB}
|
sl@0
|
238 |
#define BLOCK39 {8,CON,16,26,CON,43,63,CON,77,83,CON,115,127,CON,129,EOB}
|
sl@0
|
239 |
#define BLOCK45 {51,CON,61,83,CON,126,EOB}
|
sl@0
|
240 |
#define BLOCK46 {44,49,57,63,68,73,78,89,100,111,122,127,128,129,130,EOB}
|
sl@0
|
241 |
#define BLOCK47 {44,49,55,57,63,68,73,78,87,89,98,100,109,111,120,122,127,128,129,130,EOB}
|
sl@0
|
242 |
|
sl@0
|
243 |
#define BLOCK34 {0,CON,5,9,CON,14,18,CON,23,27,CON,32,36,CON,41,44,CON,48,63,CON,82,EOB}
|
sl@0
|
244 |
#define BLOCK35 {4,6,13,15,22,24,31,33,40,42,55,87,98,109,120,EOB}
|
sl@0
|
245 |
#define BLOCK40 {44,49,57,63,68,73,78,89,100,111,122,127,CON,130,EOB}
|
sl@0
|
246 |
#define BLOCK41 {8,CON,16,26,CON,43,63,CON,77,83,CON,115,127,CON,129,EOB}
|
sl@0
|
247 |
#define BLOCK42 {0,CON,7,44,CON,49,51,CON,61,EOB}
|
sl@0
|
248 |
#define BLOCK43 {9,CON,16,26,CON,43,63,CON,77,83,CON,115,127,CON,129,EOB}
|
sl@0
|
249 |
|
sl@0
|
250 |
///////////////////////////////////////////////////////////////////////////////
|
sl@0
|
251 |
// Data structures for building test case parameters
|
sl@0
|
252 |
///////////////////////////////////////////////////////////////////////////////
|
sl@0
|
253 |
enum TTestingAPI
|
sl@0
|
254 |
{
|
sl@0
|
255 |
ECFMDelete,
|
sl@0
|
256 |
ECFMMove,
|
sl@0
|
257 |
ECFMRmDir,
|
sl@0
|
258 |
ECFMCopy,
|
sl@0
|
259 |
ECFMRename,
|
sl@0
|
260 |
ECFMCopyHandle,
|
sl@0
|
261 |
ECFMAttribs,
|
sl@0
|
262 |
};
|
sl@0
|
263 |
|
sl@0
|
264 |
struct TDirSetupFiles
|
sl@0
|
265 |
{
|
sl@0
|
266 |
TInt iAddingBlock[25];
|
sl@0
|
267 |
TInt iDeductBlock[25];
|
sl@0
|
268 |
};
|
sl@0
|
269 |
// Basic Testing Parameters
|
sl@0
|
270 |
struct TTestParamBasic
|
sl@0
|
271 |
{
|
sl@0
|
272 |
TUint iTestCaseID;
|
sl@0
|
273 |
TTestingAPI iAPI;
|
sl@0
|
274 |
TUint iSwitch;
|
sl@0
|
275 |
TInt iSyncReturn;
|
sl@0
|
276 |
TInt iAsyncReturn;
|
sl@0
|
277 |
TInt iAsyncStatus;
|
sl@0
|
278 |
};
|
sl@0
|
279 |
|
sl@0
|
280 |
// Basic Presettings Parameters
|
sl@0
|
281 |
struct TTestParamBasicPrs
|
sl@0
|
282 |
{
|
sl@0
|
283 |
TChar* iDrvChar;
|
sl@0
|
284 |
TText16* iCmdPath;
|
sl@0
|
285 |
TText16* iPrsPath;
|
sl@0
|
286 |
TDirSetupFiles iPrsFiles;
|
sl@0
|
287 |
TText16* iCmpPath;
|
sl@0
|
288 |
TDirSetupFiles iCmpFiles;
|
sl@0
|
289 |
};
|
sl@0
|
290 |
|
sl@0
|
291 |
// Presettings with file open mode
|
sl@0
|
292 |
struct TTestParamPrsFileOpen
|
sl@0
|
293 |
{
|
sl@0
|
294 |
TTestParamBasicPrs iBasicPrs;
|
sl@0
|
295 |
TBool iFileOpen;
|
sl@0
|
296 |
};
|
sl@0
|
297 |
|
sl@0
|
298 |
// Presettings with file attribs and modified time
|
sl@0
|
299 |
struct TTestParamPrsAttribsTime
|
sl@0
|
300 |
{
|
sl@0
|
301 |
TTestParamBasicPrs iBasicPrs;
|
sl@0
|
302 |
TUint iAttribsSet;
|
sl@0
|
303 |
TTime iTime;
|
sl@0
|
304 |
};
|
sl@0
|
305 |
|
sl@0
|
306 |
|
sl@0
|
307 |
///////////////////////////////////////////////////////////
|
sl@0
|
308 |
// Test case data structures
|
sl@0
|
309 |
///////////////////////////////////////////////////////////
|
sl@0
|
310 |
struct TTestCaseUnitaryBasic
|
sl@0
|
311 |
{
|
sl@0
|
312 |
TTestParamBasic iBasic;
|
sl@0
|
313 |
TTestParamBasicPrs iSrcPrsBasic;
|
sl@0
|
314 |
};
|
sl@0
|
315 |
|
sl@0
|
316 |
struct TTestCaseBinaryBasic
|
sl@0
|
317 |
{
|
sl@0
|
318 |
TTestParamBasic iBasic;
|
sl@0
|
319 |
TTestParamBasicPrs iSrcPrsBasic;
|
sl@0
|
320 |
TTestParamBasicPrs iTrgPrsBasic;
|
sl@0
|
321 |
};
|
sl@0
|
322 |
|
sl@0
|
323 |
struct TTestCaseUnitaryFileOpen
|
sl@0
|
324 |
{
|
sl@0
|
325 |
TTestParamBasic iBasic;
|
sl@0
|
326 |
TTestParamPrsFileOpen iSrcPrsFO;
|
sl@0
|
327 |
};
|
sl@0
|
328 |
|
sl@0
|
329 |
struct TTestCaseBinaryFileOpen
|
sl@0
|
330 |
{
|
sl@0
|
331 |
TTestParamBasic iBasic;
|
sl@0
|
332 |
TTestParamPrsFileOpen iSrcPrsFO;
|
sl@0
|
333 |
TTestParamPrsFileOpen iTrgPrsFO;
|
sl@0
|
334 |
};
|
sl@0
|
335 |
|
sl@0
|
336 |
struct TTestCaseUnitaryAttribTime
|
sl@0
|
337 |
{
|
sl@0
|
338 |
TTestParamBasic iBasic;
|
sl@0
|
339 |
TUint iSetAttribs;
|
sl@0
|
340 |
TUint iClearAttribs;
|
sl@0
|
341 |
TTestParamPrsAttribsTime iSrcPrsAT;
|
sl@0
|
342 |
};
|
sl@0
|
343 |
|
sl@0
|
344 |
struct TTestCaseBinaryAttribTime
|
sl@0
|
345 |
{
|
sl@0
|
346 |
TTestParamBasic iBasic;
|
sl@0
|
347 |
TTestParamPrsAttribsTime iSrcPrsAT;
|
sl@0
|
348 |
TTestParamPrsAttribsTime iTrgPrsAT;
|
sl@0
|
349 |
};
|
sl@0
|
350 |
|
sl@0
|
351 |
////////////////////////////////////////////////////////////
|
sl@0
|
352 |
// An interface between test framework and test cases
|
sl@0
|
353 |
////////////////////////////////////////////////////////////
|
sl@0
|
354 |
class TTestParamAll
|
sl@0
|
355 |
{
|
sl@0
|
356 |
public:
|
sl@0
|
357 |
TUint iTestCaseID;
|
sl@0
|
358 |
TTestingAPI iAPI;
|
sl@0
|
359 |
TUint iSwitch;
|
sl@0
|
360 |
TInt iSyncReturn;
|
sl@0
|
361 |
TInt iAsyncReturn;
|
sl@0
|
362 |
TInt iAsyncStatus;
|
sl@0
|
363 |
|
sl@0
|
364 |
TUint iSetAttribs;
|
sl@0
|
365 |
TUint iClearAttribs;
|
sl@0
|
366 |
TTime iSetModified;
|
sl@0
|
367 |
|
sl@0
|
368 |
TChar* iSrcDrvChar;
|
sl@0
|
369 |
TPtrC iSrcCmdPath;
|
sl@0
|
370 |
|
sl@0
|
371 |
TPtrC iSrcPrsPath;
|
sl@0
|
372 |
TDirSetupFiles iSrcPrsFiles;
|
sl@0
|
373 |
TUint iSrcPrsAttribs;
|
sl@0
|
374 |
TTime iSrcPrsTime;
|
sl@0
|
375 |
TBool iSrcPrsFileOpen;
|
sl@0
|
376 |
|
sl@0
|
377 |
TPtrC iSrcCmpPath;
|
sl@0
|
378 |
TDirSetupFiles iSrcCmpFiles;
|
sl@0
|
379 |
TUint iSrcCmpAttribs;
|
sl@0
|
380 |
TTime iSrcCmpTime;
|
sl@0
|
381 |
TBool iSrcCmpFileOpen;
|
sl@0
|
382 |
|
sl@0
|
383 |
TChar* iTrgDrvChar;
|
sl@0
|
384 |
TPtrC iTrgCmdPath;
|
sl@0
|
385 |
|
sl@0
|
386 |
TPtrC iTrgPrsPath;
|
sl@0
|
387 |
TDirSetupFiles iTrgPrsFiles;
|
sl@0
|
388 |
TUint iTrgPrsAttribs;
|
sl@0
|
389 |
TTime iTrgPrsTime;
|
sl@0
|
390 |
TBool iTrgPrsFileOpen;
|
sl@0
|
391 |
|
sl@0
|
392 |
TPtrC iTrgCmpPath;
|
sl@0
|
393 |
TDirSetupFiles iTrgCmpFiles;
|
sl@0
|
394 |
TUint iTrgCmpAttribs;
|
sl@0
|
395 |
TTime iTrgCmpTime;
|
sl@0
|
396 |
TBool iTrgCmpFileOpen;
|
sl@0
|
397 |
};
|
sl@0
|
398 |
#endif /*T_CFILEMAN_AUX_H*/
|