12 // |
12 // |
13 // Description: |
13 // Description: |
14 // Hardware Configuration Respoitory Test Application |
14 // Hardware Configuration Respoitory Test Application |
15 // |
15 // |
16 |
16 |
|
17 #ifndef D_HCRSIM_TESTDATA_H |
|
18 #define D_HCRSIM_TESTDATA_H |
|
19 |
17 const TText8* TestString1 = reinterpret_cast<const TText8*>("_"); |
20 const TText8* TestString1 = reinterpret_cast<const TText8*>("_"); |
18 const TText8* TestString64a = reinterpret_cast<const TText8*>("Two peanuts walked into a bar, and ... one was a-salted... !!! #"); |
21 const TText8* TestString64a = reinterpret_cast<const TText8*>("Two peanuts walked into a bar, and ... one was a-salted... !!! #"); |
19 const TText8* TestString64b = reinterpret_cast<const TText8*>("A termite walks into a bar and says, 'Is the bar tender here?' #"); |
22 const TText8* TestString64b = reinterpret_cast<const TText8*>("A termite walks into a bar and says, 'Is the bar tender here?' #"); |
20 const TText8* TestString512a = reinterpret_cast<const TText8*>("ENSUTIXABRMNOBXIEZTGSIYAPKNHESPUFWXCVGLHKKYHEMLOJMSSXYZWYCJWHJSJAPNDTJVGXBQKLECTVCOSGFHGLSCXNGSVWJBRLIRLEZSNWAHVVFKXWRLXJVEKCUKUBGJILRKSAAWBNCKCVSYTSZUSBPJDZNQEFXTKZAKCJQDCEHPBLZCNITSZASYRRXBDYNZAWBZBISWRESBPLAIEVQLFZJNJMOGEDUCDQLJEEUZLQLVUTHLODJDETGDIGBUBTZRKNXPLHUSYHNWALUQGSRWAISHLNZZTAWQHHDSCHIRNLDAZUBPQTHOBWMUJNZFQFTGCMAPQWKYEFJBPDFHUBABYRYXQCTQGULIUGHDVYPZUENQDATFRDSFQEXHLUZLNKIZGIUZTNCRZUSJCFXEABFQHBUBVSKQOUIUAGKVTVOIFYHSGNHLHQJYMBOLLOCKSZWQNBBEMFDOQJMBSADSSJEQXDOZJIBWZZWZWPRMVENMGJPSVVDZKGNCRIWIMQWM#"); |
23 const TText8* TestString512a = reinterpret_cast<const TText8*>("ENSUTIXABRMNOBXIEZTGSIYAPKNHESPUFWXCVGLHKKYHEMLOJMSSXYZWYCJWHJSJAPNDTJVGXBQKLECTVCOSGFHGLSCXNGSVWJBRLIRLEZSNWAHVVFKXWRLXJVEKCUKUBGJILRKSAAWBNCKCVSYTSZUSBPJDZNQEFXTKZAKCJQDCEHPBLZCNITSZASYRRXBDYNZAWBZBISWRESBPLAIEVQLFZJNJMOGEDUCDQLJEEUZLQLVUTHLODJDETGDIGBUBTZRKNXPLHUSYHNWALUQGSRWAISHLNZZTAWQHHDSCHIRNLDAZUBPQTHOBWMUJNZFQFTGCMAPQWKYEFJBPDFHUBABYRYXQCTQGULIUGHDVYPZUENQDATFRDSFQEXHLUZLNKIZGIUZTNCRZUSJCFXEABFQHBUBVSKQOUIUAGKVTVOIFYHSGNHLHQJYMBOLLOCKSZWQNBBEMFDOQJMBSADSSJEQXDOZJIBWZZWZWPRMVENMGJPSVVDZKGNCRIWIMQWM#"); |
21 const TText8* TestString512b = reinterpret_cast<const TText8*>("These two strings walk up to a bar. The first string walks in and orders and the bartender throws him out and yells 'I don't serve strings in this bar'. The other string ruffs himself up on the street and curls up and orders. The bartender shouts, 'Hey, didn't you hear what I told your buddy?'. The string says 'Yeah.' The bartender says, 'aren't you a string?' The string says, 'No, I'm a frayed knot...'*********************************************************************************************************?"); |
24 const TText8* TestString512b = reinterpret_cast<const TText8*>("These two strings walk up to a bar. The first string walks in and orders and the bartender throws him out and yells 'I don't serve strings in this bar'. The other string ruffs himself up on the street and curls up and orders. The bartender shouts, 'Hey, didn't you hear what I told your buddy?'. The string says 'Yeah.' The bartender says, 'aren't you a string?' The string says, 'No, I'm a frayed knot...'*********************************************************************************************************?"); |
179 0xc6ca5b37, 0x4d9601b2, 0xfae8cd8e, 0xfb2d2918, |
182 0xc6ca5b37, 0x4d9601b2, 0xfae8cd8e, 0xfb2d2918, |
180 0x4276922e, 0xb1274a4c, 0x93a0ede6, 0x349cfbef, |
183 0x4276922e, 0xb1274a4c, 0x93a0ede6, 0x349cfbef, |
181 0xd665d40b, 0xd88e2f37, 0x4a54a266, 0xbb462ef0, |
184 0xd665d40b, 0xd88e2f37, 0x4a54a266, 0xbb462ef0, |
182 }; |
185 }; |
183 |
186 |
184 const TCategoryUid KTestCategories[] = {1, 2, 1000, 0xffffffff, 0x10000001, 0x10000002, 0x10000003, 0x10000004}; |
187 const TCategoryUid KTestCategories[] = { |
|
188 1, // 0 |
|
189 2, // 1 |
|
190 1000, // 2 |
|
191 0xfffffff0, // 3 |
|
192 0x10000001, // 4 |
|
193 0x10000002, // 5 |
|
194 0x10000003, // 6 |
|
195 0x10000004 // 7 |
|
196 }; |
|
197 |
185 const TInt64 KTestI64One = I64LIT(-1); |
198 const TInt64 KTestI64One = I64LIT(-1); |
186 const TInt64 KTestI64Two = KMinTInt64; |
199 const TInt64 KTestI64Two = KMinTInt64; |
187 const TInt64 KTestI64Three = KMaxTInt64; |
200 const TInt64 KTestI64Three = KMaxTInt64; |
188 const TInt64 KTestU64One = UI64LIT(1); |
201 const TInt64 KTestU64One = UI64LIT(1); |
189 const TInt64 KTestU64Two = KMaxTInt64; |
202 const TInt64 KTestU64Two = KMaxTInt64; |
243 SSettingC SettingsListCorrupt2[] = { |
256 SSettingC SettingsListCorrupt2[] = { |
244 {{{ KTestCategories[0], 1}, ETypeInt32, 0x0000, 0 }, {{ 0 }}}, |
257 {{{ KTestCategories[0], 1}, ETypeInt32, 0x0000, 0 }, {{ 0 }}}, |
245 {{{ KTestCategories[0], 1}, ETypeInt32, 0x0000, 0 }, {{ 0 }}}, |
258 {{{ KTestCategories[0], 1}, ETypeInt32, 0x0000, 0 }, {{ 0 }}}, |
246 {{{ KTestCategories[0], 2}, ETypeInt32, 0x0000, 0 }, {{ 0 }}}, |
259 {{{ KTestCategories[0], 2}, ETypeInt32, 0x0000, 0 }, {{ 0 }}}, |
247 }; |
260 }; |
248 #ifndef __KERNEL_MODE__ |
261 #if !defined(__KERNEL_MODE__) || defined(HCRTEST_USERSIDE_INTERFACE) |
249 const TUint32 KTestInvalidCategory = 1234; |
262 const TUint32 KTestInvalidCategory = 1234; |
250 const TUint32 KTestInvalidSettingId = 5678; |
263 const TUint32 KTestInvalidSettingId = 5678; |
251 |
264 |
252 // The following repositories are only used for reference by the test application |
265 // The following repositories are only used for reference by the test application |
253 // so there is no point cluttering the device driver. |
266 // so there is no point cluttering the device driver. |
655 {{{ KTestCategories[5], 0x00b1}, ETypeArrayUInt32, 0x0000, 512 }, {{ reinterpret_cast<TInt32>(TestUint32Array) }}}, |
668 {{{ KTestCategories[5], 0x00b1}, ETypeArrayUInt32, 0x0000, 512 }, {{ reinterpret_cast<TInt32>(TestUint32Array) }}}, |
656 {{{ KTestCategories[5], 0x00c2}, ETypeInt64, 0x0000, sizeof(TInt64) }, {{ reinterpret_cast<TInt32>(&KTestI64One) }}}, |
669 {{{ KTestCategories[5], 0x00c2}, ETypeInt64, 0x0000, sizeof(TInt64) }, {{ reinterpret_cast<TInt32>(&KTestI64One) }}}, |
657 {{{ KTestCategories[5], 0x00d0}, ETypeUInt64, 0x0000, sizeof(TUint64) }, {{ reinterpret_cast<TInt32>(&KTestU64Three) }}}, |
670 {{{ KTestCategories[5], 0x00d0}, ETypeUInt64, 0x0000, sizeof(TUint64) }, {{ reinterpret_cast<TInt32>(&KTestU64Three) }}}, |
658 {{{ KTestCategories[5], 0xffffffff}, ETypeInt8, 0x0000, 0 }, {{ 1 }}}, |
671 {{{ KTestCategories[5], 0xffffffff}, ETypeInt8, 0x0000, 0 }, {{ 1 }}}, |
659 }; |
672 }; |
660 #endif // __KERNEL_MODE__ |
673 #endif // !defined(__KERNEL_MODE__) || defined(HCRTEST_USERSIDE_INTERFACE) |
|
674 #endif // !D_HCRSIM_TESTDATA_H |