35 |
35 |
36 // EXTERNAL FUNCTION PROTOTYPES |
36 // EXTERNAL FUNCTION PROTOTYPES |
37 //extern ?external_function( ?arg_type,?arg_type ); |
37 //extern ?external_function( ?arg_type,?arg_type ); |
38 |
38 |
39 // CONSTANTS |
39 // CONSTANTS |
40 _LIT( KEnter, "Enter" ); |
40 //_LIT( KEnter, "Enter" ); |
41 _LIT( KOnGoing, "On-going" ); |
41 //_LIT( KOnGoing, "On-going" ); |
42 _LIT( KExit, "Exit" ); |
42 //_LIT( KExit, "Exit" ); |
43 |
43 |
44 // MACROS |
44 // MACROS |
45 //#define ?macro ?macro_def |
45 //#define ?macro ?macro_def |
46 |
46 |
47 // LOCAL CONSTANTS AND MACROS |
47 // LOCAL CONSTANTS AND MACROS |
137 */ |
137 */ |
138 |
138 |
139 static TCaseInfoInternal const KCases[] = |
139 static TCaseInfoInternal const KCases[] = |
140 { |
140 { |
141 // To add new test cases, add new items to this array |
141 // To add new test cases, add new items to this array |
142 ENTRY( "Get connected accessories (no accessories connected)", AccMonitorTestNoL ), |
142 ENTRY( "Get connected accessories (no accessories connected)", &CAccMonitoringTestModule::AccMonitorTestNoL ), |
143 ENTRY( "Get connected accessories test(one accessory)", AccMonitorTestOneL ), |
143 ENTRY( "Get connected accessories test(one accessory)", &CAccMonitoringTestModule::AccMonitorTestOneL ), |
144 ENTRY( "Get connected accessories test(multiple accessories)", AccMonitorTestMultiL ), |
144 ENTRY( "Get connected accessories test(multiple accessories)", &CAccMonitoringTestModule::AccMonitorTestMultiL ), |
145 ENTRY( "Test has accessory capa", TestHasAccessoryCapaL ), |
145 ENTRY( "Test has accessory capa", &CAccMonitoringTestModule::TestHasAccessoryCapaL ), |
146 ENTRY( "Test has accessory different capas", TestHasAccessoryDifferentCapasL ), |
146 ENTRY( "Test has accessory different capas", &CAccMonitoringTestModule::TestHasAccessoryDifferentCapasL ), |
147 ENTRY( "Start Observer test(all connections)", StartObservingL ), |
147 ENTRY( "Start Observer test(all connections)", &CAccMonitoringTestModule::StartObservingL ), |
148 ENTRY( "Start Observer test(defined type)", StartObserving1L ), |
148 ENTRY( "Start Observer test(defined type)", &CAccMonitoringTestModule::StartObserving1L ), |
149 ENTRY( "Start Observer test(defined accessory)", StartObserving2L ), |
149 ENTRY( "Start Observer test(defined accessory)", &CAccMonitoringTestModule::StartObserving2L ), |
150 ENTRY( "Start Observer test(wrong accessory)", StartObserving3L ), |
150 ENTRY( "Start Observer test(wrong accessory)", &CAccMonitoringTestModule::StartObserving3L ), |
151 ENTRY( "Start Observer test(monitor non-existing accessory)", StartObserving4L ), |
151 ENTRY( "Start Observer test(monitor non-existing accessory)", &CAccMonitoringTestModule::StartObserving4L ), |
152 ENTRY( "StopObserving test", StopObservingL ), |
152 ENTRY( "StopObserving test", &CAccMonitoringTestModule::StopObservingL ), |
153 ENTRY( "Compare Infos test", CompareInfosL ), |
153 ENTRY( "Compare Infos test", &CAccMonitoringTestModule::CompareInfosL ), |
154 ENTRY( "Get value test", GetValueTestL ), |
154 ENTRY( "Get value test", &CAccMonitoringTestModule::GetValueTestL ), |
155 ENTRY( "Run error test", RunErrTestL ), |
155 ENTRY( "Run error test", &CAccMonitoringTestModule::RunErrTestL ), |
156 ENTRY( "Start observing all capas test", StartObserverAllCapasL ) |
156 ENTRY( "Start observing all capas test", &CAccMonitoringTestModule::StartObserverAllCapasL ) |
157 }; |
157 }; |
158 |
158 |
159 // Verify that case number is valid |
159 // Verify that case number is valid |
160 if( (TUint) aCaseNumber >= sizeof( KCases ) / |
160 if( (TUint) aCaseNumber >= sizeof( KCases ) / |
161 sizeof( TCaseInfoInternal ) ) |
161 sizeof( TCaseInfoInternal ) ) |