24
|
1 |
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
#include <e32test.h>
|
|
17 |
|
|
18 |
#include "TE_EtelMMTestStepBase.h"
|
|
19 |
#include "TE_mmonstore.h"
|
|
20 |
#include "testdef.h"
|
|
21 |
|
|
22 |
CTestOnStore::CTestOnStore()
|
|
23 |
/** Each test step initialises it's own name
|
|
24 |
*/
|
|
25 |
{
|
|
26 |
// store the name of this test case
|
|
27 |
// this is the name that is used by the script file
|
|
28 |
SetTestStepName(_L("TestOnStore"));
|
|
29 |
}
|
|
30 |
|
|
31 |
enum TVerdict CTestOnStore::doTestStepL()
|
|
32 |
//
|
|
33 |
// Test ON Storage Functions
|
|
34 |
//
|
|
35 |
{
|
|
36 |
iTestCount=1;
|
|
37 |
INFO_PRINTF1(_L(""));
|
|
38 |
INFO_PRINTF1(_L("Test Mobile Own Number Storage Functionality"));
|
|
39 |
// LOGTEXT(_L8("Test Mobile Own Number Storage Functionality"));
|
|
40 |
|
|
41 |
RMobilePhone mmPhone;
|
|
42 |
TInt ret=mmPhone.Open(iTelServer,DMMTSY_PHONE_NAME);
|
|
43 |
TEST(ret==KErrNone);
|
|
44 |
|
|
45 |
RMobileONStore onStore;
|
|
46 |
ret=onStore.Open(mmPhone);
|
|
47 |
TEST(ret==KErrNone);
|
|
48 |
|
|
49 |
TRequestStatus reqStatus;
|
|
50 |
|
|
51 |
|
|
52 |
// Get ON store information
|
|
53 |
|
|
54 |
// asynchronous
|
|
55 |
|
|
56 |
RMobileONStore::TMobileONStoreInfoV1 asyncInfo;
|
|
57 |
RMobileONStore::TMobileONStoreInfoV1Pckg asyncInfoPckg(asyncInfo);
|
|
58 |
onStore.GetInfo(reqStatus, asyncInfoPckg);
|
|
59 |
User::WaitForRequest(reqStatus);
|
|
60 |
TEST(reqStatus.Int()==KErrNone);
|
|
61 |
ValidateONInfo(asyncInfo);
|
|
62 |
|
|
63 |
// asynchronous & cancel
|
|
64 |
|
|
65 |
onStore.GetInfo(reqStatus, asyncInfoPckg);
|
|
66 |
onStore.CancelAsyncRequest(EMobilePhoneStoreGetInfo);
|
|
67 |
User::WaitForRequest(reqStatus);
|
|
68 |
TEST(reqStatus.Int()==KErrNone || reqStatus.Int()==KErrCancel);
|
|
69 |
if (reqStatus.Int()==KErrCancel)
|
|
70 |
INFO_PRINTF2(_L("Test %d - RMobileONStore::GetInfo (async & cancel (Cancelled Request)) passed"), iTestCount++);
|
|
71 |
|
|
72 |
else
|
|
73 |
{
|
|
74 |
ValidateONInfo(asyncInfo);
|
|
75 |
INFO_PRINTF2(_L("Test %d - RMobileONStore::GetInfo (async & cancel (Request Not Cancelled)) passed"), iTestCount++);
|
|
76 |
}
|
|
77 |
|
|
78 |
// test.Next(_L("OK: RMobileONStore's Get Info"));
|
|
79 |
|
|
80 |
|
|
81 |
// Read one entry
|
|
82 |
|
|
83 |
RMobileONStore::TMobileONEntryV1 asyncEntry1;
|
|
84 |
|
|
85 |
// asynchronous
|
|
86 |
|
|
87 |
asyncEntry1.iIndex = DMMTSY_ON_STORE_INDEX1;
|
|
88 |
RMobileONStore::TMobileONEntryV1Pckg asyncEntry1Pckg(asyncEntry1);
|
|
89 |
|
|
90 |
onStore.Read(reqStatus,asyncEntry1Pckg);
|
|
91 |
User::WaitForRequest(reqStatus);
|
|
92 |
TEST(reqStatus.Int()==KErrNone);
|
|
93 |
|
|
94 |
ValidateONRead(asyncEntry1);
|
|
95 |
|
|
96 |
|
|
97 |
// cancel
|
|
98 |
|
|
99 |
asyncEntry1.iIndex = DMMTSY_ON_STORE_INDEX1;
|
|
100 |
onStore.Read(reqStatus, asyncEntry1Pckg);
|
|
101 |
onStore.CancelAsyncRequest(EMobilePhoneStoreRead);
|
|
102 |
User::WaitForRequest(reqStatus);
|
|
103 |
TEST(reqStatus.Int()==KErrNone || reqStatus.Int()==KErrCancel);
|
|
104 |
if (reqStatus.Int()==KErrCancel)
|
|
105 |
INFO_PRINTF2(_L("Test %d - RMobileONStore::Read (async & cancel (Cancelled Request)) passed"), iTestCount++);
|
|
106 |
else
|
|
107 |
{
|
|
108 |
ValidateONRead(asyncEntry1);
|
|
109 |
INFO_PRINTF2(_L("Test %d - RMobileONStore::Read (async & cancel (Request Not Cancelled)) passed"), iTestCount++);
|
|
110 |
}
|
|
111 |
|
|
112 |
// test.Next(_L("OK: RMobileONStore's Read Entry"));
|
|
113 |
|
|
114 |
// Write one entry
|
|
115 |
|
|
116 |
RMobileONStore::TMobileONEntryV1 entry2;
|
|
117 |
RMobileONStore::TMobileONEntryV1Pckg entry2Pckg(entry2);
|
|
118 |
|
|
119 |
InitONEntry(entry2);
|
|
120 |
|
|
121 |
// asynchronous
|
|
122 |
|
|
123 |
entry2.iIndex=DMMTSY_ON_STORE_INDEX2;
|
|
124 |
onStore.Write(reqStatus, entry2Pckg);
|
|
125 |
User::WaitForRequest(reqStatus);
|
|
126 |
TEST(reqStatus.Int()==KErrNone);
|
|
127 |
|
|
128 |
// aynchronous & cancel
|
|
129 |
|
|
130 |
onStore.Write(reqStatus, entry2Pckg);
|
|
131 |
onStore.CancelAsyncRequest(EMobilePhoneStoreWrite);
|
|
132 |
User::WaitForRequest(reqStatus);
|
|
133 |
TEST(reqStatus.Int()==KErrNone || reqStatus.Int()==KErrCancel);
|
|
134 |
|
|
135 |
if (reqStatus.Int()==KErrCancel)
|
|
136 |
INFO_PRINTF2(_L("Test %d - RMobileONStore::Write (async & cancel (Cancelled Request)) passed"), iTestCount++);
|
|
137 |
else
|
|
138 |
INFO_PRINTF2(_L("Test %d - RMobileONStore::Write (async & cancel (Request Not Cancelled)) passed"), iTestCount++);
|
|
139 |
|
|
140 |
// test.Next(_L("OK: RMobileONStore's Write Entry"));
|
|
141 |
|
|
142 |
// Delete one entry
|
|
143 |
|
|
144 |
// asynchronous
|
|
145 |
|
|
146 |
onStore.Delete(reqStatus, DMMTSY_ON_STORE_INDEX1);
|
|
147 |
User::WaitForRequest(reqStatus);
|
|
148 |
TEST(reqStatus.Int()==KErrNone);
|
|
149 |
|
|
150 |
// cancel
|
|
151 |
|
|
152 |
onStore.Delete(reqStatus, DMMTSY_ON_STORE_INDEX1);
|
|
153 |
onStore.CancelAsyncRequest(EMobilePhoneStoreDelete);
|
|
154 |
User::WaitForRequest(reqStatus);
|
|
155 |
TEST(reqStatus.Int()==KErrNone || reqStatus.Int()==KErrCancel);
|
|
156 |
|
|
157 |
if (reqStatus.Int()==KErrCancel)
|
|
158 |
INFO_PRINTF2(_L("Test %d - RMobileONStore::Delete (async & cancel (Cancelled Request)) passed"), iTestCount++);
|
|
159 |
else
|
|
160 |
INFO_PRINTF2(_L("Test %d - RMobileONStore::Delete (async & cancel (Request Not Cancelled)) passed"), iTestCount++);
|
|
161 |
|
|
162 |
// Delete all entries
|
|
163 |
|
|
164 |
// asynchronous
|
|
165 |
|
|
166 |
onStore.DeleteAll(reqStatus);
|
|
167 |
User::WaitForRequest(reqStatus);
|
|
168 |
TEST(reqStatus.Int()==KErrNone);
|
|
169 |
|
|
170 |
// asynchronous & cancel
|
|
171 |
|
|
172 |
onStore.DeleteAll(reqStatus);
|
|
173 |
onStore.CancelAsyncRequest(EMobilePhoneStoreDeleteAll);
|
|
174 |
User::WaitForRequest(reqStatus);
|
|
175 |
TEST(reqStatus.Int()==KErrNone || reqStatus.Int()==KErrCancel);
|
|
176 |
if (reqStatus.Int()==KErrCancel)
|
|
177 |
INFO_PRINTF2(_L("Test %d - RMobileONStore::DeleteAll (async & cancel (Cancelled Request)) passed"), iTestCount++);
|
|
178 |
else
|
|
179 |
INFO_PRINTF2(_L("Test %d - RMobileONStore::DeleteAll (async & cancel (Request Not Cancelled)) passed"), iTestCount++);
|
|
180 |
|
|
181 |
// test.Next(_L("OK: RMobileonStore's Delete Entries"));
|
|
182 |
|
|
183 |
|
|
184 |
// Notify Entry Changed
|
|
185 |
|
|
186 |
// asynchronous
|
|
187 |
TInt index;
|
|
188 |
|
|
189 |
TUint32 event;
|
|
190 |
onStore.NotifyStoreEvent(reqStatus, event, index);
|
|
191 |
User::WaitForRequest(reqStatus);
|
|
192 |
TEST(reqStatus.Int()==KErrNone);
|
|
193 |
TEST(index==DMMTSY_ON_STORE_INDEX2);
|
|
194 |
TEST(event==DMMTSY_ON_STORE_EVENT);
|
|
195 |
|
|
196 |
// asychronous & cancel
|
|
197 |
|
|
198 |
onStore.NotifyStoreEvent(reqStatus, event, index);
|
|
199 |
onStore.CancelAsyncRequest(EMobilePhoneStoreNotifyStoreEvent);
|
|
200 |
User::WaitForRequest(reqStatus);
|
|
201 |
TEST(reqStatus.Int()==KErrNone || reqStatus.Int()==KErrCancel);
|
|
202 |
if (reqStatus.Int()==KErrCancel)
|
|
203 |
INFO_PRINTF2(_L("Test %d - RMobileONStore::NotifyStoreEvent (async & cancel (Cancelled Request)) passed"), iTestCount++);
|
|
204 |
else
|
|
205 |
{
|
|
206 |
TEST(index==DMMTSY_ON_STORE_INDEX2);
|
|
207 |
TEST(event==DMMTSY_ON_STORE_EVENT);
|
|
208 |
INFO_PRINTF2(_L("Test %d - RMobileONStore::NotifyStoreEvent (async & cancel (Request Not Cancelled)) passed"), iTestCount++);
|
|
209 |
}
|
|
210 |
|
|
211 |
// test.Next(_L("OK: RMobileONStore's Notify Store Event change"));
|
|
212 |
|
|
213 |
|
|
214 |
// Read all ON entries
|
|
215 |
|
|
216 |
//Test deletion of list object whilst async request in progress
|
|
217 |
CRetrieveMobilePhoneONList* retrieve=CRetrieveMobilePhoneONList::NewL(onStore);
|
|
218 |
retrieve->Start(reqStatus);
|
|
219 |
delete retrieve;
|
|
220 |
retrieve = NULL;
|
|
221 |
User::WaitForRequest(reqStatus);
|
|
222 |
TEST(reqStatus == KErrCancel);
|
|
223 |
|
|
224 |
// Get ON list using asynchronous AO version
|
|
225 |
CTestGetONList* getONList=CTestGetONList::NewLC(onStore, this);
|
|
226 |
getONList->Start();
|
|
227 |
CActiveScheduler::Start();
|
|
228 |
|
|
229 |
// Ensure that the same AO can be used to retrieve multiple lists.
|
|
230 |
|
|
231 |
getONList->Start();
|
|
232 |
CActiveScheduler::Start();
|
|
233 |
|
|
234 |
// I only need to delete the retrieval object because the destructor
|
|
235 |
// of this will also delete the list object.
|
|
236 |
CleanupStack::PopAndDestroy(); // getONList
|
|
237 |
|
|
238 |
// Now test the cancelling
|
|
239 |
|
|
240 |
getONList=CTestGetONList::NewLC(onStore, this);
|
|
241 |
getONList->Start();
|
|
242 |
|
|
243 |
CTestCanceller* cancelGetONList = getONList->RetrieveCancelPtr();
|
|
244 |
cancelGetONList->Call();
|
|
245 |
|
|
246 |
CActiveScheduler::Start();
|
|
247 |
TBool cancelled = (getONList->iStatus == KErrCancel);
|
|
248 |
|
|
249 |
getONList->Start();
|
|
250 |
CActiveScheduler::Start();
|
|
251 |
|
|
252 |
if (cancelled)
|
|
253 |
INFO_PRINTF2(_L("Test %d - RMobileONStore::ReadAll (sync & async & cancel (Cancelled Request)) passed"), iTestCount++);
|
|
254 |
else
|
|
255 |
INFO_PRINTF2(_L("Test %d - RMobileONStore::ReadAll (sync & async & cancel (Request Not Cancelled)) passed"), iTestCount++);
|
|
256 |
|
|
257 |
|
|
258 |
CleanupStack::PopAndDestroy(); // getONList
|
|
259 |
|
|
260 |
// test.Next(_L("OK: RMobileONStore's Read All Entries"));
|
|
261 |
|
|
262 |
// Storing a new version of the list
|
|
263 |
|
|
264 |
|
|
265 |
RMobileONStore::TMobileONEntryV1 storeEntry;
|
|
266 |
|
|
267 |
CMobilePhoneONList* onList = CMobilePhoneONList::NewL();
|
|
268 |
CleanupStack::PushL(onList);
|
|
269 |
|
|
270 |
InitONEntry(storeEntry);
|
|
271 |
storeEntry.iIndex = DMMTSY_ON_STORE_INDEX1;
|
|
272 |
|
|
273 |
onList->AddEntryL(storeEntry);
|
|
274 |
storeEntry.iIndex = DMMTSY_ON_STORE_INDEX2;
|
|
275 |
onList->AddEntryL(storeEntry);
|
|
276 |
|
|
277 |
// asynchronous
|
|
278 |
|
|
279 |
onStore.StoreAllL(reqStatus, onList);
|
|
280 |
User::WaitForRequest(reqStatus);
|
|
281 |
TEST(reqStatus.Int()==KErrNone);
|
|
282 |
|
|
283 |
// aynchronous & cancel
|
|
284 |
|
|
285 |
onStore.StoreAllL(reqStatus, onList);
|
|
286 |
onStore.CancelAsyncRequest(EMobileONStoreStoreAll);
|
|
287 |
User::WaitForRequest(reqStatus);
|
|
288 |
TEST(reqStatus.Int()==KErrNone || reqStatus.Int()==KErrCancel);
|
|
289 |
cancelled = (reqStatus.Int()==KErrCancel);
|
|
290 |
|
|
291 |
// Ensure that a Store operation can be performed after the previous store had been cancelled.
|
|
292 |
|
|
293 |
onStore.StoreAllL(reqStatus, onList);
|
|
294 |
User::WaitForRequest(reqStatus);
|
|
295 |
TEST(reqStatus.Int()==KErrNone);
|
|
296 |
|
|
297 |
if (cancelled)
|
|
298 |
INFO_PRINTF2(_L("Test %d - RMobileONStore::StoreAll (sync & async & cancel (Cancelled Request)) passed"), iTestCount++);
|
|
299 |
else
|
|
300 |
INFO_PRINTF2(_L("Test %d - RMobileONStore::StoreAll (sync & async & cancel (Request Not Cancelled)) passed"), iTestCount++);
|
|
301 |
|
|
302 |
CleanupStack::PopAndDestroy(); // namList
|
|
303 |
|
|
304 |
// test.Next(_L("OK: RMobileONStore's Store All Entries"));
|
|
305 |
|
|
306 |
onStore.Close();
|
|
307 |
mmPhone.Close();
|
|
308 |
INFO_PRINTF1(_L(""));
|
|
309 |
|
|
310 |
return TestStepResult();
|
|
311 |
}
|
|
312 |
|
|
313 |
void CTestOnStore::ValidateONInfo(const RMobileONStore::TMobileONStoreInfoV1 &aInfo)
|
|
314 |
{
|
|
315 |
TEST(aInfo.iName.Compare(DMMTSY_ON_STORE_NAME) == 0);
|
|
316 |
TEST(aInfo.iType==DMMTSY_ON_STORE_TYPE);
|
|
317 |
TEST(aInfo.iTotalEntries==DMMTSY_ON_STORE_ENTRIES);
|
|
318 |
TEST(aInfo.iUsedEntries==DMMTSY_ON_STORE_USED);
|
|
319 |
TEST(aInfo.iCaps==DMMTSY_ON_STORE_CAPS);
|
|
320 |
|
|
321 |
TEST(aInfo.iNumberLen == DMMTSY_ON_STORE_INFO_GSM_MAX_NUM);
|
|
322 |
TEST(aInfo.iTextLen == DMMTSY_ON_STORE_INFO_GSM_MAX_TEXT);
|
|
323 |
TEST(aInfo.ExtensionId()==RMobilePhoneStore::KETelMobileONStoreV1);
|
|
324 |
}
|
|
325 |
|
|
326 |
void CTestOnStore::ValidateONEntry(const RMobileONStore::TMobileONEntryV1 &aEntry)
|
|
327 |
{
|
|
328 |
TEST(aEntry.iMode == DMMTSY_ON_STORE_ENTRY_MODE);
|
|
329 |
TEST(aEntry.iText.Compare(DMMTSY_ON_STORE_ENTRY_TEXT) == 0);
|
|
330 |
TEST(aEntry.iNumber.iTypeOfNumber == DMMTSY_PHONE_TON);
|
|
331 |
TEST(aEntry.iNumber.iNumberPlan == DMMTSY_PHONE_NPI);
|
|
332 |
TEST(aEntry.iNumber.iTelNumber.Compare(DMMTSY_PHONE_TEL_NUMBER) == 0);
|
|
333 |
TEST(aEntry.iService == DMMTSY_ON_STORE_ENTRY_SERVICE);
|
|
334 |
}
|
|
335 |
|
|
336 |
void CTestOnStore::ValidateONRead(const RMobileONStore::TMobileONEntryV1 &aEntry)
|
|
337 |
{
|
|
338 |
ValidateONEntry(aEntry);
|
|
339 |
}
|
|
340 |
|
|
341 |
void CTestOnStore::InitONEntry(RMobileONStore::TMobileONEntryV1& aEntry)
|
|
342 |
{
|
|
343 |
aEntry.iMode = DMMTSY_ON_STORE_ENTRY_MODE;
|
|
344 |
aEntry.iText = DMMTSY_ON_STORE_ENTRY_TEXT;
|
|
345 |
aEntry.iNumber.iTypeOfNumber = DMMTSY_PHONE_TON;
|
|
346 |
aEntry.iNumber.iNumberPlan = DMMTSY_PHONE_NPI;
|
|
347 |
aEntry.iNumber.iTelNumber = DMMTSY_PHONE_TEL_NUMBER;
|
|
348 |
aEntry.iService = DMMTSY_ON_STORE_ENTRY_SERVICE;
|
|
349 |
}
|
|
350 |
|
|
351 |
/**************************************************************/
|
|
352 |
//
|
|
353 |
// Testing asynchronous retrieve of ON list
|
|
354 |
//
|
|
355 |
/**************************************************************/
|
|
356 |
|
|
357 |
CTestOnStore::CTestGetONList* CTestOnStore::CTestGetONList::NewLC(RMobilePhoneStore& aStore, CTestOnStore* aTestOnStore)
|
|
358 |
{
|
|
359 |
CTestGetONList* r=new(ELeave) CTestGetONList(aStore, aTestOnStore);
|
|
360 |
CleanupStack::PushL(r);
|
|
361 |
r->ConstructL();
|
|
362 |
return r;
|
|
363 |
}
|
|
364 |
|
|
365 |
CTestOnStore::CTestGetONList::CTestGetONList(RMobilePhoneStore& aStore, CTestOnStore* aTestOnStore)
|
|
366 |
: CActive(EPriorityNormal), iStore(aStore), iTestOnStore(aTestOnStore)
|
|
367 |
{}
|
|
368 |
|
|
369 |
|
|
370 |
void CTestOnStore::CTestGetONList::ConstructL()
|
|
371 |
{
|
|
372 |
CActiveScheduler::Add(this);
|
|
373 |
iRetrieve=CRetrieveMobilePhoneONList::NewL(iStore);
|
|
374 |
iCanceller=new (ELeave) CTestCanceller(this);
|
|
375 |
}
|
|
376 |
|
|
377 |
CTestOnStore::CTestGetONList::~CTestGetONList()
|
|
378 |
{
|
|
379 |
delete iRetrieve;
|
|
380 |
delete iCanceller;
|
|
381 |
}
|
|
382 |
|
|
383 |
void CTestOnStore::CTestGetONList::Start()
|
|
384 |
{
|
|
385 |
iRetrieve->Start(iStatus);
|
|
386 |
TRequestStatus tmpStatus;
|
|
387 |
iRetrieve->Start(tmpStatus);
|
|
388 |
User::WaitForRequest(tmpStatus);
|
|
389 |
iTestOnStore->TEST(tmpStatus.Int() == KErrInUse);
|
|
390 |
SetActive();
|
|
391 |
}
|
|
392 |
|
|
393 |
CTestCanceller* CTestOnStore::CTestGetONList::RetrieveCancelPtr()
|
|
394 |
{
|
|
395 |
return iCanceller;
|
|
396 |
}
|
|
397 |
|
|
398 |
void CTestOnStore::CTestGetONList::RunL()
|
|
399 |
{
|
|
400 |
TInt ret=iStatus.Int();
|
|
401 |
|
|
402 |
User::LeaveIfError(ret);
|
|
403 |
ret=CheckResults();
|
|
404 |
User::LeaveIfError(ret);
|
|
405 |
|
|
406 |
CActiveScheduler::Stop();
|
|
407 |
}
|
|
408 |
|
|
409 |
|
|
410 |
void CTestOnStore::CTestGetONList::DoCancel()
|
|
411 |
{
|
|
412 |
iRetrieve->Cancel();
|
|
413 |
}
|
|
414 |
|
|
415 |
|
|
416 |
TInt CTestOnStore::CTestGetONList::CheckResults()
|
|
417 |
{
|
|
418 |
TInt ret=KErrNone;
|
|
419 |
|
|
420 |
CMobilePhoneONList* onList=NULL;
|
|
421 |
TInt leaveCode=KErrNone;
|
|
422 |
TRAP(leaveCode, onList=iRetrieve->RetrieveListL(););
|
|
423 |
|
|
424 |
if (onList)
|
|
425 |
{
|
|
426 |
iTestOnStore->TEST(onList->Enumerate()==DMMTSY_ON_STORE_COUNT);
|
|
427 |
|
|
428 |
// Get each detected network entry
|
|
429 |
RMobileONStore::TMobileONEntryV1 entry;
|
|
430 |
|
|
431 |
for (TInt i=0; i<DMMTSY_ON_STORE_COUNT; ++i)
|
|
432 |
{
|
|
433 |
TRAP(ret,entry=onList->GetEntryL(i));
|
|
434 |
if (ret != KErrNone)
|
|
435 |
break;
|
|
436 |
switch(i)
|
|
437 |
{
|
|
438 |
case 0:
|
|
439 |
{
|
|
440 |
iTestOnStore->ValidateONEntry(entry);
|
|
441 |
iTestOnStore->TEST(entry.iIndex==DMMTSY_ON_STORE_INDEX1);
|
|
442 |
break;
|
|
443 |
}
|
|
444 |
case 1:
|
|
445 |
{
|
|
446 |
iTestOnStore->ValidateONEntry(entry);
|
|
447 |
iTestOnStore->TEST(entry.iIndex==DMMTSY_ON_STORE_INDEX2);
|
|
448 |
break;
|
|
449 |
}
|
|
450 |
default:
|
|
451 |
break;
|
|
452 |
}
|
|
453 |
}
|
|
454 |
delete onList;
|
|
455 |
}
|
|
456 |
|
|
457 |
return ret;
|
|
458 |
}
|