1 /* |
1 /* |
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of the License "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
20 #include "tauthdbstep.h" |
20 #include "tauthdbstep.h" |
21 #include <f32file.h> |
21 #include <f32file.h> |
22 |
22 |
23 using namespace AuthServer; |
23 using namespace AuthServer; |
24 |
24 |
25 const TIdentityId KIdentity1Id = 'I1ID'; |
25 const TIdentityId KIdentity1Id = 0xE0494409; |
26 const TIdentityId KIdentity2Id = 'I2ID'; |
26 const TIdentityId KIdentity2Id = 0xE0494410; |
27 const TIdentityId KIdentity3Id = 'I3ID'; |
27 const TIdentityId KIdentity3Id = 0xE0494411; |
28 _LIT(KIdentity1Desc, "identity-1-desc"); |
28 _LIT(KIdentity1Desc, "identity-1-desc"); |
29 _LIT(KIdentity1DescB, "identity-1-descB"); |
29 _LIT(KIdentity1DescB, "identity-1-descB"); |
30 _LIT(KIdentity2Desc, "identity-2-desc"); |
30 _LIT(KIdentity2Desc, "identity-2-desc"); |
31 _LIT(KIdentity3Desc, "identity-3-desc"); |
31 _LIT(KIdentity3Desc, "identity-3-desc"); |
32 |
32 |
33 const TPluginId KPlugin1Id = 'PID1'; |
33 const TPluginId KPlugin1Id = 0xE0494433; |
34 const TPluginId KPlugin2Id = 'PID2'; |
34 const TPluginId KPlugin2Id = 0xE0494434; |
35 const TPluginId KPlugin3Id = 'PID3'; |
35 const TPluginId KPlugin3Id = 0xE0494435; |
36 const TPluginId KPlugin4Id = 'PID4'; |
36 const TPluginId KPlugin4Id = 0xE0494436; |
37 const TPluginId KPluginAId = 'PIDA'; |
37 const TPluginId KPluginAId = 0xE0494437; |
38 const TPluginId KPluginBId = 'PIDB'; |
38 const TPluginId KPluginBId = 0xE0494438; |
39 |
39 |
40 |
40 |
41 CTStepPersist2::CTStepPersist2() |
41 CTStepPersist2::CTStepPersist2() |
42 { |
42 { |
43 SetTestStepName(KTStepCreateTestDb); |
43 SetTestStepName(KTStepCreateTestDb); |
83 CAuthDb2* db = CAuthDb2::NewLC(iFs); |
83 CAuthDb2* db = CAuthDb2::NewLC(iFs); |
84 |
84 |
85 RArray<TIdentityId> ids; |
85 RArray<TIdentityId> ids; |
86 |
86 |
87 // get id list before any ids defined |
87 // get id list before any ids defined |
88 ids.AppendL('SYMB'); // garbage; ensure removed |
88 ids.AppendL(0xE0494499); // garbage; ensure removed |
89 db->IdentitiesL(ids); |
89 db->IdentitiesL(ids); |
90 TESTL(ids.Count() == 0); |
90 TESTL(ids.Count() == 0); |
91 |
91 |
92 // add an identity |
92 // add an identity |
93 db->AddIdentityL(KIdentity1Id, KIdentity1Desc); |
93 db->AddIdentityL(KIdentity1Id, KIdentity1Desc); |