|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 #include "hcr_hai.h" |
|
18 #include "hcr_uids.h" |
|
19 using namespace HCR; |
|
20 #include "d_hcrsim_testdata.h" |
|
21 |
|
22 // Test Repository |
|
23 SRepositoryBase RepositoryHeader = |
|
24 { |
|
25 HCR_FINGER_PRINT, |
|
26 EReposCompiled, |
|
27 KRepositoryFirstVersion, |
|
28 EReposReadOnly, |
|
29 (sizeof(SettingsList) / sizeof(SSettingC)) |
|
30 }; |
|
31 |
|
32 SRepositoryCompiled CompiledRepository = |
|
33 { |
|
34 &RepositoryHeader, |
|
35 SettingsList |
|
36 }; |
|
37 |
|
38 // Empty Repository |
|
39 SSettingC SettingsListEmpty[] = { |
|
40 {{{ 0, 0 }, ETypeUndefined, 0x0000, 0 }, {{ 0 }}} |
|
41 }; |
|
42 |
|
43 SRepositoryBase EmptyRepositoryHeader = |
|
44 { |
|
45 HCR_FINGER_PRINT, |
|
46 EReposCompiled, |
|
47 KRepositoryFirstVersion, |
|
48 EReposReadOnly, |
|
49 0 |
|
50 }; |
|
51 |
|
52 SRepositoryCompiled CompiledEmptyRepository = |
|
53 { |
|
54 &EmptyRepositoryHeader, |
|
55 SettingsListEmpty |
|
56 }; |
|
57 |
|
58 // Corrupt Repository 1 |
|
59 SRepositoryBase RepositoryHeaderCorrupt1 = |
|
60 { |
|
61 HCR_FINGER_PRINT, |
|
62 EReposCompiled, |
|
63 KRepositoryFirstVersion, |
|
64 EReposReadOnly, |
|
65 (sizeof(SettingsListCorrupt1) / sizeof(SSettingC)) |
|
66 }; |
|
67 |
|
68 SRepositoryCompiled CompiledRepositoryCorrupt1 = |
|
69 { |
|
70 &RepositoryHeaderCorrupt1, |
|
71 SettingsListCorrupt1 |
|
72 }; |
|
73 |
|
74 // Corrupt Repository 2 |
|
75 SRepositoryBase RepositoryHeaderCorrupt2 = |
|
76 { |
|
77 HCR_FINGER_PRINT, |
|
78 EReposCompiled, |
|
79 KRepositoryFirstVersion, |
|
80 EReposReadOnly, |
|
81 (sizeof(SettingsListCorrupt2) / sizeof(SSettingC)) |
|
82 }; |
|
83 |
|
84 SRepositoryCompiled CompiledRepositoryCorrupt2 = |
|
85 { |
|
86 &RepositoryHeaderCorrupt2, |
|
87 SettingsListCorrupt2 |
|
88 }; |