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 "Eclipse Public License v1.0" |
5 * under the terms of "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". |
28 #include <centralrepository.h> |
28 #include <centralrepository.h> |
29 |
29 |
30 _LIT(KIniNumOfSettings, "NumSettings"); |
30 _LIT(KIniNumOfSettings, "NumSettings"); |
31 _LIT(KIniExpectedGetResult, "ExpectedGetResult"); |
31 _LIT(KIniExpectedGetResult, "ExpectedGetResult"); |
32 _LIT(KIniExpectedGetValue, "ExpectedGetValue"); |
32 _LIT(KIniExpectedGetValue, "ExpectedGetValue"); |
|
33 _LIT(KIniPMAReposExist, "PMAReposExist"); |
|
34 _LIT(KIniPMAExpectedGetResult, "PMAExpectedGetResult"); |
|
35 _LIT(KIniPMAIsModified, "PMAIsModified"); |
33 |
36 |
34 const TUid KUidBURTestRepository = {0xBACBACBA}; |
37 const TUid KUidBURTestRepository = {0xBACBACBA}; |
35 const TUid KUidBURTestDefaultRepository = {0xBAC2BAC2}; |
38 const TUid KUidBURTestDefaultRepository = {0xBAC2BAC2}; |
36 const TUid KUidBURDefTestRepository = {0xBAEBAEBA}; |
39 const TUid KUidBURDefTestRepository = {0xBAEBAEBA}; |
|
40 |
|
41 const TUid KUidBURTestPMARepository = {0xF1000200}; |
37 |
42 |
38 const TInt KNumBackupSettings = 18; |
43 const TInt KNumBackupSettings = 18; |
39 const TInt KNumDefaultBackupSettings = 3; |
44 const TInt KNumDefaultBackupSettings = 3; |
40 const TInt KNumNonBackupSettings = 16; |
45 const TInt KNumNonBackupSettings = 16; |
41 const TInt KNumDefBackupSettings = 11; |
46 const TInt KNumDefBackupSettings = 11; |
49 const TInt KOrigZeroMetaIntValue = 2; |
54 const TInt KOrigZeroMetaIntValue = 2; |
50 |
55 |
51 // Original Key with metadata 0x01000000 |
56 // Original Key with metadata 0x01000000 |
52 const TUint32 KOrigBackupMetaInt = 0x03; |
57 const TUint32 KOrigBackupMetaInt = 0x03; |
53 const TInt KOrigBackupMetaIntValue = 3; |
58 const TInt KOrigBackupMetaIntValue = 3; |
54 |
|
55 |
59 |
56 // Keys used to test behaviour of deleted settings |
60 // Keys used to test behaviour of deleted settings |
57 |
61 |
58 // Original Key with metadata 0x00000000 (no backup) |
62 // Original Key with metadata 0x00000000 (no backup) |
59 const TUint32 KNoBackupDeleteTestInt = 0x04; |
63 const TUint32 KNoBackupDeleteTestInt = 0x04; |
146 const TUint32 KNewString163 = 0x232; |
150 const TUint32 KNewString163 = 0x232; |
147 _LIT(KString16Value3, "GgGgGgG"); |
151 _LIT(KString16Value3, "GgGgGgG"); |
148 const TUint32 KNewString164 = 0x233; |
152 const TUint32 KNewString164 = 0x233; |
149 _LIT(KString16Value4, "hhhhHHH"); |
153 _LIT(KString16Value4, "hhhhHHH"); |
150 |
154 |
|
155 |
|
156 // PMA key with metadata 0x01000000, to be modified |
|
157 const TUint32 KPMAIntKey= 0x01; |
|
158 const TInt KPMAIntOrigValue = 10; |
|
159 const TInt KPMAIntModifiedValue = 15; |
|
160 |
|
161 const TUint32 KPMARealKey = 0x02; |
|
162 const TReal KPMARealOrigValue = 11.1; |
|
163 const TReal KPMARealModifiedValue = 12.8; |
|
164 |
|
165 const TUint32 KPMABinKey = 0x03; |
|
166 _LIT8(KPMABinOrigValue, "ABCD"); |
|
167 _LIT8(KPMABinModifiedValue, "WXYZ"); |
|
168 |
|
169 const TUint32 KPMAStrKey = 0x04; |
|
170 _LIT(KPMAStrOrigValue, "ABCDEFGHIJ"); |
|
171 _LIT(KPMAStrModifiedValue, "QRSTUVWXYZ"); |
|
172 |
|
173 //PMA setting to be deleted post-backup |
|
174 const TUint32 KPMADeleteIntKey = 0x05; |
|
175 const TInt KPMADeleteIntValue = 12; |
|
176 |
|
177 //PMA setting to be created post-backup |
|
178 const TUint32 KPMACreateIntKey = 0x06; |
|
179 const TInt KPMACreateIntValue = 18; |
|
180 |
|
181 //PMA setting to be created pre-backup |
|
182 const TUint32 KPMAInitIntKey= 0x07; |
|
183 const TInt KPMAInitIntOrigValue = 50; |
|
184 const TInt KPMAInitIntModifiedValue = 65; |
|
185 |
|
186 const TUint32 KPMAInitRealKey = 0x08; |
|
187 const TReal KPMAInitRealOrigValue = 44.4; |
|
188 const TReal KPMAInitRealModifiedValue = 66.6; |
|
189 |
|
190 const TUint32 KPMAInitBinKey = 0x09; |
|
191 _LIT8(KPMAInitBinOrigValue, "AbCdEf"); |
|
192 _LIT8(KPMAInitBinModifiedValue, "gHiJkL"); |
|
193 |
|
194 const TUint32 KPMAInitStrKey = 0x0A; |
|
195 _LIT(KPMAInitStrOrigValue, "klmNoPQr"); |
|
196 _LIT(KPMAInitStrModifiedValue, "sTuvwXyZ"); |
|
197 |
|
198 |
|
199 |
151 ///////////////////////////////////////// |
200 ///////////////////////////////////////// |
152 |
201 |
153 _LIT(KPersistsFiles, "c:\\private\\10202BE9\\persists\\*.txt"); |
202 _LIT(KPersistsFiles, "c:\\private\\10202BE9\\persists\\*.txt"); |
154 |
203 |
155 |
204 |