equal
deleted
inserted
replaced
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Eclipse Public License v1.0" |
4 // under the terms of the License "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
54 test_KErrNone(HcrTest.Test_FindCompiledSettingsInCategory(TestCat, |
54 test_KErrNone(HcrTest.Test_FindCompiledSettingsInCategory(TestCat, |
55 &firstEl, &lastEl)); |
55 &firstEl, &lastEl)); |
56 test_Equal((lastEl - firstEl + 1), NumInTestCat); |
56 test_Equal((lastEl - firstEl + 1), NumInTestCat); |
57 |
57 |
58 // Load file repository data for the boundary test condition |
58 // Load file repository data for the boundary test condition |
59 const TText * fileBc0 = (const TText *)"filerepos_bc0.dat"; |
59 const TText8 * fileBc0 = (const TText8 *)"filerepos_bc0.dat"; |
60 test_KErrNone(HcrTest.Test_SwitchFileRepository(fileBc0)); |
60 TInt len0 = sizeof("filerepos_bc0.dat"); |
|
61 test_KErrNone(HcrTest.Test_SwitchFileRepository(fileBc0, len0)); |
61 |
62 |
62 // Test the low end boundary conditions in the file repository. |
63 // Test the low end boundary conditions in the file repository. |
63 // First element in the category is also the first element in the |
64 // First element in the category is also the first element in the |
64 // repository |
65 // repository |
65 TestCat = 0x00000001; |
66 TestCat = 0x00000001; |
80 test_Equal((lastEl - firstEl + 1), NumInTestCat); |
81 test_Equal((lastEl - firstEl + 1), NumInTestCat); |
81 |
82 |
82 |
83 |
83 |
84 |
84 //Load relevant coreImg repository |
85 //Load relevant coreImg repository |
85 const TText * fileBc1 = (const TText *)"filerepos_bc1.dat"; |
86 const TText8 * fileBc1 = (const TText8 *)"filerepos_bc1.dat"; |
86 test_KErrNone(HcrTest.Test_SwitchFileRepository(fileBc1)); |
87 TInt len1 = sizeof("filerepos_bc1.dat"); |
|
88 test_KErrNone(HcrTest.Test_SwitchFileRepository(fileBc1, len1)); |
87 |
89 |
88 |
90 |
89 //Test the low end boundary condition when first element of the |
91 //Test the low end boundary condition when first element of the |
90 //repository does not belong to the requested category, so first element |
92 //repository does not belong to the requested category, so first element |
91 // in TestBc1Cat0 is second in the repository. |
93 // in TestBc1Cat0 is second in the repository. |