|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Constants used in test configuration files. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 @test |
|
22 */ |
|
23 |
|
24 #ifndef MAKETESTCONFIG_H |
|
25 #define MAKETESTCONFIG_H |
|
26 |
|
27 #include <e32cmn.h> |
|
28 |
|
29 // Naming scheme for feature ID constants in small valid config test: |
|
30 // |
|
31 // UNFeat = unsupported feature not in default=supported range (need not be listed in config file) |
|
32 // URFeat = unsupported feature in default=supported range (must be listed in config file) |
|
33 // SNFeat = supported feature not in default=supported range (must be listed in config file) |
|
34 // SRFeat = supported feature in default=supported range (need not be listed in config file) |
|
35 // LoFeat = low-feature-Id of default=supported range |
|
36 // HiFeat = high-feature-Id of default=supported range |
|
37 // Id = TInt identifier |
|
38 // St = status word |
|
39 |
|
40 const TUint32 KFeatRegTest1_01_UNFeatId = 0x12345679; |
|
41 const TUint32 KFeatRegTest1_02_SNFeatId = 0x12345678; |
|
42 const TUint32 KFeatRegTest1_02_SNFeatSt = 0x41; // low-bit set = supported, other bits to retrieve through API |
|
43 const TUint32 KFeatRegTest1_03_LoFeatId = 0x20000000; |
|
44 const TUint32 KFeatRegTest1_04_HiFeatId = 0x20000FFF; |
|
45 const TUint32 KFeatRegTest1_05_URFeatId = 0x20000100; |
|
46 const TUint32 KFeatRegTest1_05_URFeatSt = 0x2; // low-bit not set = unsupported, 2nd bit set = upgradable |
|
47 const TUint32 KFeatRegTest1_06_SRFeatId = 0x20000123; |
|
48 const TUint32 KFeatRegTest_DummyRangeId = 0x2FFFFFFF; |
|
49 |
|
50 // Parameters for large valid config test: |
|
51 // start, stop & increment of features added to config file |
|
52 // plus "not supported" bit to alternate support of queried features. |
|
53 const TUint32 KFeatRegTest2_01_FirstId = 0x00000000; |
|
54 const TUint32 KFeatRegTest2_02_LastId = 0xFF000000; |
|
55 const TUint32 KFeatRegTest2_03_IncrId = 0x00010000; |
|
56 const TUint32 KFeatRegTest2_04_numTestFeatures = 0x100; |
|
57 // listed features are not supported if following bit set (alternately with above increment): |
|
58 const TUint32 KFeatRegTest2_05_NotSupportedBit = 0x01000000; |
|
59 // default=supported ranges have following bit set: |
|
60 const TUint32 KFeatRegTest2_06_DefSupportedBit = 0x20000000; |
|
61 const TUint32 KFeatRegTest2_07_rangeCount = 4; |
|
62 |
|
63 #endif |