sl@0
|
1 |
// Copyright (c) 1997-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 "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 |
// The implementation of the transition classes upon the RStringPool class methods.
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//
|
sl@0
|
17 |
|
sl@0
|
18 |
#include "short.h"
|
sl@0
|
19 |
#include "long.h"
|
sl@0
|
20 |
#include "irrelevant.h"
|
sl@0
|
21 |
#include "shortcs.h"
|
sl@0
|
22 |
#include "longcs.h"
|
sl@0
|
23 |
#include "irrelevantcs.h"
|
sl@0
|
24 |
#include "short2.h"
|
sl@0
|
25 |
#include "short3.h"
|
sl@0
|
26 |
#include "short4.h"
|
sl@0
|
27 |
#include "shortcs2.h"
|
sl@0
|
28 |
#include "shortcs3.h"
|
sl@0
|
29 |
#include "shortcs4.h"
|
sl@0
|
30 |
#include "securitypolicypluginstrings.h"
|
sl@0
|
31 |
|
sl@0
|
32 |
// ______________________________________________________________________________
|
sl@0
|
33 |
//
|
sl@0
|
34 |
_LIT(KStringPoolNewLTransition,"CStringPool_NewL_Transition");
|
sl@0
|
35 |
|
sl@0
|
36 |
inline CStringPool_NewL_Transition::CStringPool_NewL_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
37 |
TTransitionValidator& aValidator)
|
sl@0
|
38 |
: CTransitionType(KStringPoolNewLTransition, aUTContext, aValidator)
|
sl@0
|
39 |
{
|
sl@0
|
40 |
// Do nothing here.
|
sl@0
|
41 |
}
|
sl@0
|
42 |
|
sl@0
|
43 |
inline void CStringPool_NewL_Transition::TransitMethodL()
|
sl@0
|
44 |
{
|
sl@0
|
45 |
_LIT(KStringPoolNewLTransitMethod, "CStringPool::NewL transition");
|
sl@0
|
46 |
Context().DataLogger().LogInformation(KStringPoolNewLTransitMethod);
|
sl@0
|
47 |
Context().iStringPool.OpenL();
|
sl@0
|
48 |
RStringPool p = Context().iStringPool;
|
sl@0
|
49 |
|
sl@0
|
50 |
_LIT8(KStringA, "String");
|
sl@0
|
51 |
_LIT8(KStringB, "Another String");
|
sl@0
|
52 |
_LIT8(KStringD, "String");
|
sl@0
|
53 |
|
sl@0
|
54 |
_LIT8(KStringFA, "String");
|
sl@0
|
55 |
_LIT8(KStringFB, "Another String");
|
sl@0
|
56 |
_LIT8(KStringFD, "sTRING");
|
sl@0
|
57 |
|
sl@0
|
58 |
Context().iA = p.OpenStringL(KStringA());
|
sl@0
|
59 |
Context().iB = p.OpenStringL(KStringB());
|
sl@0
|
60 |
Context().iD = p.OpenStringL(KStringD());
|
sl@0
|
61 |
|
sl@0
|
62 |
Context().iFA = p.OpenFStringL(KStringFA());
|
sl@0
|
63 |
Context().iFB = p.OpenFStringL(KStringFB());
|
sl@0
|
64 |
Context().iFD = p.OpenFStringL(KStringFD());
|
sl@0
|
65 |
|
sl@0
|
66 |
Context().iADes.Set(KStringA);
|
sl@0
|
67 |
Context().iBDes.Set(KStringB);
|
sl@0
|
68 |
Context().iDDes.Set(KStringD);
|
sl@0
|
69 |
|
sl@0
|
70 |
Context().iFADes.Set(KStringFA);
|
sl@0
|
71 |
Context().iFBDes.Set(KStringFB);
|
sl@0
|
72 |
Context().iFDDes.Set(KStringFD);
|
sl@0
|
73 |
|
sl@0
|
74 |
Context().iInt = -1;
|
sl@0
|
75 |
Context().iFint = -1;
|
sl@0
|
76 |
}
|
sl@0
|
77 |
|
sl@0
|
78 |
inline CStringPool_UnitTestContext& CStringPool_NewL_Transition::Context() const
|
sl@0
|
79 |
{
|
sl@0
|
80 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
81 |
}
|
sl@0
|
82 |
|
sl@0
|
83 |
// ______________________________________________________________________________
|
sl@0
|
84 |
//
|
sl@0
|
85 |
_LIT(KStringPoolDtorTransition,"CStringPool_Dtor_Transition");
|
sl@0
|
86 |
|
sl@0
|
87 |
inline CStringPool_Dtor_Transition::CStringPool_Dtor_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
88 |
TTransitionValidator& aValidator)
|
sl@0
|
89 |
: CTransitionType(KStringPoolDtorTransition, aUTContext, aValidator)
|
sl@0
|
90 |
{
|
sl@0
|
91 |
// Do nothing here.
|
sl@0
|
92 |
}
|
sl@0
|
93 |
|
sl@0
|
94 |
inline void CStringPool_Dtor_Transition::TransitMethodL()
|
sl@0
|
95 |
{
|
sl@0
|
96 |
_LIT(KStringPoolDtorTransitMethod, "CStringPool::Dtor transition");
|
sl@0
|
97 |
Context().DataLogger().LogInformation(KStringPoolDtorTransitMethod);
|
sl@0
|
98 |
|
sl@0
|
99 |
Context().iA.Close();
|
sl@0
|
100 |
Context().iB.Close();
|
sl@0
|
101 |
Context().iD.Close();
|
sl@0
|
102 |
|
sl@0
|
103 |
Context().iFA.Close();
|
sl@0
|
104 |
Context().iFB.Close();
|
sl@0
|
105 |
Context().iFD.Close();
|
sl@0
|
106 |
|
sl@0
|
107 |
Context().iStringPool.Close();
|
sl@0
|
108 |
|
sl@0
|
109 |
|
sl@0
|
110 |
|
sl@0
|
111 |
}
|
sl@0
|
112 |
|
sl@0
|
113 |
inline CStringPool_UnitTestContext& CStringPool_Dtor_Transition::Context() const
|
sl@0
|
114 |
{
|
sl@0
|
115 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
116 |
}
|
sl@0
|
117 |
|
sl@0
|
118 |
// Add additional Transition class Implementations here...
|
sl@0
|
119 |
|
sl@0
|
120 |
// ______________________________________________________________________________
|
sl@0
|
121 |
//
|
sl@0
|
122 |
_LIT(KRStringPoolAeqATransition,"CRStringPool_AeqA_Transition");
|
sl@0
|
123 |
|
sl@0
|
124 |
inline CStringPool_AeqA_Transition::CStringPool_AeqA_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
125 |
TTransitionValidator& aValidator)
|
sl@0
|
126 |
: CTransitionType(KRStringPoolAeqATransition, aUTContext, aValidator)
|
sl@0
|
127 |
{
|
sl@0
|
128 |
// Do nothing here.
|
sl@0
|
129 |
}
|
sl@0
|
130 |
|
sl@0
|
131 |
inline void CStringPool_AeqA_Transition::TransitMethodL()
|
sl@0
|
132 |
{
|
sl@0
|
133 |
_LIT(KRStringPoolAeqATransitMethod, "CRStringPool::AeqA transition");
|
sl@0
|
134 |
Context().DataLogger().LogInformation(KRStringPoolAeqATransitMethod);
|
sl@0
|
135 |
RString temp = Context().iA;
|
sl@0
|
136 |
Context().iResult = Context().iA == temp;;
|
sl@0
|
137 |
}
|
sl@0
|
138 |
|
sl@0
|
139 |
inline CStringPool_UnitTestContext& CStringPool_AeqA_Transition::Context() const
|
sl@0
|
140 |
{
|
sl@0
|
141 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
142 |
}
|
sl@0
|
143 |
|
sl@0
|
144 |
// ______________________________________________________________________________
|
sl@0
|
145 |
//
|
sl@0
|
146 |
_LIT(KStringPoolAneATransition,"CStringPool_AneA_Transition");
|
sl@0
|
147 |
|
sl@0
|
148 |
inline CStringPool_AneA_Transition::CStringPool_AneA_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
149 |
TTransitionValidator& aValidator)
|
sl@0
|
150 |
: CTransitionType(KStringPoolAneATransition, aUTContext, aValidator)
|
sl@0
|
151 |
{
|
sl@0
|
152 |
// Do nothing here.
|
sl@0
|
153 |
}
|
sl@0
|
154 |
|
sl@0
|
155 |
inline void CStringPool_AneA_Transition::TransitMethodL()
|
sl@0
|
156 |
{
|
sl@0
|
157 |
_LIT(KStringPoolAneATransitMethod, "CStringPool::AneA transition");
|
sl@0
|
158 |
Context().DataLogger().LogInformation(KStringPoolAneATransitMethod);
|
sl@0
|
159 |
RString temp = Context().iA;
|
sl@0
|
160 |
Context().iResult = Context().iA != temp;;
|
sl@0
|
161 |
}
|
sl@0
|
162 |
|
sl@0
|
163 |
inline CStringPool_UnitTestContext& CStringPool_AneA_Transition::Context() const
|
sl@0
|
164 |
{
|
sl@0
|
165 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
166 |
}
|
sl@0
|
167 |
|
sl@0
|
168 |
// ______________________________________________________________________________
|
sl@0
|
169 |
//
|
sl@0
|
170 |
_LIT(KStringPoolAeqBTransition,"CStringPool_AeqB_Transition");
|
sl@0
|
171 |
|
sl@0
|
172 |
inline CStringPool_AeqB_Transition::CStringPool_AeqB_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
173 |
TTransitionValidator& aValidator)
|
sl@0
|
174 |
: CTransitionType(KStringPoolAeqBTransition, aUTContext, aValidator)
|
sl@0
|
175 |
{
|
sl@0
|
176 |
// Do nothing here.
|
sl@0
|
177 |
}
|
sl@0
|
178 |
|
sl@0
|
179 |
inline void CStringPool_AeqB_Transition::TransitMethodL()
|
sl@0
|
180 |
{
|
sl@0
|
181 |
_LIT(KStringPoolAeqBTransitMethod, "CStringPool::AeqB transition");
|
sl@0
|
182 |
Context().DataLogger().LogInformation(KStringPoolAeqBTransitMethod);
|
sl@0
|
183 |
Context().iResult = Context().iA == Context().iB;
|
sl@0
|
184 |
}
|
sl@0
|
185 |
|
sl@0
|
186 |
inline CStringPool_UnitTestContext& CStringPool_AeqB_Transition::Context() const
|
sl@0
|
187 |
{
|
sl@0
|
188 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
189 |
}
|
sl@0
|
190 |
|
sl@0
|
191 |
// ______________________________________________________________________________
|
sl@0
|
192 |
//
|
sl@0
|
193 |
_LIT(KStringPoolAneBTransition,"CStringPool_AneB_Transition");
|
sl@0
|
194 |
|
sl@0
|
195 |
inline CStringPool_AneB_Transition::CStringPool_AneB_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
196 |
TTransitionValidator& aValidator)
|
sl@0
|
197 |
: CTransitionType(KStringPoolAneBTransition, aUTContext, aValidator)
|
sl@0
|
198 |
{
|
sl@0
|
199 |
// Do nothing here.
|
sl@0
|
200 |
}
|
sl@0
|
201 |
|
sl@0
|
202 |
inline void CStringPool_AneB_Transition::TransitMethodL()
|
sl@0
|
203 |
{
|
sl@0
|
204 |
_LIT(KStringPoolAneBTransitMethod, "CStringPool::AneB transition");
|
sl@0
|
205 |
Context().DataLogger().LogInformation(KStringPoolAneBTransitMethod);
|
sl@0
|
206 |
Context().iResult = Context().iA != Context().iB;
|
sl@0
|
207 |
}
|
sl@0
|
208 |
|
sl@0
|
209 |
inline CStringPool_UnitTestContext& CStringPool_AneB_Transition::Context() const
|
sl@0
|
210 |
{
|
sl@0
|
211 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
212 |
}
|
sl@0
|
213 |
|
sl@0
|
214 |
// ______________________________________________________________________________
|
sl@0
|
215 |
//
|
sl@0
|
216 |
_LIT(KStringPoolAeqDTransition,"CStringPool_AeqD_Transition");
|
sl@0
|
217 |
|
sl@0
|
218 |
inline CStringPool_AeqD_Transition::CStringPool_AeqD_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
219 |
TTransitionValidator& aValidator)
|
sl@0
|
220 |
: CTransitionType(KStringPoolAeqDTransition, aUTContext, aValidator)
|
sl@0
|
221 |
{
|
sl@0
|
222 |
// Do nothing here.
|
sl@0
|
223 |
}
|
sl@0
|
224 |
|
sl@0
|
225 |
inline void CStringPool_AeqD_Transition::TransitMethodL()
|
sl@0
|
226 |
{
|
sl@0
|
227 |
_LIT(KStringPoolAeqDTransitMethod, "CStringPool::AeqD transition");
|
sl@0
|
228 |
Context().DataLogger().LogInformation(KStringPoolAeqDTransitMethod);
|
sl@0
|
229 |
Context().iResult = Context().iA == Context().iD;
|
sl@0
|
230 |
}
|
sl@0
|
231 |
|
sl@0
|
232 |
inline CStringPool_UnitTestContext& CStringPool_AeqD_Transition::Context() const
|
sl@0
|
233 |
{
|
sl@0
|
234 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
235 |
}
|
sl@0
|
236 |
|
sl@0
|
237 |
// ______________________________________________________________________________
|
sl@0
|
238 |
//
|
sl@0
|
239 |
_LIT(KStringPoolAneDTransition,"CStringPool_AneD_Transition");
|
sl@0
|
240 |
|
sl@0
|
241 |
inline CStringPool_AneD_Transition::CStringPool_AneD_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
242 |
TTransitionValidator& aValidator)
|
sl@0
|
243 |
: CTransitionType(KStringPoolAneDTransition, aUTContext, aValidator)
|
sl@0
|
244 |
{
|
sl@0
|
245 |
// Do nothing here.
|
sl@0
|
246 |
}
|
sl@0
|
247 |
|
sl@0
|
248 |
inline void CStringPool_AneD_Transition::TransitMethodL()
|
sl@0
|
249 |
{
|
sl@0
|
250 |
_LIT(KStringPoolAneDTransitMethod, "CStringPool::AneD transition");
|
sl@0
|
251 |
Context().DataLogger().LogInformation(KStringPoolAneDTransitMethod);
|
sl@0
|
252 |
Context().iResult = Context().iA != Context().iD;
|
sl@0
|
253 |
}
|
sl@0
|
254 |
|
sl@0
|
255 |
inline CStringPool_UnitTestContext& CStringPool_AneD_Transition::Context() const
|
sl@0
|
256 |
{
|
sl@0
|
257 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
258 |
}
|
sl@0
|
259 |
|
sl@0
|
260 |
|
sl@0
|
261 |
// ______________________________________________________________________________
|
sl@0
|
262 |
//
|
sl@0
|
263 |
_LIT(KStringPoolDescTransition,"CStringPool_Desc_Transition");
|
sl@0
|
264 |
|
sl@0
|
265 |
inline CStringPool_Desc_Transition::CStringPool_Desc_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
266 |
TTransitionValidator& aValidator)
|
sl@0
|
267 |
: CTransitionType(KStringPoolDescTransition, aUTContext, aValidator)
|
sl@0
|
268 |
{
|
sl@0
|
269 |
// Do nothing here.
|
sl@0
|
270 |
}
|
sl@0
|
271 |
|
sl@0
|
272 |
inline void CStringPool_Desc_Transition::TransitMethodL()
|
sl@0
|
273 |
{
|
sl@0
|
274 |
_LIT(KStringPoolDescTransitMethod, "CStringPool::Desc transition");
|
sl@0
|
275 |
Context().DataLogger().LogInformation(KStringPoolDescTransitMethod);
|
sl@0
|
276 |
Context().iResult = Context().iADes.Compare(Context().iA.DesC());
|
sl@0
|
277 |
}
|
sl@0
|
278 |
|
sl@0
|
279 |
inline CStringPool_UnitTestContext& CStringPool_Desc_Transition::Context() const
|
sl@0
|
280 |
{
|
sl@0
|
281 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
282 |
}
|
sl@0
|
283 |
|
sl@0
|
284 |
// ______________________________________________________________________________
|
sl@0
|
285 |
//
|
sl@0
|
286 |
_LIT(KStringPoolCopyTransition,"CStringPool_Copy_Transition");
|
sl@0
|
287 |
|
sl@0
|
288 |
inline CStringPool_Copy_Transition::CStringPool_Copy_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
289 |
TTransitionValidator& aValidator)
|
sl@0
|
290 |
: CTransitionType(KStringPoolCopyTransition, aUTContext, aValidator)
|
sl@0
|
291 |
{
|
sl@0
|
292 |
// Do nothing here.
|
sl@0
|
293 |
}
|
sl@0
|
294 |
|
sl@0
|
295 |
inline void CStringPool_Copy_Transition::TransitMethodL()
|
sl@0
|
296 |
{
|
sl@0
|
297 |
_LIT(KStringPoolCopyTransitMethod, "CStringPool::Copy transition");
|
sl@0
|
298 |
Context().DataLogger().LogInformation(KStringPoolCopyTransitMethod);
|
sl@0
|
299 |
Context().iC = Context().iA.Copy();
|
sl@0
|
300 |
Context().iResult = Context().iA == Context().iC;
|
sl@0
|
301 |
}
|
sl@0
|
302 |
|
sl@0
|
303 |
inline CStringPool_UnitTestContext& CStringPool_Copy_Transition::Context() const
|
sl@0
|
304 |
{
|
sl@0
|
305 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
306 |
}
|
sl@0
|
307 |
|
sl@0
|
308 |
|
sl@0
|
309 |
// ______________________________________________________________________________
|
sl@0
|
310 |
//
|
sl@0
|
311 |
_LIT(KStringPoolCDesCTransition,"CStringPool_CDesC_Transition");
|
sl@0
|
312 |
|
sl@0
|
313 |
inline CStringPool_CDesC_Transition::CStringPool_CDesC_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
314 |
TTransitionValidator& aValidator)
|
sl@0
|
315 |
: CTransitionType(KStringPoolCDesCTransition, aUTContext, aValidator)
|
sl@0
|
316 |
{
|
sl@0
|
317 |
// Do nothing here.
|
sl@0
|
318 |
}
|
sl@0
|
319 |
|
sl@0
|
320 |
inline void CStringPool_CDesC_Transition::TransitMethodL()
|
sl@0
|
321 |
{
|
sl@0
|
322 |
_LIT(KStringPoolCDesCTransitMethod, "CStringPool::CDesC transition");
|
sl@0
|
323 |
Context().DataLogger().LogInformation(KStringPoolCDesCTransitMethod);
|
sl@0
|
324 |
Context().iResult = Context().iADes.Compare(Context().iC.DesC());
|
sl@0
|
325 |
}
|
sl@0
|
326 |
|
sl@0
|
327 |
inline CStringPool_UnitTestContext& CStringPool_CDesC_Transition::Context() const
|
sl@0
|
328 |
{
|
sl@0
|
329 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
330 |
}
|
sl@0
|
331 |
|
sl@0
|
332 |
// ______________________________________________________________________________
|
sl@0
|
333 |
//
|
sl@0
|
334 |
_LIT(KStringPoolCloseTransition,"CStringPool_Close_Transition");
|
sl@0
|
335 |
|
sl@0
|
336 |
inline CStringPool_Close_Transition::CStringPool_Close_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
337 |
TTransitionValidator& aValidator)
|
sl@0
|
338 |
: CTransitionType(KStringPoolCloseTransition, aUTContext, aValidator)
|
sl@0
|
339 |
{
|
sl@0
|
340 |
// Do nothing here.
|
sl@0
|
341 |
}
|
sl@0
|
342 |
|
sl@0
|
343 |
inline void CStringPool_Close_Transition::TransitMethodL()
|
sl@0
|
344 |
{
|
sl@0
|
345 |
_LIT(KStringPoolCloseTransitMethod, "CStringPool::Close transition");
|
sl@0
|
346 |
Context().DataLogger().LogInformation(KStringPoolCloseTransitMethod);
|
sl@0
|
347 |
Context().iC.Close();
|
sl@0
|
348 |
}
|
sl@0
|
349 |
|
sl@0
|
350 |
inline CStringPool_UnitTestContext& CStringPool_Close_Transition::Context() const
|
sl@0
|
351 |
{
|
sl@0
|
352 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
353 |
}
|
sl@0
|
354 |
|
sl@0
|
355 |
// ______________________________________________________________________________
|
sl@0
|
356 |
//
|
sl@0
|
357 |
_LIT(KStringPoolIntTransition,"CStringPool_Int_Transition");
|
sl@0
|
358 |
|
sl@0
|
359 |
inline CStringPool_Int_Transition::CStringPool_Int_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
360 |
TTransitionValidator& aValidator)
|
sl@0
|
361 |
: CTransitionType(KStringPoolIntTransition, aUTContext, aValidator)
|
sl@0
|
362 |
{
|
sl@0
|
363 |
// Do nothing here.
|
sl@0
|
364 |
}
|
sl@0
|
365 |
|
sl@0
|
366 |
inline void CStringPool_Int_Transition::TransitMethodL()
|
sl@0
|
367 |
{
|
sl@0
|
368 |
_LIT(KStringPoolIntTransitMethod, "aaCStringPool::Int transition");
|
sl@0
|
369 |
Context().DataLogger().LogInformation(KStringPoolIntTransitMethod);
|
sl@0
|
370 |
Context().iResult = Context().iTE.Index(Context().iTestTable) == Context().iInt;
|
sl@0
|
371 |
}
|
sl@0
|
372 |
|
sl@0
|
373 |
inline CStringPool_UnitTestContext& CStringPool_Int_Transition::Context() const
|
sl@0
|
374 |
{
|
sl@0
|
375 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
376 |
}
|
sl@0
|
377 |
// ______________________________________________________________________________
|
sl@0
|
378 |
//
|
sl@0
|
379 |
_LIT(KStringPoolStringTokenTransition,"CStringPool_StringToken_Transition");
|
sl@0
|
380 |
|
sl@0
|
381 |
inline CStringPool_StringToken_Transition::CStringPool_StringToken_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
382 |
TTransitionValidator& aValidator)
|
sl@0
|
383 |
: CTransitionType(KStringPoolStringTokenTransition, aUTContext, aValidator)
|
sl@0
|
384 |
{
|
sl@0
|
385 |
// Do nothing here.
|
sl@0
|
386 |
}
|
sl@0
|
387 |
|
sl@0
|
388 |
inline void CStringPool_StringToken_Transition::TransitMethodL()
|
sl@0
|
389 |
{
|
sl@0
|
390 |
_LIT(KStringPoolStringTokenTransitMethod, "CStringPool::StringToken transition");
|
sl@0
|
391 |
Context().DataLogger().LogInformation(KStringPoolStringTokenTransitMethod);
|
sl@0
|
392 |
RStringToken t = Context().iA;
|
sl@0
|
393 |
Context().iC = Context().iStringPool.String(t);
|
sl@0
|
394 |
Context().iResult = Context().iC == Context().iA;
|
sl@0
|
395 |
}
|
sl@0
|
396 |
|
sl@0
|
397 |
inline CStringPool_UnitTestContext& CStringPool_StringToken_Transition::Context() const
|
sl@0
|
398 |
{
|
sl@0
|
399 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
400 |
}
|
sl@0
|
401 |
|
sl@0
|
402 |
|
sl@0
|
403 |
|
sl@0
|
404 |
|
sl@0
|
405 |
|
sl@0
|
406 |
|
sl@0
|
407 |
|
sl@0
|
408 |
|
sl@0
|
409 |
|
sl@0
|
410 |
|
sl@0
|
411 |
|
sl@0
|
412 |
|
sl@0
|
413 |
|
sl@0
|
414 |
|
sl@0
|
415 |
|
sl@0
|
416 |
|
sl@0
|
417 |
|
sl@0
|
418 |
|
sl@0
|
419 |
|
sl@0
|
420 |
|
sl@0
|
421 |
|
sl@0
|
422 |
|
sl@0
|
423 |
|
sl@0
|
424 |
|
sl@0
|
425 |
|
sl@0
|
426 |
|
sl@0
|
427 |
|
sl@0
|
428 |
|
sl@0
|
429 |
|
sl@0
|
430 |
|
sl@0
|
431 |
|
sl@0
|
432 |
|
sl@0
|
433 |
|
sl@0
|
434 |
|
sl@0
|
435 |
|
sl@0
|
436 |
|
sl@0
|
437 |
|
sl@0
|
438 |
|
sl@0
|
439 |
|
sl@0
|
440 |
|
sl@0
|
441 |
|
sl@0
|
442 |
|
sl@0
|
443 |
|
sl@0
|
444 |
|
sl@0
|
445 |
|
sl@0
|
446 |
|
sl@0
|
447 |
|
sl@0
|
448 |
|
sl@0
|
449 |
|
sl@0
|
450 |
|
sl@0
|
451 |
|
sl@0
|
452 |
|
sl@0
|
453 |
|
sl@0
|
454 |
|
sl@0
|
455 |
|
sl@0
|
456 |
// ______________________________________________________________________________
|
sl@0
|
457 |
//
|
sl@0
|
458 |
_LIT(KRstringPoolFAeqATransition,"CRStringPool_AeqA_Transition");
|
sl@0
|
459 |
|
sl@0
|
460 |
inline CStringPool_FAeqA_Transition::CStringPool_FAeqA_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
461 |
TTransitionValidator& aValidator)
|
sl@0
|
462 |
: CTransitionType(KRstringPoolFAeqATransition, aUTContext, aValidator)
|
sl@0
|
463 |
{
|
sl@0
|
464 |
// Do nothing here.
|
sl@0
|
465 |
}
|
sl@0
|
466 |
|
sl@0
|
467 |
inline void CStringPool_FAeqA_Transition::TransitMethodL()
|
sl@0
|
468 |
{
|
sl@0
|
469 |
_LIT(KRstringPoolFAeqATransitMethod, "CRStringPool::AeqA transition");
|
sl@0
|
470 |
Context().DataLogger().LogInformation(KRstringPoolFAeqATransitMethod);
|
sl@0
|
471 |
RStringF temp = Context().iFA;
|
sl@0
|
472 |
Context().iResult = Context().iFA == temp;;
|
sl@0
|
473 |
}
|
sl@0
|
474 |
|
sl@0
|
475 |
inline CStringPool_UnitTestContext& CStringPool_FAeqA_Transition::Context() const
|
sl@0
|
476 |
{
|
sl@0
|
477 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
478 |
}
|
sl@0
|
479 |
|
sl@0
|
480 |
// ______________________________________________________________________________
|
sl@0
|
481 |
//
|
sl@0
|
482 |
_LIT(KStringPoolFAneATransition,"CStringPool_FAneA_Transition");
|
sl@0
|
483 |
|
sl@0
|
484 |
inline CStringPool_FAneA_Transition::CStringPool_FAneA_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
485 |
TTransitionValidator& aValidator)
|
sl@0
|
486 |
: CTransitionType(KStringPoolFAneATransition, aUTContext, aValidator)
|
sl@0
|
487 |
{
|
sl@0
|
488 |
// Do nothing here.
|
sl@0
|
489 |
}
|
sl@0
|
490 |
|
sl@0
|
491 |
inline void CStringPool_FAneA_Transition::TransitMethodL()
|
sl@0
|
492 |
{
|
sl@0
|
493 |
_LIT(KStringPoolFAneATransitMethod, "CStringPoolF::AneA transition");
|
sl@0
|
494 |
Context().DataLogger().LogInformation(KStringPoolFAneATransitMethod);
|
sl@0
|
495 |
RStringF temp = Context().iFA;
|
sl@0
|
496 |
Context().iResult = Context().iFA != temp;;
|
sl@0
|
497 |
}
|
sl@0
|
498 |
|
sl@0
|
499 |
inline CStringPool_UnitTestContext& CStringPool_FAneA_Transition::Context() const
|
sl@0
|
500 |
{
|
sl@0
|
501 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
502 |
}
|
sl@0
|
503 |
|
sl@0
|
504 |
// ______________________________________________________________________________
|
sl@0
|
505 |
//
|
sl@0
|
506 |
_LIT(KStringPoolFAeqBTransition,"CStringPool_FAeqB_Transition");
|
sl@0
|
507 |
|
sl@0
|
508 |
inline CStringPool_FAeqB_Transition::CStringPool_FAeqB_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
509 |
TTransitionValidator& aValidator)
|
sl@0
|
510 |
: CTransitionType(KStringPoolFAeqBTransition, aUTContext, aValidator)
|
sl@0
|
511 |
{
|
sl@0
|
512 |
// Do nothing here.
|
sl@0
|
513 |
}
|
sl@0
|
514 |
|
sl@0
|
515 |
inline void CStringPool_FAeqB_Transition::TransitMethodL()
|
sl@0
|
516 |
{
|
sl@0
|
517 |
_LIT(KStringPoolFAeqBTransitMethod, "CStringPoolF::AeqB transition");
|
sl@0
|
518 |
Context().DataLogger().LogInformation(KStringPoolFAeqBTransitMethod);
|
sl@0
|
519 |
Context().iResult = Context().iFA == Context().iFB;
|
sl@0
|
520 |
}
|
sl@0
|
521 |
|
sl@0
|
522 |
inline CStringPool_UnitTestContext& CStringPool_FAeqB_Transition::Context() const
|
sl@0
|
523 |
{
|
sl@0
|
524 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
525 |
}
|
sl@0
|
526 |
|
sl@0
|
527 |
// ______________________________________________________________________________
|
sl@0
|
528 |
//
|
sl@0
|
529 |
_LIT(KStringPoolFAneBTransition,"CStringPool_FAneB_Transition");
|
sl@0
|
530 |
|
sl@0
|
531 |
inline CStringPool_FAneB_Transition::CStringPool_FAneB_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
532 |
TTransitionValidator& aValidator)
|
sl@0
|
533 |
: CTransitionType(KStringPoolFAneBTransition, aUTContext, aValidator)
|
sl@0
|
534 |
{
|
sl@0
|
535 |
// Do nothing here.
|
sl@0
|
536 |
}
|
sl@0
|
537 |
|
sl@0
|
538 |
inline void CStringPool_FAneB_Transition::TransitMethodL()
|
sl@0
|
539 |
{
|
sl@0
|
540 |
_LIT(KStringPoolFAneBTransitMethod, "CStringPoolF::AneB transition");
|
sl@0
|
541 |
Context().DataLogger().LogInformation(KStringPoolFAneBTransitMethod);
|
sl@0
|
542 |
Context().iResult = Context().iFA != Context().iFB;
|
sl@0
|
543 |
}
|
sl@0
|
544 |
|
sl@0
|
545 |
inline CStringPool_UnitTestContext& CStringPool_FAneB_Transition::Context() const
|
sl@0
|
546 |
{
|
sl@0
|
547 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
548 |
}
|
sl@0
|
549 |
|
sl@0
|
550 |
// ______________________________________________________________________________
|
sl@0
|
551 |
//
|
sl@0
|
552 |
_LIT(KStringPoolFAeqDTransition,"CStringPool_FAeqD_Transition");
|
sl@0
|
553 |
|
sl@0
|
554 |
inline CStringPool_FAeqD_Transition::CStringPool_FAeqD_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
555 |
TTransitionValidator& aValidator)
|
sl@0
|
556 |
: CTransitionType(KStringPoolFAeqDTransition, aUTContext, aValidator)
|
sl@0
|
557 |
{
|
sl@0
|
558 |
// Do nothing here.
|
sl@0
|
559 |
}
|
sl@0
|
560 |
|
sl@0
|
561 |
inline void CStringPool_FAeqD_Transition::TransitMethodL()
|
sl@0
|
562 |
{
|
sl@0
|
563 |
_LIT(KStringPoolFAeqDTransitMethod, "CStringPoolF::AeqD transition");
|
sl@0
|
564 |
Context().DataLogger().LogInformation(KStringPoolFAeqDTransitMethod);
|
sl@0
|
565 |
Context().iResult = Context().iFA == Context().iFD;
|
sl@0
|
566 |
}
|
sl@0
|
567 |
|
sl@0
|
568 |
inline CStringPool_UnitTestContext& CStringPool_FAeqD_Transition::Context() const
|
sl@0
|
569 |
{
|
sl@0
|
570 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
571 |
}
|
sl@0
|
572 |
|
sl@0
|
573 |
// ______________________________________________________________________________
|
sl@0
|
574 |
//
|
sl@0
|
575 |
_LIT(KStringPoolFAneDTransition,"CStringPool_FAneD_Transition");
|
sl@0
|
576 |
|
sl@0
|
577 |
inline CStringPool_FAneD_Transition::CStringPool_FAneD_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
578 |
TTransitionValidator& aValidator)
|
sl@0
|
579 |
: CTransitionType(KStringPoolFAneDTransition, aUTContext, aValidator)
|
sl@0
|
580 |
{
|
sl@0
|
581 |
// Do nothing here.
|
sl@0
|
582 |
}
|
sl@0
|
583 |
|
sl@0
|
584 |
inline void CStringPool_FAneD_Transition::TransitMethodL()
|
sl@0
|
585 |
{
|
sl@0
|
586 |
_LIT(KStringPoolFAneDTransitMethod, "CStringPoolF::AneD transition");
|
sl@0
|
587 |
Context().DataLogger().LogInformation(KStringPoolFAneDTransitMethod);
|
sl@0
|
588 |
Context().iResult = Context().iFA != Context().iFD;
|
sl@0
|
589 |
}
|
sl@0
|
590 |
|
sl@0
|
591 |
inline CStringPool_UnitTestContext& CStringPool_FAneD_Transition::Context() const
|
sl@0
|
592 |
{
|
sl@0
|
593 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
594 |
}
|
sl@0
|
595 |
|
sl@0
|
596 |
|
sl@0
|
597 |
// ______________________________________________________________________________
|
sl@0
|
598 |
//
|
sl@0
|
599 |
_LIT(KStringPoolFDescTransition,"CStringPool_FDesc_Transition");
|
sl@0
|
600 |
|
sl@0
|
601 |
inline CStringPool_FDesc_Transition::CStringPool_FDesc_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
602 |
TTransitionValidator& aValidator)
|
sl@0
|
603 |
: CTransitionType(KStringPoolFDescTransition, aUTContext, aValidator)
|
sl@0
|
604 |
{
|
sl@0
|
605 |
// Do nothing here.
|
sl@0
|
606 |
}
|
sl@0
|
607 |
|
sl@0
|
608 |
inline void CStringPool_FDesc_Transition::TransitMethodL()
|
sl@0
|
609 |
{
|
sl@0
|
610 |
_LIT(KStringPoolFDescTransitMethod, "CStringPoolF::Desc transition");
|
sl@0
|
611 |
Context().DataLogger().LogInformation(KStringPoolFDescTransitMethod);
|
sl@0
|
612 |
Context().iResult = Context().iADes.Compare(Context().iFA.DesC());
|
sl@0
|
613 |
}
|
sl@0
|
614 |
|
sl@0
|
615 |
inline CStringPool_UnitTestContext& CStringPool_FDesc_Transition::Context() const
|
sl@0
|
616 |
{
|
sl@0
|
617 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
618 |
}
|
sl@0
|
619 |
|
sl@0
|
620 |
// ______________________________________________________________________________
|
sl@0
|
621 |
//
|
sl@0
|
622 |
_LIT(KStringPoolFCopyTransition,"CStringPool_FCopy_Transition");
|
sl@0
|
623 |
|
sl@0
|
624 |
inline CStringPool_FCopy_Transition::CStringPool_FCopy_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
625 |
TTransitionValidator& aValidator)
|
sl@0
|
626 |
: CTransitionType(KStringPoolFCopyTransition, aUTContext, aValidator)
|
sl@0
|
627 |
{
|
sl@0
|
628 |
// Do nothing here.
|
sl@0
|
629 |
}
|
sl@0
|
630 |
|
sl@0
|
631 |
inline void CStringPool_FCopy_Transition::TransitMethodL()
|
sl@0
|
632 |
{
|
sl@0
|
633 |
_LIT(KStringPoolFCopyTransitMethod, "CStringPoolF::Copy transition");
|
sl@0
|
634 |
Context().DataLogger().LogInformation(KStringPoolFCopyTransitMethod);
|
sl@0
|
635 |
Context().iFC = Context().iFA.Copy();
|
sl@0
|
636 |
Context().iResult = Context().iFA == Context().iFC;
|
sl@0
|
637 |
}
|
sl@0
|
638 |
|
sl@0
|
639 |
inline CStringPool_UnitTestContext& CStringPool_FCopy_Transition::Context() const
|
sl@0
|
640 |
{
|
sl@0
|
641 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
642 |
}
|
sl@0
|
643 |
|
sl@0
|
644 |
|
sl@0
|
645 |
// ______________________________________________________________________________
|
sl@0
|
646 |
//
|
sl@0
|
647 |
_LIT(KStringPoolFCDesCTransition,"CStringPool_FCDesC_Transition");
|
sl@0
|
648 |
|
sl@0
|
649 |
inline CStringPool_FCDesC_Transition::CStringPool_FCDesC_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
650 |
TTransitionValidator& aValidator)
|
sl@0
|
651 |
: CTransitionType(KStringPoolFCDesCTransition, aUTContext, aValidator)
|
sl@0
|
652 |
{
|
sl@0
|
653 |
// Do nothing here.
|
sl@0
|
654 |
}
|
sl@0
|
655 |
|
sl@0
|
656 |
inline void CStringPool_FCDesC_Transition::TransitMethodL()
|
sl@0
|
657 |
{
|
sl@0
|
658 |
_LIT(KStringPoolFCDesCTransitMethod, "CStringPoolF::CDesC transition");
|
sl@0
|
659 |
Context().DataLogger().LogInformation(KStringPoolFCDesCTransitMethod);
|
sl@0
|
660 |
Context().iResult = Context().iADes.Compare(Context().iFC.DesC());
|
sl@0
|
661 |
}
|
sl@0
|
662 |
|
sl@0
|
663 |
inline CStringPool_UnitTestContext& CStringPool_FCDesC_Transition::Context() const
|
sl@0
|
664 |
{
|
sl@0
|
665 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
666 |
}
|
sl@0
|
667 |
|
sl@0
|
668 |
// ______________________________________________________________________________
|
sl@0
|
669 |
//
|
sl@0
|
670 |
_LIT(KStringPoolFCloseTransition,"CStringPool_FClose_Transition");
|
sl@0
|
671 |
|
sl@0
|
672 |
inline CStringPool_FClose_Transition::CStringPool_FClose_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
673 |
TTransitionValidator& aValidator)
|
sl@0
|
674 |
: CTransitionType(KStringPoolFCloseTransition, aUTContext, aValidator)
|
sl@0
|
675 |
{
|
sl@0
|
676 |
// Do nothing here.
|
sl@0
|
677 |
}
|
sl@0
|
678 |
|
sl@0
|
679 |
inline void CStringPool_FClose_Transition::TransitMethodL()
|
sl@0
|
680 |
{
|
sl@0
|
681 |
_LIT(KStringPoolFCloseTransitMethod, "CStringPoolF::Close transition");
|
sl@0
|
682 |
Context().DataLogger().LogInformation(KStringPoolFCloseTransitMethod);
|
sl@0
|
683 |
Context().iFC.Close();
|
sl@0
|
684 |
}
|
sl@0
|
685 |
|
sl@0
|
686 |
inline CStringPool_UnitTestContext& CStringPool_FClose_Transition::Context() const
|
sl@0
|
687 |
{
|
sl@0
|
688 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
689 |
}
|
sl@0
|
690 |
|
sl@0
|
691 |
// ______________________________________________________________________________
|
sl@0
|
692 |
//
|
sl@0
|
693 |
_LIT(KStringPoolFIntTransition,"CStringPool_FInt_Transition");
|
sl@0
|
694 |
|
sl@0
|
695 |
inline CStringPool_FInt_Transition::CStringPool_FInt_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
696 |
TTransitionValidator& aValidator)
|
sl@0
|
697 |
: CTransitionType(KStringPoolFIntTransition, aUTContext, aValidator)
|
sl@0
|
698 |
{
|
sl@0
|
699 |
// Do nothing here.
|
sl@0
|
700 |
}
|
sl@0
|
701 |
|
sl@0
|
702 |
inline void CStringPool_FInt_Transition::TransitMethodL()
|
sl@0
|
703 |
{
|
sl@0
|
704 |
_LIT(KStringPoolFIntTransitMethod, "CStringPoolF::Int transition");
|
sl@0
|
705 |
Context().DataLogger().LogInformation(KStringPoolFIntTransitMethod);
|
sl@0
|
706 |
Context().iResult = Context().iTFE.Index(Context().iTestTable) == Context().iFint;
|
sl@0
|
707 |
}
|
sl@0
|
708 |
|
sl@0
|
709 |
inline CStringPool_UnitTestContext& CStringPool_FInt_Transition::Context() const
|
sl@0
|
710 |
{
|
sl@0
|
711 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
712 |
}
|
sl@0
|
713 |
// ______________________________________________________________________________
|
sl@0
|
714 |
//
|
sl@0
|
715 |
_LIT(KStringPoolFStringTokenTransition,"CStringPool_FStringToken_Transition");
|
sl@0
|
716 |
|
sl@0
|
717 |
inline CStringPool_FStringToken_Transition::CStringPool_FStringToken_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
718 |
TTransitionValidator& aValidator)
|
sl@0
|
719 |
: CTransitionType(KStringPoolFStringTokenTransition, aUTContext, aValidator)
|
sl@0
|
720 |
{
|
sl@0
|
721 |
// Do nothing here.
|
sl@0
|
722 |
}
|
sl@0
|
723 |
|
sl@0
|
724 |
inline void CStringPool_FStringToken_Transition::TransitMethodL()
|
sl@0
|
725 |
{
|
sl@0
|
726 |
_LIT(KStringPoolFStringTokenTransitMethod, "CStringPoolF::StringToken transition");
|
sl@0
|
727 |
Context().DataLogger().LogInformation(KStringPoolFStringTokenTransitMethod);
|
sl@0
|
728 |
RStringTokenF t = Context().iFA;
|
sl@0
|
729 |
Context().iFC = Context().iStringPool.StringF(t);
|
sl@0
|
730 |
Context().iResult = Context().iFC == Context().iFA;
|
sl@0
|
731 |
}
|
sl@0
|
732 |
|
sl@0
|
733 |
inline CStringPool_UnitTestContext& CStringPool_FStringToken_Transition::Context() const
|
sl@0
|
734 |
{
|
sl@0
|
735 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
736 |
}
|
sl@0
|
737 |
// ______________________________________________________________________________
|
sl@0
|
738 |
//
|
sl@0
|
739 |
_LIT(KStringPoolSmallCtorTransition,"CStringPool_ShortCtor_Transition");
|
sl@0
|
740 |
|
sl@0
|
741 |
inline CStringPool_ShortCtor_Transition::CStringPool_ShortCtor_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
742 |
TTransitionValidator& aValidator)
|
sl@0
|
743 |
: CTransitionType(KStringPoolSmallCtorTransition, aUTContext, aValidator)
|
sl@0
|
744 |
{
|
sl@0
|
745 |
// Do nothing here.
|
sl@0
|
746 |
}
|
sl@0
|
747 |
|
sl@0
|
748 |
inline void CStringPool_ShortCtor_Transition::TransitMethodL()
|
sl@0
|
749 |
{
|
sl@0
|
750 |
_LIT(KStringPoolSmallCtorTransitMethod, "CStringPool::SmallCtor transition");
|
sl@0
|
751 |
Context().DataLogger().LogInformation(KStringPoolSmallCtorTransitMethod);
|
sl@0
|
752 |
|
sl@0
|
753 |
//Set the table used in this test
|
sl@0
|
754 |
Context().iTestTable=Short::Table;
|
sl@0
|
755 |
Context().iStringPool.OpenL(Context().iTestTable);
|
sl@0
|
756 |
RStringPool p = Context().iStringPool;
|
sl@0
|
757 |
|
sl@0
|
758 |
_LIT8(KStringA, "String");
|
sl@0
|
759 |
_LIT8(KStringB, "Another String");
|
sl@0
|
760 |
_LIT8(KStringD, "String");
|
sl@0
|
761 |
|
sl@0
|
762 |
_LIT8(KStringFA, "String");
|
sl@0
|
763 |
_LIT8(KStringFB, "Another String");
|
sl@0
|
764 |
_LIT8(KStringFD, "sTRING");
|
sl@0
|
765 |
|
sl@0
|
766 |
|
sl@0
|
767 |
Context().iA = p.OpenStringL(KStringA());
|
sl@0
|
768 |
CleanupClosePushL(Context().iA);
|
sl@0
|
769 |
Context().iB = p.OpenStringL(KStringB());
|
sl@0
|
770 |
CleanupClosePushL(Context().iB);
|
sl@0
|
771 |
Context().iD = p.OpenStringL(KStringD());
|
sl@0
|
772 |
CleanupClosePushL(Context().iD);
|
sl@0
|
773 |
|
sl@0
|
774 |
Context().iFA = p.OpenFStringL(KStringFA());
|
sl@0
|
775 |
CleanupClosePushL(Context().iFA);
|
sl@0
|
776 |
Context().iFB = p.OpenFStringL(KStringFB());
|
sl@0
|
777 |
CleanupClosePushL(Context().iFB);
|
sl@0
|
778 |
Context().iFD = p.OpenFStringL(KStringFD());
|
sl@0
|
779 |
CleanupClosePushL(Context().iFD);
|
sl@0
|
780 |
|
sl@0
|
781 |
|
sl@0
|
782 |
// Context().iTE = p.String(0,Context().iTestTable);
|
sl@0
|
783 |
Context().iTFE = p.StringF(0,Context().iTestTable);
|
sl@0
|
784 |
|
sl@0
|
785 |
// Create an empty string
|
sl@0
|
786 |
Context().iEmptyOne = RStringF() ;
|
sl@0
|
787 |
|
sl@0
|
788 |
|
sl@0
|
789 |
Context().iADes.Set(KStringA);
|
sl@0
|
790 |
Context().iBDes.Set(KStringB);
|
sl@0
|
791 |
Context().iDDes.Set(KStringD);
|
sl@0
|
792 |
|
sl@0
|
793 |
Context().iFADes.Set(KStringFA);
|
sl@0
|
794 |
Context().iFBDes.Set(KStringFB);
|
sl@0
|
795 |
Context().iFDDes.Set(KStringFD);
|
sl@0
|
796 |
|
sl@0
|
797 |
Context().iInt = 0;
|
sl@0
|
798 |
Context().iFint = 0;
|
sl@0
|
799 |
Context().iNotFound = -1;
|
sl@0
|
800 |
CleanupStack::Pop(6);
|
sl@0
|
801 |
}
|
sl@0
|
802 |
|
sl@0
|
803 |
inline CStringPool_UnitTestContext& CStringPool_ShortCtor_Transition::Context() const
|
sl@0
|
804 |
{
|
sl@0
|
805 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
806 |
}
|
sl@0
|
807 |
|
sl@0
|
808 |
// ______________________________________________________________________________
|
sl@0
|
809 |
//
|
sl@0
|
810 |
_LIT(KStringPoolIrrelevantCtorTransition,"CStringPool_IrrelevantCtor_Transition");
|
sl@0
|
811 |
|
sl@0
|
812 |
inline CStringPool_IrrelevantCtor_Transition::CStringPool_IrrelevantCtor_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
813 |
TTransitionValidator& aValidator)
|
sl@0
|
814 |
: CTransition(KStringPoolIrrelevantCtorTransition, aUTContext, aValidator)
|
sl@0
|
815 |
{
|
sl@0
|
816 |
// Do nothing here.
|
sl@0
|
817 |
}
|
sl@0
|
818 |
|
sl@0
|
819 |
inline void CStringPool_IrrelevantCtor_Transition::TransitMethodL()
|
sl@0
|
820 |
{
|
sl@0
|
821 |
_LIT(KStringPoolIrrelevantCtorTransitMethod, "CStringPool::IrrelevantCtor transition");
|
sl@0
|
822 |
Context().DataLogger().LogInformation(KStringPoolIrrelevantCtorTransitMethod);
|
sl@0
|
823 |
|
sl@0
|
824 |
//Set the table used in this test
|
sl@0
|
825 |
Context().iTestTable=Irrelevant::Table;
|
sl@0
|
826 |
Context().iStringPool.OpenL(Context().iTestTable);
|
sl@0
|
827 |
RStringPool p = Context().iStringPool;
|
sl@0
|
828 |
|
sl@0
|
829 |
_LIT8(KStringA, "String");
|
sl@0
|
830 |
_LIT8(KStringB, "Another String");
|
sl@0
|
831 |
_LIT8(KStringD, "String");
|
sl@0
|
832 |
|
sl@0
|
833 |
_LIT8(KStringFA, "String");
|
sl@0
|
834 |
_LIT8(KStringFB, "Another String");
|
sl@0
|
835 |
_LIT8(KStringFD, "sTRING");
|
sl@0
|
836 |
|
sl@0
|
837 |
Context().iA = p.OpenStringL(KStringA());
|
sl@0
|
838 |
Context().iB = p.OpenStringL(KStringB());
|
sl@0
|
839 |
Context().iD = p.OpenStringL(KStringD());
|
sl@0
|
840 |
|
sl@0
|
841 |
Context().iFA = p.OpenFStringL(KStringFA());
|
sl@0
|
842 |
Context().iFB = p.OpenFStringL(KStringFB());
|
sl@0
|
843 |
Context().iFD = p.OpenFStringL(KStringFD());
|
sl@0
|
844 |
|
sl@0
|
845 |
// Context().iTE = p.String(0,Context().iTestTable);
|
sl@0
|
846 |
Context().iTFE = p.StringF(0,Context().iTestTable);
|
sl@0
|
847 |
|
sl@0
|
848 |
Context().iADes.Set(KStringA);
|
sl@0
|
849 |
Context().iBDes.Set(KStringB);
|
sl@0
|
850 |
Context().iDDes.Set(KStringD);
|
sl@0
|
851 |
|
sl@0
|
852 |
Context().iFADes.Set(KStringFA);
|
sl@0
|
853 |
Context().iFBDes.Set(KStringFB);
|
sl@0
|
854 |
Context().iFDDes.Set(KStringFD);
|
sl@0
|
855 |
|
sl@0
|
856 |
|
sl@0
|
857 |
Context().iFint = 0;
|
sl@0
|
858 |
}
|
sl@0
|
859 |
|
sl@0
|
860 |
inline CStringPool_UnitTestContext& CStringPool_IrrelevantCtor_Transition::Context() const
|
sl@0
|
861 |
{
|
sl@0
|
862 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
863 |
}
|
sl@0
|
864 |
|
sl@0
|
865 |
// ______________________________________________________________________________
|
sl@0
|
866 |
//
|
sl@0
|
867 |
_LIT(KStringPoolLongCtorTransition,"CStringPool_LongCtor_Transition");
|
sl@0
|
868 |
|
sl@0
|
869 |
inline CStringPool_LongCtor_Transition::CStringPool_LongCtor_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
870 |
TTransitionValidator& aValidator)
|
sl@0
|
871 |
: CTransition(KStringPoolLongCtorTransition, aUTContext, aValidator)
|
sl@0
|
872 |
{
|
sl@0
|
873 |
// Do nothing here.
|
sl@0
|
874 |
}
|
sl@0
|
875 |
|
sl@0
|
876 |
inline void CStringPool_LongCtor_Transition::TransitMethodL()
|
sl@0
|
877 |
{
|
sl@0
|
878 |
_LIT(KStringPoolLongCtorTransitMethod, "CStringPool::LongCtor transition");
|
sl@0
|
879 |
Context().DataLogger().LogInformation(KStringPoolLongCtorTransitMethod);
|
sl@0
|
880 |
|
sl@0
|
881 |
//Set the table used in this test
|
sl@0
|
882 |
Context().iTestTable=Long::Table;
|
sl@0
|
883 |
Context().iStringPool.OpenL(Context().iTestTable);
|
sl@0
|
884 |
RStringPool p = Context().iStringPool;
|
sl@0
|
885 |
|
sl@0
|
886 |
_LIT8(KStringA, "String");
|
sl@0
|
887 |
_LIT8(KStringB, "Another String");
|
sl@0
|
888 |
_LIT8(KStringD, "String");
|
sl@0
|
889 |
|
sl@0
|
890 |
_LIT8(KStringFA, "String");
|
sl@0
|
891 |
_LIT8(KStringFB, "Another String");
|
sl@0
|
892 |
_LIT8(KStringFD, "sTRING");
|
sl@0
|
893 |
|
sl@0
|
894 |
Context().iA = p.OpenStringL(KStringA());
|
sl@0
|
895 |
Context().iB = p.OpenStringL(KStringB());
|
sl@0
|
896 |
Context().iD = p.OpenStringL(KStringD());
|
sl@0
|
897 |
|
sl@0
|
898 |
Context().iFA = p.OpenFStringL(KStringFA());
|
sl@0
|
899 |
Context().iFB = p.OpenFStringL(KStringFB());
|
sl@0
|
900 |
Context().iFD = p.OpenFStringL(KStringFD());
|
sl@0
|
901 |
|
sl@0
|
902 |
// Context().iTE = p.String(0,Context().iTestTable);
|
sl@0
|
903 |
Context().iTFE = p.StringF(0,Context().iTestTable);
|
sl@0
|
904 |
|
sl@0
|
905 |
Context().iADes.Set(KStringA);
|
sl@0
|
906 |
Context().iBDes.Set(KStringB);
|
sl@0
|
907 |
Context().iDDes.Set(KStringD);
|
sl@0
|
908 |
|
sl@0
|
909 |
Context().iFADes.Set(KStringFA);
|
sl@0
|
910 |
Context().iFBDes.Set(KStringFB);
|
sl@0
|
911 |
Context().iFDDes.Set(KStringFD);
|
sl@0
|
912 |
|
sl@0
|
913 |
Context().iInt = 0;
|
sl@0
|
914 |
Context().iFint = 0;
|
sl@0
|
915 |
}
|
sl@0
|
916 |
|
sl@0
|
917 |
inline CStringPool_UnitTestContext& CStringPool_LongCtor_Transition::Context() const
|
sl@0
|
918 |
{
|
sl@0
|
919 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
920 |
}
|
sl@0
|
921 |
|
sl@0
|
922 |
//____________________________________________________________________
|
sl@0
|
923 |
//
|
sl@0
|
924 |
_LIT(KStringPoolStringF_Index_TableTransition,"CStringPool_StringF_Index_Table_Transition");
|
sl@0
|
925 |
|
sl@0
|
926 |
inline CStringPool_StringF_Index_Table_Transition::CStringPool_StringF_Index_Table_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
927 |
TTransitionValidator& aValidator)
|
sl@0
|
928 |
: CTransitionType(KStringPoolStringF_Index_TableTransition, aUTContext, aValidator)
|
sl@0
|
929 |
{
|
sl@0
|
930 |
// Do nothing here.
|
sl@0
|
931 |
}
|
sl@0
|
932 |
|
sl@0
|
933 |
inline void CStringPool_StringF_Index_Table_Transition::TransitMethodL()
|
sl@0
|
934 |
{
|
sl@0
|
935 |
_LIT(KStringPoolStringF_Index_TableTransitMethod, "CStringPool::StringF_Index_Table transition");
|
sl@0
|
936 |
Context().DataLogger().LogInformation(KStringPoolStringF_Index_TableTransitMethod);
|
sl@0
|
937 |
|
sl@0
|
938 |
Context().iResult = Context().iTFE == Context().iFA;
|
sl@0
|
939 |
}
|
sl@0
|
940 |
|
sl@0
|
941 |
inline CStringPool_UnitTestContext& CStringPool_StringF_Index_Table_Transition::Context() const
|
sl@0
|
942 |
{
|
sl@0
|
943 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
944 |
}
|
sl@0
|
945 |
|
sl@0
|
946 |
// ______________________________________________________________________________
|
sl@0
|
947 |
//
|
sl@0
|
948 |
_LIT(KStringPoolshortCSCtorTransition,"CStringPool_ShortCSCtor_Transition");
|
sl@0
|
949 |
|
sl@0
|
950 |
inline CStringPool_ShortCSCtor_Transition::CStringPool_ShortCSCtor_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
951 |
TTransitionValidator& aValidator)
|
sl@0
|
952 |
: CTransitionType(KStringPoolshortCSCtorTransition, aUTContext, aValidator)
|
sl@0
|
953 |
{
|
sl@0
|
954 |
// Do nothing here.
|
sl@0
|
955 |
}
|
sl@0
|
956 |
|
sl@0
|
957 |
inline void CStringPool_ShortCSCtor_Transition::TransitMethodL()
|
sl@0
|
958 |
{
|
sl@0
|
959 |
_LIT(KStringPoolshortCSCtorTransitMethod, "CStringPool::ShortCSCtor transition");
|
sl@0
|
960 |
Context().DataLogger().LogInformation(KStringPoolshortCSCtorTransitMethod);
|
sl@0
|
961 |
|
sl@0
|
962 |
|
sl@0
|
963 |
//Set the table used in this test
|
sl@0
|
964 |
Context().iTestTable=ShortCS::Table;
|
sl@0
|
965 |
Context().iStringPool.OpenL(Context().iTestTable);
|
sl@0
|
966 |
RStringPool p = Context().iStringPool;
|
sl@0
|
967 |
|
sl@0
|
968 |
_LIT8(KStringA, "String");
|
sl@0
|
969 |
_LIT8(KStringB, "Another String");
|
sl@0
|
970 |
_LIT8(KStringD, "String");
|
sl@0
|
971 |
|
sl@0
|
972 |
_LIT8(KStringFA, "String");
|
sl@0
|
973 |
_LIT8(KStringFB, "Another String");
|
sl@0
|
974 |
_LIT8(KStringFD, "sTRING");
|
sl@0
|
975 |
|
sl@0
|
976 |
|
sl@0
|
977 |
Context().iA = p.OpenStringL(KStringA());
|
sl@0
|
978 |
CleanupClosePushL(Context().iA);
|
sl@0
|
979 |
Context().iB = p.OpenStringL(KStringB());
|
sl@0
|
980 |
CleanupClosePushL(Context().iB);
|
sl@0
|
981 |
Context().iD = p.OpenStringL(KStringD());
|
sl@0
|
982 |
CleanupClosePushL(Context().iD);
|
sl@0
|
983 |
|
sl@0
|
984 |
Context().iFA = p.OpenFStringL(KStringFA());
|
sl@0
|
985 |
CleanupClosePushL(Context().iFA);
|
sl@0
|
986 |
Context().iFB = p.OpenFStringL(KStringFB());
|
sl@0
|
987 |
CleanupClosePushL(Context().iFB);
|
sl@0
|
988 |
Context().iFD = p.OpenFStringL(KStringFD());
|
sl@0
|
989 |
CleanupClosePushL(Context().iFD);
|
sl@0
|
990 |
|
sl@0
|
991 |
Context().iTE = p.String(0,Context().iTestTable);
|
sl@0
|
992 |
// Context().iTFE = p.StringF(0,Context().iTestTable);
|
sl@0
|
993 |
|
sl@0
|
994 |
|
sl@0
|
995 |
Context().iADes.Set(KStringA);
|
sl@0
|
996 |
Context().iBDes.Set(KStringB);
|
sl@0
|
997 |
Context().iDDes.Set(KStringD);
|
sl@0
|
998 |
|
sl@0
|
999 |
Context().iFADes.Set(KStringFA);
|
sl@0
|
1000 |
Context().iFBDes.Set(KStringFB);
|
sl@0
|
1001 |
Context().iFDDes.Set(KStringFD);
|
sl@0
|
1002 |
|
sl@0
|
1003 |
|
sl@0
|
1004 |
Context().iInt = 0;
|
sl@0
|
1005 |
CleanupStack::Pop(6);
|
sl@0
|
1006 |
}
|
sl@0
|
1007 |
|
sl@0
|
1008 |
inline CStringPool_UnitTestContext& CStringPool_ShortCSCtor_Transition::Context() const
|
sl@0
|
1009 |
{
|
sl@0
|
1010 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
1011 |
}
|
sl@0
|
1012 |
// ______________________________________________________________________________
|
sl@0
|
1013 |
//
|
sl@0
|
1014 |
_LIT(KStringPoolString_Index_TableTransition,"CStringPool_String_Index_Table_Transition");
|
sl@0
|
1015 |
|
sl@0
|
1016 |
inline CStringPool_String_Index_Table_Transition::CStringPool_String_Index_Table_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1017 |
TTransitionValidator& aValidator)
|
sl@0
|
1018 |
: CTransitionType(KStringPoolString_Index_TableTransition, aUTContext, aValidator)
|
sl@0
|
1019 |
{
|
sl@0
|
1020 |
// Do nothing here.
|
sl@0
|
1021 |
}
|
sl@0
|
1022 |
|
sl@0
|
1023 |
inline void CStringPool_String_Index_Table_Transition::TransitMethodL()
|
sl@0
|
1024 |
{
|
sl@0
|
1025 |
_LIT(KStringPoolString_Index_TableTransitMethod, "CStringPool::String_Index_Table transition");
|
sl@0
|
1026 |
Context().DataLogger().LogInformation(KStringPoolString_Index_TableTransitMethod);
|
sl@0
|
1027 |
|
sl@0
|
1028 |
Context().iResult = Context().iTE == Context().iA;
|
sl@0
|
1029 |
}
|
sl@0
|
1030 |
|
sl@0
|
1031 |
inline CStringPool_UnitTestContext& CStringPool_String_Index_Table_Transition::Context() const
|
sl@0
|
1032 |
{
|
sl@0
|
1033 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
1034 |
}
|
sl@0
|
1035 |
|
sl@0
|
1036 |
|
sl@0
|
1037 |
|
sl@0
|
1038 |
// ______________________________________________________________________________
|
sl@0
|
1039 |
//
|
sl@0
|
1040 |
_LIT(KStringPoolIrrelevantCSCtorTransition,"CStringPool_IrrelevantCSCtor_Transition");
|
sl@0
|
1041 |
|
sl@0
|
1042 |
inline CStringPool_IrrelevantCSCtor_Transition::CStringPool_IrrelevantCSCtor_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1043 |
TTransitionValidator& aValidator)
|
sl@0
|
1044 |
: CTransitionType(KStringPoolIrrelevantCSCtorTransition, aUTContext, aValidator)
|
sl@0
|
1045 |
{
|
sl@0
|
1046 |
// Do nothing here.
|
sl@0
|
1047 |
}
|
sl@0
|
1048 |
|
sl@0
|
1049 |
inline void CStringPool_IrrelevantCSCtor_Transition::TransitMethodL()
|
sl@0
|
1050 |
{
|
sl@0
|
1051 |
_LIT(KStringPoolIrrelevantCSCtorTransitMethod, "CStringPool::IrrelevantCSCtor transition");
|
sl@0
|
1052 |
Context().DataLogger().LogInformation(KStringPoolIrrelevantCSCtorTransitMethod);
|
sl@0
|
1053 |
|
sl@0
|
1054 |
//Set the table used in this test
|
sl@0
|
1055 |
Context().iTestTable=IrrelevantCS::Table;
|
sl@0
|
1056 |
Context().iStringPool.OpenL(Context().iTestTable);
|
sl@0
|
1057 |
RStringPool p = Context().iStringPool;
|
sl@0
|
1058 |
|
sl@0
|
1059 |
_LIT8(KStringA, "String");
|
sl@0
|
1060 |
_LIT8(KStringB, "Another String");
|
sl@0
|
1061 |
_LIT8(KStringD, "String");
|
sl@0
|
1062 |
|
sl@0
|
1063 |
_LIT8(KStringFA, "String");
|
sl@0
|
1064 |
_LIT8(KStringFB, "Another String");
|
sl@0
|
1065 |
_LIT8(KStringFD, "sTRING");
|
sl@0
|
1066 |
|
sl@0
|
1067 |
Context().iA = p.OpenStringL(KStringA());
|
sl@0
|
1068 |
Context().iB = p.OpenStringL(KStringB());
|
sl@0
|
1069 |
Context().iD = p.OpenStringL(KStringD());
|
sl@0
|
1070 |
|
sl@0
|
1071 |
Context().iFA = p.OpenFStringL(KStringFA());
|
sl@0
|
1072 |
Context().iFB = p.OpenFStringL(KStringFB());
|
sl@0
|
1073 |
Context().iFD = p.OpenFStringL(KStringFD());
|
sl@0
|
1074 |
|
sl@0
|
1075 |
Context().iTE = p.String(0,Context().iTestTable);
|
sl@0
|
1076 |
// Context().iTFE = p.StringF(0,Context().iTestTable);
|
sl@0
|
1077 |
|
sl@0
|
1078 |
Context().iADes.Set(KStringA);
|
sl@0
|
1079 |
Context().iBDes.Set(KStringB);
|
sl@0
|
1080 |
Context().iDDes.Set(KStringD);
|
sl@0
|
1081 |
|
sl@0
|
1082 |
Context().iFADes.Set(KStringFA);
|
sl@0
|
1083 |
Context().iFBDes.Set(KStringFB);
|
sl@0
|
1084 |
Context().iFDDes.Set(KStringFD);
|
sl@0
|
1085 |
|
sl@0
|
1086 |
|
sl@0
|
1087 |
Context().iFint = 0;
|
sl@0
|
1088 |
Context().iInt = 0;
|
sl@0
|
1089 |
}
|
sl@0
|
1090 |
|
sl@0
|
1091 |
inline CStringPool_UnitTestContext& CStringPool_IrrelevantCSCtor_Transition::Context() const
|
sl@0
|
1092 |
{
|
sl@0
|
1093 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
1094 |
}
|
sl@0
|
1095 |
|
sl@0
|
1096 |
// ______________________________________________________________________________
|
sl@0
|
1097 |
//
|
sl@0
|
1098 |
_LIT(KStringPoolLargeCSCtorTransition,"CStringPool_LargeCSCtor_Transition");
|
sl@0
|
1099 |
|
sl@0
|
1100 |
inline CStringPool_LargeCSCtor_Transition::CStringPool_LargeCSCtor_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1101 |
TTransitionValidator& aValidator)
|
sl@0
|
1102 |
: CTransitionType(KStringPoolLargeCSCtorTransition, aUTContext, aValidator)
|
sl@0
|
1103 |
{
|
sl@0
|
1104 |
// Do nothing here.
|
sl@0
|
1105 |
}
|
sl@0
|
1106 |
|
sl@0
|
1107 |
inline void CStringPool_LargeCSCtor_Transition::TransitMethodL()
|
sl@0
|
1108 |
{
|
sl@0
|
1109 |
_LIT(KStringPoolLargeCSCtorTransitMethod, "CStringPool::LargeCSCtor transition");
|
sl@0
|
1110 |
Context().DataLogger().LogInformation(KStringPoolLargeCSCtorTransitMethod);
|
sl@0
|
1111 |
|
sl@0
|
1112 |
//Set the table used in this test
|
sl@0
|
1113 |
Context().iTestTable=LongCS::Table;
|
sl@0
|
1114 |
Context().iStringPool.OpenL(Context().iTestTable);
|
sl@0
|
1115 |
RStringPool p = Context().iStringPool;
|
sl@0
|
1116 |
|
sl@0
|
1117 |
_LIT8(KStringA, "String");
|
sl@0
|
1118 |
_LIT8(KStringB, "Another String");
|
sl@0
|
1119 |
_LIT8(KStringD, "String");
|
sl@0
|
1120 |
|
sl@0
|
1121 |
_LIT8(KStringFA, "String");
|
sl@0
|
1122 |
_LIT8(KStringFB, "Another String");
|
sl@0
|
1123 |
_LIT8(KStringFD, "sTRING");
|
sl@0
|
1124 |
|
sl@0
|
1125 |
Context().iA = p.OpenStringL(KStringA());
|
sl@0
|
1126 |
Context().iB = p.OpenStringL(KStringB());
|
sl@0
|
1127 |
Context().iD = p.OpenStringL(KStringD());
|
sl@0
|
1128 |
|
sl@0
|
1129 |
Context().iFA = p.OpenFStringL(KStringFA());
|
sl@0
|
1130 |
Context().iFB = p.OpenFStringL(KStringFB());
|
sl@0
|
1131 |
Context().iFD = p.OpenFStringL(KStringFD());
|
sl@0
|
1132 |
|
sl@0
|
1133 |
Context().iTE = p.String(0,Context().iTestTable);
|
sl@0
|
1134 |
// Context().iTFE = p.StringF(0,Context().iTestTable);
|
sl@0
|
1135 |
|
sl@0
|
1136 |
Context().iADes.Set(KStringA);
|
sl@0
|
1137 |
Context().iBDes.Set(KStringB);
|
sl@0
|
1138 |
Context().iDDes.Set(KStringD);
|
sl@0
|
1139 |
|
sl@0
|
1140 |
Context().iFADes.Set(KStringFA);
|
sl@0
|
1141 |
Context().iFBDes.Set(KStringFB);
|
sl@0
|
1142 |
Context().iFDDes.Set(KStringFD);
|
sl@0
|
1143 |
|
sl@0
|
1144 |
Context().iInt = 0;
|
sl@0
|
1145 |
Context().iFint = 0;
|
sl@0
|
1146 |
}
|
sl@0
|
1147 |
|
sl@0
|
1148 |
inline CStringPool_UnitTestContext& CStringPool_LargeCSCtor_Transition::Context() const
|
sl@0
|
1149 |
{
|
sl@0
|
1150 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
1151 |
}
|
sl@0
|
1152 |
// ______________________________________________________________________________
|
sl@0
|
1153 |
//
|
sl@0
|
1154 |
_LIT(KStringPoolShortCtor_CBTransition,"CStringPool_Short_CB_Transition");
|
sl@0
|
1155 |
|
sl@0
|
1156 |
inline CStringPool_Short_CB_Transition::CStringPool_Short_CB_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1157 |
TTransitionValidator& aValidator)
|
sl@0
|
1158 |
: CTransitionType(KStringPoolShortCtor_CBTransition, aUTContext, aValidator)
|
sl@0
|
1159 |
{
|
sl@0
|
1160 |
// Do nothing here.
|
sl@0
|
1161 |
}
|
sl@0
|
1162 |
|
sl@0
|
1163 |
|
sl@0
|
1164 |
|
sl@0
|
1165 |
|
sl@0
|
1166 |
|
sl@0
|
1167 |
inline void CStringPool_Short_CB_Transition::TransitMethodL()
|
sl@0
|
1168 |
{
|
sl@0
|
1169 |
_LIT(KStringPoolShortCtor_CBTransitMethod, "CStringPool::ShortCtor_CB transition");
|
sl@0
|
1170 |
Context().DataLogger().LogInformation(KStringPoolShortCtor_CBTransitMethod);
|
sl@0
|
1171 |
|
sl@0
|
1172 |
//Set the table used in this test
|
sl@0
|
1173 |
Context().iTestTable=Short::Table;
|
sl@0
|
1174 |
|
sl@0
|
1175 |
Context().iMyExtObj.a=0;
|
sl@0
|
1176 |
Context().iMyExtObj2.a=0;
|
sl@0
|
1177 |
Context().iMyExtObj3.a=0;
|
sl@0
|
1178 |
Context().iStringPool.OpenL(Context().iTestTable,Context().iMyExtObj);
|
sl@0
|
1179 |
CleanupClosePushL(Context().iStringPool);
|
sl@0
|
1180 |
Context().iStringPool.OpenL(Context().iTestTable,Context().iMyExtObj2);
|
sl@0
|
1181 |
Context().iStringPool.OpenL(Context().iTestTable,Context().iMyExtObj3);
|
sl@0
|
1182 |
Context().iStringPool.Close();
|
sl@0
|
1183 |
Context().iResult= (Context().iMyExtObj.a) && (Context().iMyExtObj2.a)&&(Context().iMyExtObj3.a);
|
sl@0
|
1184 |
CleanupStack::Pop();//Context().iStringPool
|
sl@0
|
1185 |
}
|
sl@0
|
1186 |
|
sl@0
|
1187 |
inline CStringPool_UnitTestContext& CStringPool_Short_CB_Transition::Context() const
|
sl@0
|
1188 |
{
|
sl@0
|
1189 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
1190 |
}
|
sl@0
|
1191 |
|
sl@0
|
1192 |
// ______________________________________________________________________________
|
sl@0
|
1193 |
//
|
sl@0
|
1194 |
_LIT(KStringPoolMultipleTableCICtorTransition,"CStringPool_MultipleTableCICtor_Transition");
|
sl@0
|
1195 |
|
sl@0
|
1196 |
inline CStringPool_MultipleTableCICtor_Transition::CStringPool_MultipleTableCICtor_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1197 |
TTransitionValidator& aValidator)
|
sl@0
|
1198 |
: CTransitionType(KStringPoolMultipleTableCICtorTransition, aUTContext, aValidator)
|
sl@0
|
1199 |
{
|
sl@0
|
1200 |
// Do nothing here.
|
sl@0
|
1201 |
}
|
sl@0
|
1202 |
|
sl@0
|
1203 |
inline void CStringPool_MultipleTableCICtor_Transition::TransitMethodL()
|
sl@0
|
1204 |
{
|
sl@0
|
1205 |
_LIT(KStringPoolMultipleTableCICtorTransitMethod, "CStringPool::MultipleTableCICtor transition");
|
sl@0
|
1206 |
Context().DataLogger().LogInformation(KStringPoolMultipleTableCICtorTransitMethod);
|
sl@0
|
1207 |
|
sl@0
|
1208 |
Context().iStringPool.OpenL();
|
sl@0
|
1209 |
|
sl@0
|
1210 |
_LIT8(KStringA, "AnotherString");
|
sl@0
|
1211 |
CleanupClosePushL(Context().iFF);
|
sl@0
|
1212 |
Context().iFF=Context().iStringPool.OpenFStringL(KStringA); // Dynamic string
|
sl@0
|
1213 |
CleanupStack::Pop(); // iFF
|
sl@0
|
1214 |
|
sl@0
|
1215 |
|
sl@0
|
1216 |
Context().iTestTable=Short::Table;
|
sl@0
|
1217 |
Context().iStringPool.OpenL(Context().iTestTable);
|
sl@0
|
1218 |
|
sl@0
|
1219 |
Context().iTestTable2=Short3::Table; // Non-duplicate table
|
sl@0
|
1220 |
Context().iStringPool.OpenL(Context().iTestTable2);
|
sl@0
|
1221 |
|
sl@0
|
1222 |
Context().iTestTable3=Short2::Table;
|
sl@0
|
1223 |
Context().iStringPool.OpenL(Context().iTestTable3);
|
sl@0
|
1224 |
|
sl@0
|
1225 |
Context().iTestTable4=Short4::Table; // Duplicate of a duplicate table
|
sl@0
|
1226 |
Context().iStringPool.OpenL(Context().iTestTable4);
|
sl@0
|
1227 |
Context().iStringPool.OpenL(Context().iTestTable4); // Add same table twice
|
sl@0
|
1228 |
|
sl@0
|
1229 |
Context().iFA=Context().iStringPool.StringF(Short::EString, Context().iTestTable); // String
|
sl@0
|
1230 |
Context().iFB=Context().iStringPool.StringF(Short2::EString, Context().iTestTable3); // String
|
sl@0
|
1231 |
Context().iFC=Context().iStringPool.StringF(Short3::EString3, Context().iTestTable2); // String3, non-duplicate
|
sl@0
|
1232 |
Context().iFD=Context().iStringPool.StringF(Short4::EAnotherString , Context().iTestTable4); // AnotherString3 duplicate of a duplicate
|
sl@0
|
1233 |
|
sl@0
|
1234 |
Context().iFE=Context().iStringPool.StringF(Short2::EAnotherString , Context().iTestTable3); // Duplicate of dynamic string
|
sl@0
|
1235 |
|
sl@0
|
1236 |
Context().iIndex1=Context().iFA.Index(Context().iTestTable); // 0
|
sl@0
|
1237 |
Context().iIndex2=Context().iFB.Index(Context().iTestTable3); // 1
|
sl@0
|
1238 |
Context().iIndex3=Context().iFC.Index(Context().iTestTable2); // 1
|
sl@0
|
1239 |
Context().iIndex4=Context().iFD.Index(Context().iTestTable4); // 0
|
sl@0
|
1240 |
|
sl@0
|
1241 |
|
sl@0
|
1242 |
}
|
sl@0
|
1243 |
|
sl@0
|
1244 |
inline CStringPool_UnitTestContext& CStringPool_MultipleTableCICtor_Transition::Context() const
|
sl@0
|
1245 |
{
|
sl@0
|
1246 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
1247 |
}
|
sl@0
|
1248 |
|
sl@0
|
1249 |
|
sl@0
|
1250 |
|
sl@0
|
1251 |
// ______________________________________________________________________________
|
sl@0
|
1252 |
//
|
sl@0
|
1253 |
_LIT(KStringPoolMutlipleCICeqCTransition,"CStringPool_MutlipleCICeqC_Transition");
|
sl@0
|
1254 |
|
sl@0
|
1255 |
inline CStringPool_MutlipleCICeqC_Transition::CStringPool_MutlipleCICeqC_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1256 |
TTransitionValidator& aValidator)
|
sl@0
|
1257 |
: CTransitionType(KStringPoolMutlipleCICeqCTransition, aUTContext, aValidator)
|
sl@0
|
1258 |
{
|
sl@0
|
1259 |
// Do nothing here.
|
sl@0
|
1260 |
}
|
sl@0
|
1261 |
|
sl@0
|
1262 |
inline void CStringPool_MutlipleCICeqC_Transition::TransitMethodL()
|
sl@0
|
1263 |
{
|
sl@0
|
1264 |
_LIT(KStringPoolMutlipleCICeqCTransitMethod, "CStringPool::MutlipleCICeqC transition");
|
sl@0
|
1265 |
Context().DataLogger().LogInformation(KStringPoolMutlipleCICeqCTransitMethod);
|
sl@0
|
1266 |
_LIT8(KStringC, "String3");
|
sl@0
|
1267 |
Context().iResult = (Context().iFC.DesC().CompareF(KStringC))==0;
|
sl@0
|
1268 |
}
|
sl@0
|
1269 |
|
sl@0
|
1270 |
inline CStringPool_UnitTestContext& CStringPool_MutlipleCICeqC_Transition::Context() const
|
sl@0
|
1271 |
{
|
sl@0
|
1272 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
1273 |
}
|
sl@0
|
1274 |
|
sl@0
|
1275 |
|
sl@0
|
1276 |
// ______________________________________________________________________________
|
sl@0
|
1277 |
//
|
sl@0
|
1278 |
_LIT(KStringPoolMultipleCIStringToIndexTransition,"CStringPool_MultipleCIStringToIndex_Transition");
|
sl@0
|
1279 |
|
sl@0
|
1280 |
inline CStringPool_MultipleCIStringToIndex_Transition::CStringPool_MultipleCIStringToIndex_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1281 |
TTransitionValidator& aValidator)
|
sl@0
|
1282 |
: CTransitionType(KStringPoolMultipleCIStringToIndexTransition, aUTContext, aValidator)
|
sl@0
|
1283 |
{
|
sl@0
|
1284 |
// Do nothing here.
|
sl@0
|
1285 |
}
|
sl@0
|
1286 |
|
sl@0
|
1287 |
inline void CStringPool_MultipleCIStringToIndex_Transition::TransitMethodL()
|
sl@0
|
1288 |
{
|
sl@0
|
1289 |
_LIT(KStringPoolMultipleCIStringToIndexTransitMethod, "CStringPool::MultipleCIStringToIndex transition");
|
sl@0
|
1290 |
Context().DataLogger().LogInformation(KStringPoolMultipleCIStringToIndexTransitMethod);
|
sl@0
|
1291 |
if (Context().iIndex1==0 && Context().iIndex2==1 && Context().iIndex3==1 && Context().iIndex4==0)
|
sl@0
|
1292 |
Context().iResult = ETrue;
|
sl@0
|
1293 |
else
|
sl@0
|
1294 |
Context().iResult = EFalse;
|
sl@0
|
1295 |
}
|
sl@0
|
1296 |
|
sl@0
|
1297 |
inline CStringPool_UnitTestContext& CStringPool_MultipleCIStringToIndex_Transition::Context() const
|
sl@0
|
1298 |
{
|
sl@0
|
1299 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
1300 |
}
|
sl@0
|
1301 |
|
sl@0
|
1302 |
|
sl@0
|
1303 |
// ______________________________________________________________________________
|
sl@0
|
1304 |
//
|
sl@0
|
1305 |
_LIT(KStringPoolMultipleCIDynamicStringTransition,"CStringPool_MultipleCIDynamicString_Transition");
|
sl@0
|
1306 |
|
sl@0
|
1307 |
inline CStringPool_MultipleCIDynamicString_Transition::CStringPool_MultipleCIDynamicString_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1308 |
TTransitionValidator& aValidator)
|
sl@0
|
1309 |
: CTransitionType(KStringPoolMultipleCIDynamicStringTransition, aUTContext, aValidator)
|
sl@0
|
1310 |
{
|
sl@0
|
1311 |
// Do nothing here.
|
sl@0
|
1312 |
}
|
sl@0
|
1313 |
|
sl@0
|
1314 |
inline void CStringPool_MultipleCIDynamicString_Transition::TransitMethodL()
|
sl@0
|
1315 |
{
|
sl@0
|
1316 |
_LIT(KStringPoolMultipleCIDynamicStringTransitMethod, "CStringPool::MultipleCIDynamicString transition");
|
sl@0
|
1317 |
Context().DataLogger().LogInformation(KStringPoolMultipleCIDynamicStringTransitMethod);
|
sl@0
|
1318 |
Context().iResult = Context().iFE==Context().iFF;
|
sl@0
|
1319 |
}
|
sl@0
|
1320 |
|
sl@0
|
1321 |
inline CStringPool_UnitTestContext& CStringPool_MultipleCIDynamicString_Transition::Context() const
|
sl@0
|
1322 |
{
|
sl@0
|
1323 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
1324 |
}
|
sl@0
|
1325 |
|
sl@0
|
1326 |
// ______________________________________________________________________________
|
sl@0
|
1327 |
//
|
sl@0
|
1328 |
_LIT(KStringPoolMultipleCIIndexToStringDynamicTransition,"CStringPool_MultipleCIIndexToStringDynamic_Transition");
|
sl@0
|
1329 |
|
sl@0
|
1330 |
inline CStringPool_MultipleCIIndexToStringDynamic_Transition::CStringPool_MultipleCIIndexToStringDynamic_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1331 |
TTransitionValidator& aValidator)
|
sl@0
|
1332 |
: CTransitionType(KStringPoolMultipleCIIndexToStringDynamicTransition, aUTContext, aValidator)
|
sl@0
|
1333 |
{
|
sl@0
|
1334 |
// Do nothing here.
|
sl@0
|
1335 |
}
|
sl@0
|
1336 |
|
sl@0
|
1337 |
inline void CStringPool_MultipleCIIndexToStringDynamic_Transition::TransitMethodL()
|
sl@0
|
1338 |
{
|
sl@0
|
1339 |
_LIT(KStringPoolMultipleCIIndexToStringDynamicTransitMethod, "CStringPool::MultipleCIIndexToStringDynamic transition");
|
sl@0
|
1340 |
Context().DataLogger().LogInformation(KStringPoolMultipleCIIndexToStringDynamicTransitMethod);
|
sl@0
|
1341 |
_LIT8(KStringE, "AnotherString");
|
sl@0
|
1342 |
Context().iResult = (Context().iFE.DesC().CompareF(KStringE))==0;
|
sl@0
|
1343 |
}
|
sl@0
|
1344 |
|
sl@0
|
1345 |
inline CStringPool_UnitTestContext& CStringPool_MultipleCIIndexToStringDynamic_Transition::Context() const
|
sl@0
|
1346 |
{
|
sl@0
|
1347 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
1348 |
}
|
sl@0
|
1349 |
|
sl@0
|
1350 |
|
sl@0
|
1351 |
// For case sensitive
|
sl@0
|
1352 |
|
sl@0
|
1353 |
|
sl@0
|
1354 |
// ______________________________________________________________________________
|
sl@0
|
1355 |
//
|
sl@0
|
1356 |
/**
|
sl@0
|
1357 |
@internalComponent
|
sl@0
|
1358 |
Comments : Transition test of the StringPool::MultipleTableCSCtor method.
|
sl@0
|
1359 |
*/
|
sl@0
|
1360 |
class CStringPool_MultipleTableCSCtor_Transition : public CTransitionType
|
sl@0
|
1361 |
{
|
sl@0
|
1362 |
public:
|
sl@0
|
1363 |
/**
|
sl@0
|
1364 |
@fn CStringPool_MultipleTableCSCtor_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1365 |
TTransitionValidator& aValidator)
|
sl@0
|
1366 |
Intended Usage : Standard c'tor method.
|
sl@0
|
1367 |
Error Condition : None.
|
sl@0
|
1368 |
@since 7.0
|
sl@0
|
1369 |
@param aUTContext The context this transition is operating in.
|
sl@0
|
1370 |
@param aValidator Used for checking the pre & post conditions of the test object.
|
sl@0
|
1371 |
@pre None.
|
sl@0
|
1372 |
@post CStringPool_MultipleTableCSCtor_Transition is fully constructed.
|
sl@0
|
1373 |
*/
|
sl@0
|
1374 |
CStringPool_MultipleTableCSCtor_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1375 |
TTransitionValidator& aValidator);
|
sl@0
|
1376 |
/**
|
sl@0
|
1377 |
@fn TransitMethodL()
|
sl@0
|
1378 |
Intended Usage : To execute the StringPool::MultipleTableCSCtor method for the test harness.
|
sl@0
|
1379 |
Error Condition : Leaves with an error code.
|
sl@0
|
1380 |
@leave KErrNoMemory, (@see StringPool::MultipleTableCSCtor)
|
sl@0
|
1381 |
@since 7.0
|
sl@0
|
1382 |
@return None
|
sl@0
|
1383 |
@pre CStringPool_MultipleTableCSCtor_Transition is fully constructed.
|
sl@0
|
1384 |
@post No change in the CStringPool_MultipleTableCSCtor_Transition apart
|
sl@0
|
1385 |
from iStringPool, which may have changed state.
|
sl@0
|
1386 |
(@see StringPool::MultipleTableCSCtor post-condition) for iStringPool's new state.
|
sl@0
|
1387 |
*/
|
sl@0
|
1388 |
inline void TransitMethodL();
|
sl@0
|
1389 |
|
sl@0
|
1390 |
/**
|
sl@0
|
1391 |
@fn Context() const
|
sl@0
|
1392 |
Intended Usage : To provide access to the unit test context cast to the correct type.
|
sl@0
|
1393 |
Error Condition : None.
|
sl@0
|
1394 |
@since 7.0
|
sl@0
|
1395 |
@return The unit test context cast to a CStringPool_UnitTestContext
|
sl@0
|
1396 |
@pre iUTContext is a valid CStringPool_UnitTestContext.
|
sl@0
|
1397 |
@post No change in the CStringPool_MultipleTableCSCtor_Transition
|
sl@0
|
1398 |
*/
|
sl@0
|
1399 |
inline CStringPool_UnitTestContext& Context() const;
|
sl@0
|
1400 |
}; // CStringPool_MultipleTableCSCtor_Transition
|
sl@0
|
1401 |
|
sl@0
|
1402 |
// ______________________________________________________________________________
|
sl@0
|
1403 |
//
|
sl@0
|
1404 |
_LIT(KStringPoolMultipleTableCSCtorTransition,"CStringPool_MultipleTableCSCtor_Transition");
|
sl@0
|
1405 |
|
sl@0
|
1406 |
inline CStringPool_MultipleTableCSCtor_Transition::CStringPool_MultipleTableCSCtor_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1407 |
TTransitionValidator& aValidator)
|
sl@0
|
1408 |
: CTransitionType(KStringPoolMultipleTableCSCtorTransition, aUTContext, aValidator)
|
sl@0
|
1409 |
{
|
sl@0
|
1410 |
// Do nothing here.
|
sl@0
|
1411 |
}
|
sl@0
|
1412 |
|
sl@0
|
1413 |
inline void CStringPool_MultipleTableCSCtor_Transition::TransitMethodL()
|
sl@0
|
1414 |
{
|
sl@0
|
1415 |
_LIT(KStringPoolMultipleTableCSCtorTransitMethod, "CStringPool::MultipleTableCSCtor transition");
|
sl@0
|
1416 |
Context().DataLogger().LogInformation(KStringPoolMultipleTableCSCtorTransitMethod);
|
sl@0
|
1417 |
|
sl@0
|
1418 |
Context().iStringPool.OpenL();
|
sl@0
|
1419 |
|
sl@0
|
1420 |
_LIT8(KStringA, "AnotherString");
|
sl@0
|
1421 |
CleanupClosePushL(Context().iF);
|
sl@0
|
1422 |
Context().iF=Context().iStringPool.OpenStringL(KStringA); // Dynamic string
|
sl@0
|
1423 |
CleanupStack::Pop(); // iF
|
sl@0
|
1424 |
|
sl@0
|
1425 |
|
sl@0
|
1426 |
Context().iTestTable=ShortCS::Table;
|
sl@0
|
1427 |
Context().iStringPool.OpenL(Context().iTestTable);
|
sl@0
|
1428 |
|
sl@0
|
1429 |
Context().iTestTable2=ShortCS3::Table; // Non-duplicate table
|
sl@0
|
1430 |
Context().iStringPool.OpenL(Context().iTestTable2);
|
sl@0
|
1431 |
|
sl@0
|
1432 |
Context().iTestTable3=ShortCS2::Table;
|
sl@0
|
1433 |
Context().iStringPool.OpenL(Context().iTestTable3);
|
sl@0
|
1434 |
|
sl@0
|
1435 |
Context().iTestTable4=ShortCS4::Table; // Duplicate of a duplicate table
|
sl@0
|
1436 |
Context().iStringPool.OpenL(Context().iTestTable4);
|
sl@0
|
1437 |
Context().iStringPool.OpenL(Context().iTestTable4); // Add same table twice
|
sl@0
|
1438 |
|
sl@0
|
1439 |
Context().iA=Context().iStringPool.String(ShortCS::EString, Context().iTestTable); // String
|
sl@0
|
1440 |
Context().iB=Context().iStringPool.String(ShortCS2::EString, Context().iTestTable3); // String
|
sl@0
|
1441 |
Context().iC=Context().iStringPool.String(ShortCS3::EString3, Context().iTestTable2); // String3, non-duplicate
|
sl@0
|
1442 |
Context().iD=Context().iStringPool.String(ShortCS4::EAnotherString , Context().iTestTable4); // AnotherString3 duplicate of a duplicate
|
sl@0
|
1443 |
|
sl@0
|
1444 |
Context().iE=Context().iStringPool.String(ShortCS2::EAnotherString , Context().iTestTable3); // Duplicate of dynamic string
|
sl@0
|
1445 |
|
sl@0
|
1446 |
Context().iIndex1=Context().iA.Index(Context().iTestTable); // 0
|
sl@0
|
1447 |
Context().iIndex2=Context().iB.Index(Context().iTestTable3); // 1
|
sl@0
|
1448 |
Context().iIndex3=Context().iC.Index(Context().iTestTable2); // 1
|
sl@0
|
1449 |
Context().iIndex4=Context().iD.Index(Context().iTestTable4); // 2
|
sl@0
|
1450 |
|
sl@0
|
1451 |
|
sl@0
|
1452 |
}
|
sl@0
|
1453 |
|
sl@0
|
1454 |
inline CStringPool_UnitTestContext& CStringPool_MultipleTableCSCtor_Transition::Context() const
|
sl@0
|
1455 |
{
|
sl@0
|
1456 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
1457 |
}
|
sl@0
|
1458 |
|
sl@0
|
1459 |
|
sl@0
|
1460 |
// ______________________________________________________________________________
|
sl@0
|
1461 |
//
|
sl@0
|
1462 |
_LIT(KStringPoolMutlipleCSCeqCTransition,"CStringPool_MutlipleCSCeqC_Transition");
|
sl@0
|
1463 |
|
sl@0
|
1464 |
inline CStringPool_MutlipleCSCeqC_Transition::CStringPool_MutlipleCSCeqC_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1465 |
TTransitionValidator& aValidator)
|
sl@0
|
1466 |
: CTransitionType(KStringPoolMutlipleCSCeqCTransition, aUTContext, aValidator)
|
sl@0
|
1467 |
{
|
sl@0
|
1468 |
// Do nothing here.
|
sl@0
|
1469 |
}
|
sl@0
|
1470 |
|
sl@0
|
1471 |
inline void CStringPool_MutlipleCSCeqC_Transition::TransitMethodL()
|
sl@0
|
1472 |
{
|
sl@0
|
1473 |
_LIT(KStringPoolMutlipleCSCeqCTransitMethod, "CStringPool::MutlipleCSCeqC transition");
|
sl@0
|
1474 |
Context().DataLogger().LogInformation(KStringPoolMutlipleCSCeqCTransitMethod);
|
sl@0
|
1475 |
_LIT8(KStringC, "String3");
|
sl@0
|
1476 |
Context().iResult = (Context().iC.DesC().CompareF(KStringC))==0;
|
sl@0
|
1477 |
}
|
sl@0
|
1478 |
|
sl@0
|
1479 |
inline CStringPool_UnitTestContext& CStringPool_MutlipleCSCeqC_Transition::Context() const
|
sl@0
|
1480 |
{
|
sl@0
|
1481 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
1482 |
}
|
sl@0
|
1483 |
|
sl@0
|
1484 |
|
sl@0
|
1485 |
// ______________________________________________________________________________
|
sl@0
|
1486 |
//
|
sl@0
|
1487 |
_LIT(KStringPoolMultipleCSStringToIndexTransition,"CStringPool_MultipleCSStringToIndex_Transition");
|
sl@0
|
1488 |
|
sl@0
|
1489 |
inline CStringPool_MultipleCSStringToIndex_Transition::CStringPool_MultipleCSStringToIndex_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1490 |
TTransitionValidator& aValidator)
|
sl@0
|
1491 |
: CTransitionType(KStringPoolMultipleCSStringToIndexTransition, aUTContext, aValidator)
|
sl@0
|
1492 |
{
|
sl@0
|
1493 |
// Do nothing here.
|
sl@0
|
1494 |
}
|
sl@0
|
1495 |
|
sl@0
|
1496 |
inline void CStringPool_MultipleCSStringToIndex_Transition::TransitMethodL()
|
sl@0
|
1497 |
{
|
sl@0
|
1498 |
_LIT(KStringPoolMultipleCSStringToIndexTransitMethod, "CStringPool::MultipleCSStringToIndex transition");
|
sl@0
|
1499 |
Context().DataLogger().LogInformation(KStringPoolMultipleCSStringToIndexTransitMethod);
|
sl@0
|
1500 |
if (Context().iIndex1==0 && Context().iIndex2==1 && Context().iIndex3==1 && Context().iIndex4==2)
|
sl@0
|
1501 |
Context().iResult = ETrue;
|
sl@0
|
1502 |
else
|
sl@0
|
1503 |
Context().iResult = EFalse;
|
sl@0
|
1504 |
}
|
sl@0
|
1505 |
|
sl@0
|
1506 |
inline CStringPool_UnitTestContext& CStringPool_MultipleCSStringToIndex_Transition::Context() const
|
sl@0
|
1507 |
{
|
sl@0
|
1508 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
1509 |
}
|
sl@0
|
1510 |
|
sl@0
|
1511 |
|
sl@0
|
1512 |
// ______________________________________________________________________________
|
sl@0
|
1513 |
//
|
sl@0
|
1514 |
_LIT(KStringPoolMultipleCSDynamicStringTransition,"CStringPool_MultipleCSDynamicString_Transition");
|
sl@0
|
1515 |
|
sl@0
|
1516 |
inline CStringPool_MultipleCSDynamicString_Transition::CStringPool_MultipleCSDynamicString_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1517 |
TTransitionValidator& aValidator)
|
sl@0
|
1518 |
: CTransitionType(KStringPoolMultipleCSDynamicStringTransition, aUTContext, aValidator)
|
sl@0
|
1519 |
{
|
sl@0
|
1520 |
// Do nothing here.
|
sl@0
|
1521 |
}
|
sl@0
|
1522 |
|
sl@0
|
1523 |
inline void CStringPool_MultipleCSDynamicString_Transition::TransitMethodL()
|
sl@0
|
1524 |
{
|
sl@0
|
1525 |
_LIT(KStringPoolMultipleCSDynamicStringTransitMethod, "CStringPool::MultipleCSDynamicString transition");
|
sl@0
|
1526 |
Context().DataLogger().LogInformation(KStringPoolMultipleCSDynamicStringTransitMethod);
|
sl@0
|
1527 |
Context().iResult = Context().iE==Context().iF;
|
sl@0
|
1528 |
}
|
sl@0
|
1529 |
|
sl@0
|
1530 |
inline CStringPool_UnitTestContext& CStringPool_MultipleCSDynamicString_Transition::Context() const
|
sl@0
|
1531 |
{
|
sl@0
|
1532 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
1533 |
}
|
sl@0
|
1534 |
|
sl@0
|
1535 |
|
sl@0
|
1536 |
// ______________________________________________________________________________
|
sl@0
|
1537 |
//
|
sl@0
|
1538 |
_LIT(KStringPoolMultipleCSIndexToStringDynamicTransition,"CStringPool_MultipleCSIndexToStringDynamic_Transition");
|
sl@0
|
1539 |
|
sl@0
|
1540 |
inline CStringPool_MultipleCSIndexToStringDynamic_Transition::CStringPool_MultipleCSIndexToStringDynamic_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1541 |
TTransitionValidator& aValidator)
|
sl@0
|
1542 |
: CTransitionType(KStringPoolMultipleCSIndexToStringDynamicTransition, aUTContext, aValidator)
|
sl@0
|
1543 |
{
|
sl@0
|
1544 |
// Do nothing here.
|
sl@0
|
1545 |
}
|
sl@0
|
1546 |
|
sl@0
|
1547 |
inline void CStringPool_MultipleCSIndexToStringDynamic_Transition::TransitMethodL()
|
sl@0
|
1548 |
{
|
sl@0
|
1549 |
_LIT(KStringPoolMultipleCSIndexToStringDynamicTransitMethod, "CStringPool::MultipleCSIndexToStringDynamic transition");
|
sl@0
|
1550 |
Context().DataLogger().LogInformation(KStringPoolMultipleCSIndexToStringDynamicTransitMethod);
|
sl@0
|
1551 |
_LIT8(KStringE, "AnotherString");
|
sl@0
|
1552 |
Context().iResult = (Context().iE.DesC().CompareF(KStringE))==0;
|
sl@0
|
1553 |
}
|
sl@0
|
1554 |
|
sl@0
|
1555 |
inline CStringPool_UnitTestContext& CStringPool_MultipleCSIndexToStringDynamic_Transition::Context() const
|
sl@0
|
1556 |
{
|
sl@0
|
1557 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
1558 |
}
|
sl@0
|
1559 |
|
sl@0
|
1560 |
|
sl@0
|
1561 |
// ______________________________________________________________________________
|
sl@0
|
1562 |
//
|
sl@0
|
1563 |
_LIT(KStringPoolMultipleTableDtorTransition,"CStringPool_MultipleTableDtor_Transition");
|
sl@0
|
1564 |
|
sl@0
|
1565 |
inline CStringPool_MultipleTableDtor_Transition::CStringPool_MultipleTableDtor_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1566 |
TTransitionValidator& aValidator)
|
sl@0
|
1567 |
: CTransitionType(KStringPoolMultipleTableDtorTransition, aUTContext, aValidator)
|
sl@0
|
1568 |
{
|
sl@0
|
1569 |
// Do nothing here.
|
sl@0
|
1570 |
}
|
sl@0
|
1571 |
|
sl@0
|
1572 |
inline void CStringPool_MultipleTableDtor_Transition::TransitMethodL()
|
sl@0
|
1573 |
{
|
sl@0
|
1574 |
_LIT(KStringPoolMultipleTableDtorTransitMethod, "CStringPool::MultipleTableDtor transition");
|
sl@0
|
1575 |
Context().DataLogger().LogInformation(KStringPoolMultipleTableDtorTransitMethod);
|
sl@0
|
1576 |
Context().iA.Close();
|
sl@0
|
1577 |
Context().iB.Close();
|
sl@0
|
1578 |
Context().iC.Close();
|
sl@0
|
1579 |
Context().iD.Close();
|
sl@0
|
1580 |
Context().iE.Close();
|
sl@0
|
1581 |
Context().iF.Close();
|
sl@0
|
1582 |
|
sl@0
|
1583 |
Context().iFA.Close();
|
sl@0
|
1584 |
Context().iFB.Close();
|
sl@0
|
1585 |
Context().iFC.Close();
|
sl@0
|
1586 |
Context().iFD.Close();
|
sl@0
|
1587 |
Context().iFE.Close();
|
sl@0
|
1588 |
Context().iFF.Close();
|
sl@0
|
1589 |
|
sl@0
|
1590 |
Context().iStringPool.Close();
|
sl@0
|
1591 |
}
|
sl@0
|
1592 |
|
sl@0
|
1593 |
inline CStringPool_UnitTestContext& CStringPool_MultipleTableDtor_Transition::Context() const
|
sl@0
|
1594 |
{
|
sl@0
|
1595 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
1596 |
}
|
sl@0
|
1597 |
|
sl@0
|
1598 |
// ______________________________________________________________________________
|
sl@0
|
1599 |
//
|
sl@0
|
1600 |
_LIT(KStringPoolBEU55DJG3Transition,"CStringPool_BEU55DJG3_Transition");
|
sl@0
|
1601 |
|
sl@0
|
1602 |
inline CStringPool_BEU55DJG3_Transition::CStringPool_BEU55DJG3_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1603 |
TTransitionValidator& aValidator)
|
sl@0
|
1604 |
: CTransitionType(KStringPoolBEU55DJG3Transition, aUTContext, aValidator)
|
sl@0
|
1605 |
{
|
sl@0
|
1606 |
// Do nothing here.
|
sl@0
|
1607 |
}
|
sl@0
|
1608 |
|
sl@0
|
1609 |
inline void CStringPool_BEU55DJG3_Transition::TransitMethodL()
|
sl@0
|
1610 |
{
|
sl@0
|
1611 |
_LIT(KStringPoolBEU55DJG3TransitMethod, "CStringPool::BEU55DJG3 transition");
|
sl@0
|
1612 |
_LIT(KMinus1, "The Index() function returns = KErrNotFound");
|
sl@0
|
1613 |
_LIT(KOther, "The Index() function returns something != -1");
|
sl@0
|
1614 |
Context().DataLogger().LogInformation(KStringPoolBEU55DJG3TransitMethod);
|
sl@0
|
1615 |
TInt result;
|
sl@0
|
1616 |
result = Context().iEmptyOne.Index(Context().iTestTable);
|
sl@0
|
1617 |
if (result == KErrNotFound)
|
sl@0
|
1618 |
{
|
sl@0
|
1619 |
Context().iResult = 1; //ETrue
|
sl@0
|
1620 |
Context().DataLogger().LogInformation(KMinus1);
|
sl@0
|
1621 |
}
|
sl@0
|
1622 |
else
|
sl@0
|
1623 |
{
|
sl@0
|
1624 |
Context().iResult = 0 ;//EFalse
|
sl@0
|
1625 |
Context().DataLogger().LogInformation(KOther);
|
sl@0
|
1626 |
}
|
sl@0
|
1627 |
|
sl@0
|
1628 |
}
|
sl@0
|
1629 |
|
sl@0
|
1630 |
inline CStringPool_UnitTestContext& CStringPool_BEU55DJG3_Transition::Context() const
|
sl@0
|
1631 |
{
|
sl@0
|
1632 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
1633 |
}
|
sl@0
|
1634 |
|
sl@0
|
1635 |
// ______________________________________________________________________________
|
sl@0
|
1636 |
//
|
sl@0
|
1637 |
_LIT(KStringPoolKRN56NDEZTransition,"CStringPool_KRN56NDEZ_Transition");
|
sl@0
|
1638 |
|
sl@0
|
1639 |
inline CStringPool_KRN56NDEZ_Transition::CStringPool_KRN56NDEZ_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1640 |
TTransitionValidator& aValidator)
|
sl@0
|
1641 |
: CTransitionType(KStringPoolKRN56NDEZTransition, aUTContext, aValidator)
|
sl@0
|
1642 |
{
|
sl@0
|
1643 |
// Do nothing here.
|
sl@0
|
1644 |
}
|
sl@0
|
1645 |
|
sl@0
|
1646 |
inline void CStringPool_KRN56NDEZ_Transition::TransitMethodL()
|
sl@0
|
1647 |
{
|
sl@0
|
1648 |
_LIT(KStringPoolKRN56NDEZTransitMethod, "CStringPool::KRN56NDEZ transition");
|
sl@0
|
1649 |
_LIT(KTestOK,"\n Test Passed");
|
sl@0
|
1650 |
_LIT(KTestFailed,"\nTest Failed");
|
sl@0
|
1651 |
|
sl@0
|
1652 |
|
sl@0
|
1653 |
Context().DataLogger().LogInformation(KStringPoolKRN56NDEZTransitMethod);
|
sl@0
|
1654 |
|
sl@0
|
1655 |
//Open 2 tables with some string duplicates and open them
|
sl@0
|
1656 |
Context().iStringPool.OpenL(Short::Table);
|
sl@0
|
1657 |
Context().iStringPool.OpenL(Short2::Table);
|
sl@0
|
1658 |
|
sl@0
|
1659 |
Context().iFAString = Context().iStringPool.StringF(Short2::EString,Short2::Table);
|
sl@0
|
1660 |
const TStringTable* originalTable= Context().iFAString.OriginalTableRef();
|
sl@0
|
1661 |
|
sl@0
|
1662 |
Context().iFADuplicateString = Context().iStringPool.StringF(Short::EString,Short::Table);
|
sl@0
|
1663 |
const TStringTable* ShortTable= Context().iFA.OriginalTableRef();
|
sl@0
|
1664 |
|
sl@0
|
1665 |
|
sl@0
|
1666 |
if (ShortTable==originalTable)
|
sl@0
|
1667 |
{
|
sl@0
|
1668 |
Context().iResult=ETrue;
|
sl@0
|
1669 |
Context().DataLogger().LogInformation(KTestOK);
|
sl@0
|
1670 |
}
|
sl@0
|
1671 |
else
|
sl@0
|
1672 |
{
|
sl@0
|
1673 |
Context().iResult=EFalse;
|
sl@0
|
1674 |
Context().DataLogger().LogInformation(KTestFailed);
|
sl@0
|
1675 |
}
|
sl@0
|
1676 |
|
sl@0
|
1677 |
}
|
sl@0
|
1678 |
|
sl@0
|
1679 |
inline CStringPool_UnitTestContext& CStringPool_KRN56NDEZ_Transition::Context() const
|
sl@0
|
1680 |
{
|
sl@0
|
1681 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
1682 |
}
|
sl@0
|
1683 |
|
sl@0
|
1684 |
// ______________________________________________________________________________
|
sl@0
|
1685 |
//
|
sl@0
|
1686 |
_LIT(KStringPoolAPY57TEH3Transition,"CStringPool_APY57TEH3_Transition");
|
sl@0
|
1687 |
|
sl@0
|
1688 |
inline CStringPool_APY57TEH3_Transition::CStringPool_APY57TEH3_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1689 |
TTransitionValidator& aValidator)
|
sl@0
|
1690 |
: CTransitionType(KStringPoolAPY57TEH3Transition, aUTContext, aValidator)
|
sl@0
|
1691 |
{
|
sl@0
|
1692 |
// Do nothing here.
|
sl@0
|
1693 |
}
|
sl@0
|
1694 |
|
sl@0
|
1695 |
inline void CStringPool_APY57TEH3_Transition::TransitMethodL()
|
sl@0
|
1696 |
{
|
sl@0
|
1697 |
_LIT(KStringPoolAPY57TEH3TransitMethod, "CStringPool::APY57TEH3 transition");
|
sl@0
|
1698 |
Context().DataLogger().LogInformation(KStringPoolAPY57TEH3TransitMethod);
|
sl@0
|
1699 |
|
sl@0
|
1700 |
|
sl@0
|
1701 |
Context().iResult=(Context().iEmptyOne!=Context().iTFE);
|
sl@0
|
1702 |
|
sl@0
|
1703 |
|
sl@0
|
1704 |
}
|
sl@0
|
1705 |
|
sl@0
|
1706 |
inline CStringPool_UnitTestContext& CStringPool_APY57TEH3_Transition::Context() const
|
sl@0
|
1707 |
{
|
sl@0
|
1708 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
1709 |
}
|
sl@0
|
1710 |
|
sl@0
|
1711 |
|
sl@0
|
1712 |
// ______________________________________________________________________________
|
sl@0
|
1713 |
//
|
sl@0
|
1714 |
_LIT(KStringPoolHAD57SK27Transition,"CStringPool_HAD57SK27_Transition");
|
sl@0
|
1715 |
|
sl@0
|
1716 |
inline CStringPool_HAD57SK27_Transition::CStringPool_HAD57SK27_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
1717 |
TTransitionValidator& aValidator)
|
sl@0
|
1718 |
: CTransitionType(KStringPoolHAD57SK27Transition, aUTContext, aValidator)
|
sl@0
|
1719 |
{
|
sl@0
|
1720 |
// Do nothing here.
|
sl@0
|
1721 |
}
|
sl@0
|
1722 |
|
sl@0
|
1723 |
inline void CStringPool_HAD57SK27_Transition::TransitMethodL()
|
sl@0
|
1724 |
{
|
sl@0
|
1725 |
_LIT(KStringPoolHAD57SK27TransitMethod, "CStringPool::HAD57SK27 transition");
|
sl@0
|
1726 |
Context().DataLogger().LogInformation(KStringPoolHAD57SK27TransitMethod);
|
sl@0
|
1727 |
|
sl@0
|
1728 |
|
sl@0
|
1729 |
// Create string pool and load HTTP static table
|
sl@0
|
1730 |
RStringPool pool;
|
sl@0
|
1731 |
|
sl@0
|
1732 |
pool.OpenL();
|
sl@0
|
1733 |
|
sl@0
|
1734 |
_LIT8(KUndeletable_EX, "_ex");
|
sl@0
|
1735 |
Context().iUndeletable_EX = pool.OpenStringL(KUndeletable_EX);
|
sl@0
|
1736 |
|
sl@0
|
1737 |
_LIT8(KUndeletable_A," _a");
|
sl@0
|
1738 |
Context().iUndeletable_A = pool.OpenStringL(KUndeletable_A());
|
sl@0
|
1739 |
|
sl@0
|
1740 |
// Load SecurityPolicyProperties static table
|
sl@0
|
1741 |
pool.OpenL(SecurityPolicyPluginStrings::Table);
|
sl@0
|
1742 |
|
sl@0
|
1743 |
// Close strings opened
|
sl@0
|
1744 |
Context().iUndeletable_EX.Close();
|
sl@0
|
1745 |
Context().iUndeletable_A.Close();
|
sl@0
|
1746 |
|
sl@0
|
1747 |
// Close the string pool
|
sl@0
|
1748 |
pool.Close();
|
sl@0
|
1749 |
//if at this point the m pool string pool closes fine .the test has passed
|
sl@0
|
1750 |
_LIT(KTestHAD57SK27OK,"\n Defect HAD57SK27OK test : OK\n");
|
sl@0
|
1751 |
Context().DataLogger().LogInformation(KTestHAD57SK27OK);
|
sl@0
|
1752 |
Context().iResult=ETrue;
|
sl@0
|
1753 |
|
sl@0
|
1754 |
}
|
sl@0
|
1755 |
|
sl@0
|
1756 |
inline CStringPool_UnitTestContext& CStringPool_HAD57SK27_Transition::Context() const
|
sl@0
|
1757 |
{
|
sl@0
|
1758 |
return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
|
sl@0
|
1759 |
}
|
sl@0
|
1760 |
|