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 for the CRegistryData tests.
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//
|
sl@0
|
17 |
|
sl@0
|
18 |
// ______________________________________________________________________________
|
sl@0
|
19 |
//
|
sl@0
|
20 |
_LIT(KRegistryDataNewLTransition,"CRegistryData_NewL_Transition");
|
sl@0
|
21 |
|
sl@0
|
22 |
inline CRegistryData_NewL_Transition::CRegistryData_NewL_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
23 |
TTransitionValidator& aValidator)
|
sl@0
|
24 |
: CTransition(KRegistryDataNewLTransition, aUTContext, aValidator)
|
sl@0
|
25 |
{
|
sl@0
|
26 |
// Do nothing here.
|
sl@0
|
27 |
}
|
sl@0
|
28 |
|
sl@0
|
29 |
inline void CRegistryData_NewL_Transition::TransitMethodL()
|
sl@0
|
30 |
{
|
sl@0
|
31 |
Context().iRegistryData = CRegistryData::NewL(Context().iFs);
|
sl@0
|
32 |
}
|
sl@0
|
33 |
|
sl@0
|
34 |
inline CRegistryData_UnitTestContext& CRegistryData_NewL_Transition::Context() const
|
sl@0
|
35 |
{
|
sl@0
|
36 |
return REINTERPRET_CAST(CRegistryData_UnitTestContext&,iUTContext);
|
sl@0
|
37 |
}
|
sl@0
|
38 |
|
sl@0
|
39 |
// ______________________________________________________________________________
|
sl@0
|
40 |
//
|
sl@0
|
41 |
_LIT(KRegistryDataDtorTransition,"CRegistryData_Dtor_Transition");
|
sl@0
|
42 |
|
sl@0
|
43 |
inline CRegistryData_Dtor_Transition::CRegistryData_Dtor_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
44 |
TTransitionValidator& aValidator)
|
sl@0
|
45 |
: CTransition(KRegistryDataDtorTransition, aUTContext, aValidator)
|
sl@0
|
46 |
{
|
sl@0
|
47 |
// Do nothing here.
|
sl@0
|
48 |
}
|
sl@0
|
49 |
|
sl@0
|
50 |
inline void CRegistryData_Dtor_Transition::TransitMethodL()
|
sl@0
|
51 |
{
|
sl@0
|
52 |
delete Context().iRegistryData;
|
sl@0
|
53 |
Context().iRegistryData = NULL;
|
sl@0
|
54 |
}
|
sl@0
|
55 |
|
sl@0
|
56 |
inline CRegistryData_UnitTestContext& CRegistryData_Dtor_Transition::Context() const
|
sl@0
|
57 |
{
|
sl@0
|
58 |
return REINTERPRET_CAST(CRegistryData_UnitTestContext&,iUTContext);
|
sl@0
|
59 |
}
|
sl@0
|
60 |
|
sl@0
|
61 |
// ______________________________________________________________________________
|
sl@0
|
62 |
//
|
sl@0
|
63 |
_LIT(KRegistryDataAddDllDataLTransition,"CRegistryData_AddDllDataL_Transition");
|
sl@0
|
64 |
|
sl@0
|
65 |
inline CRegistryData_AddDllDataL_Transition::CRegistryData_AddDllDataL_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
66 |
TTransitionValidator& aValidator)
|
sl@0
|
67 |
: CTransitionType(KRegistryDataAddDllDataLTransition, aUTContext, aValidator)
|
sl@0
|
68 |
{
|
sl@0
|
69 |
// Do nothing here.
|
sl@0
|
70 |
}
|
sl@0
|
71 |
|
sl@0
|
72 |
inline void CRegistryData_AddDllDataL_Transition::TransitMethodL()
|
sl@0
|
73 |
{
|
sl@0
|
74 |
_LIT(KRegistryDataAddDllDataLTransitMethod, "CRegistryData::AddDllDataL transition");
|
sl@0
|
75 |
Context().DataLogger().LogInformation(KRegistryDataAddDllDataLTransitMethod);
|
sl@0
|
76 |
Context().iRegistryData->AddDllDataL(Context().iDriveUnit,
|
sl@0
|
77 |
Context().iFoundDriveIndex,
|
sl@0
|
78 |
Context().iDllData);
|
sl@0
|
79 |
|
sl@0
|
80 |
Context().iDllData = NULL;
|
sl@0
|
81 |
}
|
sl@0
|
82 |
|
sl@0
|
83 |
inline CRegistryData_UnitTestContext& CRegistryData_AddDllDataL_Transition::Context() const
|
sl@0
|
84 |
{
|
sl@0
|
85 |
return REINTERPRET_CAST(CRegistryData_UnitTestContext&,iUTContext);
|
sl@0
|
86 |
}
|
sl@0
|
87 |
|
sl@0
|
88 |
// ______________________________________________________________________________
|
sl@0
|
89 |
//
|
sl@0
|
90 |
_LIT(KRegistryDataGetImplementationInformationLTransition,"CRegistryData_GetImplementationInformationL_Transition");
|
sl@0
|
91 |
|
sl@0
|
92 |
inline CRegistryData_GetImplementationInformationL_Transition::CRegistryData_GetImplementationInformationL_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
93 |
TTransitionValidator& aValidator)
|
sl@0
|
94 |
: CTransitionType(KRegistryDataGetImplementationInformationLTransition, aUTContext, aValidator)
|
sl@0
|
95 |
{
|
sl@0
|
96 |
// Do nothing here.
|
sl@0
|
97 |
}
|
sl@0
|
98 |
|
sl@0
|
99 |
inline void CRegistryData_GetImplementationInformationL_Transition::TransitMethodL()
|
sl@0
|
100 |
{
|
sl@0
|
101 |
_LIT(KRegistryDataGetImplementationInformationLTransitMethod, "CRegistryData::GetImplementationInformationL transition");
|
sl@0
|
102 |
Context().DataLogger().LogInformation(KRegistryDataGetImplementationInformationLTransitMethod);
|
sl@0
|
103 |
Context().iImplementationRef = &(Context().iRegistryData->GetImplementationDataL(Context().iImplementationUid));
|
sl@0
|
104 |
}
|
sl@0
|
105 |
|
sl@0
|
106 |
inline CRegistryData_UnitTestContext& CRegistryData_GetImplementationInformationL_Transition::Context() const
|
sl@0
|
107 |
{
|
sl@0
|
108 |
return REINTERPRET_CAST(CRegistryData_UnitTestContext&,iUTContext);
|
sl@0
|
109 |
}
|
sl@0
|
110 |
|
sl@0
|
111 |
// ______________________________________________________________________________
|
sl@0
|
112 |
//
|
sl@0
|
113 |
_LIT(KRegistryDataIsRegisteredWithDateLTransition,"CRegistryData_IsRegisteredWithDateL_Transition");
|
sl@0
|
114 |
|
sl@0
|
115 |
inline CRegistryData_IsRegisteredWithDateL_Transition::CRegistryData_IsRegisteredWithDateL_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
116 |
TTransitionValidator& aValidator)
|
sl@0
|
117 |
: CTransitionType(KRegistryDataIsRegisteredWithDateLTransition, aUTContext, aValidator)
|
sl@0
|
118 |
{
|
sl@0
|
119 |
// Do nothing here.
|
sl@0
|
120 |
}
|
sl@0
|
121 |
|
sl@0
|
122 |
inline void CRegistryData_IsRegisteredWithDateL_Transition::TransitMethodL()
|
sl@0
|
123 |
{
|
sl@0
|
124 |
_LIT(KRegistryDataIsRegisteredWithDateLTransitMethod, "CRegistryData::IsRegisteredWithDateL transition");
|
sl@0
|
125 |
Context().DataLogger().LogInformation(KRegistryDataIsRegisteredWithDateLTransitMethod);
|
sl@0
|
126 |
Context().iRegistryData->IsRegisteredWithDateL(Context().iDriveUnit,
|
sl@0
|
127 |
Context().iDllEntry[2],
|
sl@0
|
128 |
Context().iDllEntry.iModified,
|
sl@0
|
129 |
Context().iUpdate,
|
sl@0
|
130 |
Context().iFoundDriveIndex);
|
sl@0
|
131 |
}
|
sl@0
|
132 |
|
sl@0
|
133 |
inline CRegistryData_UnitTestContext& CRegistryData_IsRegisteredWithDateL_Transition::Context() const
|
sl@0
|
134 |
{
|
sl@0
|
135 |
return REINTERPRET_CAST(CRegistryData_UnitTestContext&,iUTContext);
|
sl@0
|
136 |
}
|
sl@0
|
137 |
|
sl@0
|
138 |
// ______________________________________________________________________________
|
sl@0
|
139 |
//
|
sl@0
|
140 |
_LIT(KRegistryDataListImplementationsLTransition,"CRegistryData_ListImplementationsL_Transition");
|
sl@0
|
141 |
|
sl@0
|
142 |
inline CRegistryData_ListImplementationsL_Transition::CRegistryData_ListImplementationsL_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
143 |
TTransitionValidator& aValidator)
|
sl@0
|
144 |
: CTransitionType(KRegistryDataListImplementationsLTransition, aUTContext, aValidator)
|
sl@0
|
145 |
{
|
sl@0
|
146 |
// Do nothing here.
|
sl@0
|
147 |
}
|
sl@0
|
148 |
|
sl@0
|
149 |
inline void CRegistryData_ListImplementationsL_Transition::TransitMethodL()
|
sl@0
|
150 |
{
|
sl@0
|
151 |
_LIT(KRegistryDataListImplementationsLTransitMethod, "CRegistryData::ListImplementationsL transition");
|
sl@0
|
152 |
Context().DataLogger().LogInformation(KRegistryDataListImplementationsLTransitMethod);
|
sl@0
|
153 |
Context().iUidList = &Context().iRegistryData->ListImplementationsL(Context().iInterfaceUid);
|
sl@0
|
154 |
}
|
sl@0
|
155 |
|
sl@0
|
156 |
inline CRegistryData_UnitTestContext& CRegistryData_ListImplementationsL_Transition::Context() const
|
sl@0
|
157 |
{
|
sl@0
|
158 |
return REINTERPRET_CAST(CRegistryData_UnitTestContext&,iUTContext);
|
sl@0
|
159 |
}
|
sl@0
|
160 |
|
sl@0
|
161 |
// ______________________________________________________________________________
|
sl@0
|
162 |
//
|
sl@0
|
163 |
_LIT(KRegistryDataSetEnabledStateTransition,"CRegistryData_SetEnabledState_Transition");
|
sl@0
|
164 |
|
sl@0
|
165 |
inline CRegistryData_SetEnabledState_Transition::CRegistryData_SetEnabledState_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
166 |
TTransitionValidator& aValidator)
|
sl@0
|
167 |
: CTransitionType(KRegistryDataSetEnabledStateTransition, aUTContext, aValidator)
|
sl@0
|
168 |
{
|
sl@0
|
169 |
// Do nothing here.
|
sl@0
|
170 |
}
|
sl@0
|
171 |
|
sl@0
|
172 |
inline void CRegistryData_SetEnabledState_Transition::TransitMethodL()
|
sl@0
|
173 |
{
|
sl@0
|
174 |
_LIT(KRegistryDataSetEnabledStateTransitMethod, "CRegistryData::SetEnabledState transition");
|
sl@0
|
175 |
Context().DataLogger().LogInformation(KRegistryDataSetEnabledStateTransitMethod);
|
sl@0
|
176 |
Context().iMethodCompletionStatus = Context().iRegistryData->SetEnabledState(Context().iImplementationUid, Context().iEnabledState);
|
sl@0
|
177 |
}
|
sl@0
|
178 |
|
sl@0
|
179 |
inline CRegistryData_UnitTestContext& CRegistryData_SetEnabledState_Transition::Context() const
|
sl@0
|
180 |
{
|
sl@0
|
181 |
return REINTERPRET_CAST(CRegistryData_UnitTestContext&,iUTContext);
|
sl@0
|
182 |
}
|
sl@0
|
183 |
|
sl@0
|
184 |
// ______________________________________________________________________________
|
sl@0
|
185 |
//
|
sl@0
|
186 |
_LIT(KRegistryDataPersistNowLTransition,"CRegistryData_PersistNowL_Transition");
|
sl@0
|
187 |
|
sl@0
|
188 |
inline CRegistryData_PersistNowL_Transition::CRegistryData_PersistNowL_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
189 |
TTransitionValidator& aValidator)
|
sl@0
|
190 |
: CTransitionType(KRegistryDataPersistNowLTransition, aUTContext, aValidator)
|
sl@0
|
191 |
{
|
sl@0
|
192 |
// Do nothing here.
|
sl@0
|
193 |
}
|
sl@0
|
194 |
|
sl@0
|
195 |
inline void CRegistryData_PersistNowL_Transition::TransitMethodL()
|
sl@0
|
196 |
{
|
sl@0
|
197 |
_LIT(KRegistryDataPersistNowLTransitMethod, "CRegistryData::PersistNowL transition");
|
sl@0
|
198 |
Context().DataLogger().LogInformation(KRegistryDataPersistNowLTransitMethod);
|
sl@0
|
199 |
Context().iRegistryData->PersistNowL();
|
sl@0
|
200 |
}
|
sl@0
|
201 |
|
sl@0
|
202 |
inline CRegistryData_UnitTestContext& CRegistryData_PersistNowL_Transition::Context() const
|
sl@0
|
203 |
{
|
sl@0
|
204 |
return REINTERPRET_CAST(CRegistryData_UnitTestContext&,iUTContext);
|
sl@0
|
205 |
}
|
sl@0
|
206 |
|
sl@0
|
207 |
// ______________________________________________________________________________
|
sl@0
|
208 |
//
|
sl@0
|
209 |
_LIT(KRegistryDataTemporaryUninstallLTransition,"CRegistryData_TemporaryUninstallL_Transition");
|
sl@0
|
210 |
|
sl@0
|
211 |
inline CRegistryData_TemporaryUninstallL_Transition::CRegistryData_TemporaryUninstallL_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
212 |
TTransitionValidator& aValidator)
|
sl@0
|
213 |
: CTransitionType(KRegistryDataTemporaryUninstallLTransition, aUTContext, aValidator)
|
sl@0
|
214 |
{
|
sl@0
|
215 |
// Do nothing here.
|
sl@0
|
216 |
}
|
sl@0
|
217 |
|
sl@0
|
218 |
inline void CRegistryData_TemporaryUninstallL_Transition::TransitMethodL()
|
sl@0
|
219 |
{
|
sl@0
|
220 |
_LIT(KRegistryDataTemporaryUninstallLTransitMethod, "CRegistryData::TemporaryUninstallL transition");
|
sl@0
|
221 |
Context().DataLogger().LogInformation(KRegistryDataTemporaryUninstallLTransitMethod);
|
sl@0
|
222 |
Context().iRegistryData->TemporaryUninstallL(Context().iDriveUnit);
|
sl@0
|
223 |
}
|
sl@0
|
224 |
|
sl@0
|
225 |
inline CRegistryData_UnitTestContext& CRegistryData_TemporaryUninstallL_Transition::Context() const
|
sl@0
|
226 |
{
|
sl@0
|
227 |
return REINTERPRET_CAST(CRegistryData_UnitTestContext&,iUTContext);
|
sl@0
|
228 |
}
|
sl@0
|
229 |
|
sl@0
|
230 |
// ______________________________________________________________________________
|
sl@0
|
231 |
//
|
sl@0
|
232 |
_LIT(KRegistryDataUndoTemporaryUninstallLTransition,"CRegistryData_UndoTemporaryUninstallL_Transition");
|
sl@0
|
233 |
|
sl@0
|
234 |
inline CRegistryData_UndoTemporaryUninstallL_Transition::CRegistryData_UndoTemporaryUninstallL_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
235 |
TTransitionValidator& aValidator)
|
sl@0
|
236 |
: CTransitionType(KRegistryDataUndoTemporaryUninstallLTransition, aUTContext, aValidator)
|
sl@0
|
237 |
{
|
sl@0
|
238 |
// Do nothing here.
|
sl@0
|
239 |
}
|
sl@0
|
240 |
|
sl@0
|
241 |
inline void CRegistryData_UndoTemporaryUninstallL_Transition::TransitMethodL()
|
sl@0
|
242 |
{
|
sl@0
|
243 |
_LIT(KRegistryDataUndoTemporaryUninstallLTransitMethod, "CRegistryData::UndoTemporaryUninstallL transition");
|
sl@0
|
244 |
Context().DataLogger().LogInformation(KRegistryDataUndoTemporaryUninstallLTransitMethod);
|
sl@0
|
245 |
Context().iRegistryData->UndoTemporaryUninstallL(Context().iDriveUnit);
|
sl@0
|
246 |
}
|
sl@0
|
247 |
|
sl@0
|
248 |
inline CRegistryData_UnitTestContext& CRegistryData_UndoTemporaryUninstallL_Transition::Context() const
|
sl@0
|
249 |
{
|
sl@0
|
250 |
return REINTERPRET_CAST(CRegistryData_UnitTestContext&,iUTContext);
|
sl@0
|
251 |
}
|
sl@0
|
252 |
|
sl@0
|
253 |
// ______________________________________________________________________________
|
sl@0
|
254 |
//
|
sl@0
|
255 |
_LIT(KRegistryDataUpdateDllDataLTransition,"CRegistryData_UpdateDllDataL_Transition");
|
sl@0
|
256 |
|
sl@0
|
257 |
inline CRegistryData_UpdateDllDataL_Transition::CRegistryData_UpdateDllDataL_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
258 |
TTransitionValidator& aValidator)
|
sl@0
|
259 |
: CTransitionType(KRegistryDataUpdateDllDataLTransition, aUTContext, aValidator)
|
sl@0
|
260 |
{
|
sl@0
|
261 |
// Do nothing here.
|
sl@0
|
262 |
}
|
sl@0
|
263 |
|
sl@0
|
264 |
inline void CRegistryData_UpdateDllDataL_Transition::TransitMethodL()
|
sl@0
|
265 |
{
|
sl@0
|
266 |
_LIT(KRegistryDataUpdateDllDataLTransitMethod, "CRegistryData::UpdateDllDataL transition");
|
sl@0
|
267 |
Context().DataLogger().LogInformation(KRegistryDataUpdateDllDataLTransitMethod);
|
sl@0
|
268 |
Context().iRegistryData->UpdateDllDataL(Context().iFoundDriveIndex, Context().iNewDllData);
|
sl@0
|
269 |
|
sl@0
|
270 |
Context().iNewDllData = NULL;
|
sl@0
|
271 |
}
|
sl@0
|
272 |
|
sl@0
|
273 |
inline CRegistryData_UnitTestContext& CRegistryData_UpdateDllDataL_Transition::Context() const
|
sl@0
|
274 |
{
|
sl@0
|
275 |
return REINTERPRET_CAST(CRegistryData_UnitTestContext&,iUTContext);
|
sl@0
|
276 |
}
|
sl@0
|
277 |
|
sl@0
|
278 |
// ______________________________________________________________________________
|
sl@0
|
279 |
//
|
sl@0
|
280 |
_LIT(KRegistryDataBuildIndexesLTransition,"CRegistryData_BuildIndexesL_Transition");
|
sl@0
|
281 |
|
sl@0
|
282 |
inline CRegistryData_BuildIndexesL_Transition::CRegistryData_BuildIndexesL_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
283 |
TTransitionValidator& aValidator)
|
sl@0
|
284 |
: CTransitionType(KRegistryDataBuildIndexesLTransition, aUTContext, aValidator)
|
sl@0
|
285 |
{
|
sl@0
|
286 |
// Do nothing here.
|
sl@0
|
287 |
}
|
sl@0
|
288 |
|
sl@0
|
289 |
inline void CRegistryData_BuildIndexesL_Transition::TransitMethodL()
|
sl@0
|
290 |
{
|
sl@0
|
291 |
_LIT(KRegistryDataBuildIndexesLTransitMethod, "CRegistryData::BuildIndexesL transition");
|
sl@0
|
292 |
Context().DataLogger().LogInformation(KRegistryDataBuildIndexesLTransitMethod);
|
sl@0
|
293 |
TRegistryData_StateAccessor& accessor =
|
sl@0
|
294 |
REINTERPRET_CAST(TRegistryData_StateAccessor&, Context().StateAccessor());
|
sl@0
|
295 |
accessor.BuildIndexesL(*Context().iRegistryData);
|
sl@0
|
296 |
}
|
sl@0
|
297 |
|
sl@0
|
298 |
inline CRegistryData_UnitTestContext& CRegistryData_BuildIndexesL_Transition::Context() const
|
sl@0
|
299 |
{
|
sl@0
|
300 |
return REINTERPRET_CAST(CRegistryData_UnitTestContext&,iUTContext);
|
sl@0
|
301 |
}
|
sl@0
|
302 |
|
sl@0
|
303 |
// ______________________________________________________________________________
|
sl@0
|
304 |
//
|
sl@0
|
305 |
_LIT(KRegistryDataIndexedFindTransition,"CRegistryData_IndexedFind_Transition");
|
sl@0
|
306 |
|
sl@0
|
307 |
inline CRegistryData_IndexedFind_Transition::CRegistryData_IndexedFind_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
308 |
TTransitionValidator& aValidator)
|
sl@0
|
309 |
: CTransitionType(KRegistryDataIndexedFindTransition, aUTContext, aValidator)
|
sl@0
|
310 |
{
|
sl@0
|
311 |
// Do nothing here.
|
sl@0
|
312 |
}
|
sl@0
|
313 |
|
sl@0
|
314 |
inline void CRegistryData_IndexedFind_Transition::TransitMethodL()
|
sl@0
|
315 |
{
|
sl@0
|
316 |
_LIT(KRegistryDataIndexedFindTransitMethod, "CRegistryData::IndexedFind transition");
|
sl@0
|
317 |
Context().DataLogger().LogInformation(KRegistryDataIndexedFindTransitMethod);
|
sl@0
|
318 |
TRegistryData_StateAccessor& accessor =
|
sl@0
|
319 |
REINTERPRET_CAST(TRegistryData_StateAccessor&, Context().StateAccessor());
|
sl@0
|
320 |
accessor.IndexedFind(*Context().iRegistryData, Context().iImplementationUid);
|
sl@0
|
321 |
}
|
sl@0
|
322 |
|
sl@0
|
323 |
inline CRegistryData_UnitTestContext& CRegistryData_IndexedFind_Transition::Context() const
|
sl@0
|
324 |
{
|
sl@0
|
325 |
return REINTERPRET_CAST(CRegistryData_UnitTestContext&,iUTContext);
|
sl@0
|
326 |
}
|
sl@0
|
327 |
|
sl@0
|
328 |
// ______________________________________________________________________________
|
sl@0
|
329 |
//
|
sl@0
|
330 |
_LIT(KRegistryDataRestoreLTransition,"CRegistryData_RestoreL_Transition");
|
sl@0
|
331 |
|
sl@0
|
332 |
inline CRegistryData_RestoreL_Transition::CRegistryData_RestoreL_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
333 |
TTransitionValidator& aValidator)
|
sl@0
|
334 |
: CTransitionType(KRegistryDataRestoreLTransition, aUTContext, aValidator)
|
sl@0
|
335 |
{
|
sl@0
|
336 |
// Do nothing here.
|
sl@0
|
337 |
}
|
sl@0
|
338 |
|
sl@0
|
339 |
inline void CRegistryData_RestoreL_Transition::TransitMethodL()
|
sl@0
|
340 |
{
|
sl@0
|
341 |
_LIT(KRegistryDataRestoreLTransitMethod, "CRegistryData::RestoreL transition");
|
sl@0
|
342 |
Context().DataLogger().LogInformation(KRegistryDataRestoreLTransitMethod);
|
sl@0
|
343 |
TRegistryData_StateAccessor& accessor =
|
sl@0
|
344 |
REINTERPRET_CAST(TRegistryData_StateAccessor&, Context().StateAccessor());
|
sl@0
|
345 |
accessor.RestoreL(*Context().iRegistryData, Context().iReadStream);
|
sl@0
|
346 |
}
|
sl@0
|
347 |
|
sl@0
|
348 |
inline CRegistryData_UnitTestContext& CRegistryData_RestoreL_Transition::Context() const
|
sl@0
|
349 |
{
|
sl@0
|
350 |
return REINTERPRET_CAST(CRegistryData_UnitTestContext&,iUTContext);
|
sl@0
|
351 |
}
|
sl@0
|
352 |
|
sl@0
|
353 |
// ______________________________________________________________________________
|
sl@0
|
354 |
//
|
sl@0
|
355 |
_LIT(KRegistryDataStoreLTransition,"CRegistryData_StoreL_Transition");
|
sl@0
|
356 |
|
sl@0
|
357 |
inline CRegistryData_StoreL_Transition::CRegistryData_StoreL_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
358 |
TTransitionValidator& aValidator)
|
sl@0
|
359 |
: CTransitionType(KRegistryDataStoreLTransition, aUTContext, aValidator)
|
sl@0
|
360 |
{
|
sl@0
|
361 |
// Do nothing here.
|
sl@0
|
362 |
}
|
sl@0
|
363 |
|
sl@0
|
364 |
inline void CRegistryData_StoreL_Transition::TransitMethodL()
|
sl@0
|
365 |
{
|
sl@0
|
366 |
_LIT(KRegistryDataStoreLTransitMethod, "CRegistryData::StoreL transition");
|
sl@0
|
367 |
Context().DataLogger().LogInformation(KRegistryDataStoreLTransitMethod);
|
sl@0
|
368 |
TRegistryData_StateAccessor& accessor =
|
sl@0
|
369 |
REINTERPRET_CAST(TRegistryData_StateAccessor&, Context().StateAccessor());
|
sl@0
|
370 |
accessor.StoreL(*Context().iRegistryData, Context().iWriteStream);
|
sl@0
|
371 |
}
|
sl@0
|
372 |
|
sl@0
|
373 |
inline CRegistryData_UnitTestContext& CRegistryData_StoreL_Transition::Context() const
|
sl@0
|
374 |
{
|
sl@0
|
375 |
return REINTERPRET_CAST(CRegistryData_UnitTestContext&,iUTContext);
|
sl@0
|
376 |
}
|
sl@0
|
377 |
|
sl@0
|
378 |
// ______________________________________________________________________________
|
sl@0
|
379 |
//
|
sl@0
|
380 |
_LIT(KRegistryDataMatchOnUidTransition,"CRegistryData_MatchOnUid_Transition");
|
sl@0
|
381 |
|
sl@0
|
382 |
inline CRegistryData_MatchOnUid_Transition::CRegistryData_MatchOnUid_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
383 |
TTransitionValidator& aValidator)
|
sl@0
|
384 |
: CTransitionType(KRegistryDataMatchOnUidTransition, aUTContext, aValidator)
|
sl@0
|
385 |
{
|
sl@0
|
386 |
// Do nothing here.
|
sl@0
|
387 |
}
|
sl@0
|
388 |
|
sl@0
|
389 |
inline void CRegistryData_MatchOnUid_Transition::TransitMethodL()
|
sl@0
|
390 |
{
|
sl@0
|
391 |
_LIT(KRegistryDataMatchOnUidTransitMethod, "CRegistryData::MatchOnUid transition");
|
sl@0
|
392 |
Context().DataLogger().LogInformation(KRegistryDataMatchOnUidTransitMethod);
|
sl@0
|
393 |
TRegistryData_StateAccessor& accessor =
|
sl@0
|
394 |
REINTERPRET_CAST(TRegistryData_StateAccessor&, Context().StateAccessor());
|
sl@0
|
395 |
accessor.MatchOnUid();
|
sl@0
|
396 |
}
|
sl@0
|
397 |
|
sl@0
|
398 |
inline CRegistryData_UnitTestContext& CRegistryData_MatchOnUid_Transition::Context() const
|
sl@0
|
399 |
{
|
sl@0
|
400 |
return REINTERPRET_CAST(CRegistryData_UnitTestContext&,iUTContext);
|
sl@0
|
401 |
}
|
sl@0
|
402 |
|
sl@0
|
403 |
// ______________________________________________________________________________
|
sl@0
|
404 |
//
|
sl@0
|
405 |
_LIT(KRegistryDataDiscoveriesBeginningTransition,"CRegistryData_DiscoveriesBeginning_Transition");
|
sl@0
|
406 |
|
sl@0
|
407 |
inline CRegistryData_DiscoveriesBeginning_Transition::CRegistryData_DiscoveriesBeginning_Transition(CUnitTestContext& aUTContext,
|
sl@0
|
408 |
TTransitionValidator& aValidator)
|
sl@0
|
409 |
: CTransition(KRegistryDataDiscoveriesBeginningTransition, aUTContext, aValidator)
|
sl@0
|
410 |
{
|
sl@0
|
411 |
// Do nothing here.
|
sl@0
|
412 |
}
|
sl@0
|
413 |
|
sl@0
|
414 |
inline void CRegistryData_DiscoveriesBeginning_Transition::TransitMethodL()
|
sl@0
|
415 |
{
|
sl@0
|
416 |
_LIT(KRegistryDataDiscoveriesBeginningTransitMethod, "CRegistryData::DiscoveriesBeginning transition");
|
sl@0
|
417 |
Context().DataLogger().LogInformation(KRegistryDataDiscoveriesBeginningTransitMethod);
|
sl@0
|
418 |
|
sl@0
|
419 |
Context().iRegistryData->DiscoveriesBeginning();
|
sl@0
|
420 |
}
|
sl@0
|
421 |
|
sl@0
|
422 |
inline CRegistryData_UnitTestContext& CRegistryData_DiscoveriesBeginning_Transition::Context() const
|
sl@0
|
423 |
{
|
sl@0
|
424 |
return REINTERPRET_CAST(CRegistryData_UnitTestContext&,iUTContext);
|
sl@0
|
425 |
}
|
sl@0
|
426 |
|