diff options
-rw-r--r-- | android/tester-bluetooth.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/android/tester-bluetooth.c b/android/tester-bluetooth.c index d9f26a8a5..5022da420 100644 --- a/android/tester-bluetooth.c +++ b/android/tester-bluetooth.c @@ -46,6 +46,26 @@ static struct test_case bluetooth_enable_success_tc = { .step_num = get_test_case_step_num(bluetooth_enable_success_steps), }; +static struct step bluetooth_enable_success2_steps[] = { + { + .action_result.status = BT_STATUS_SUCCESS, + .action = bluetooth_enable_action, + }, + { + .callback = CB_BT_ADAPTER_STATE_CHANGED, + .callback_result.state = BT_STATE_ON, + }, + { + .action_result.status = BT_STATUS_SUCCESS, + .action = bluetooth_enable_action, + }, +}; +static struct test_case bluetooth_enable_success2_tc = { + .step = bluetooth_enable_success2_steps, + .title = "Bluetooth Enable - Success 2", + .step_num = get_test_case_step_num(bluetooth_enable_success2_steps), +}; + struct queue *get_bluetooth_tests(void) { list = queue_new(); @@ -56,6 +76,9 @@ struct queue *get_bluetooth_tests(void) if (!queue_push_tail(list, &bluetooth_enable_success_tc)) return NULL; + if (!queue_push_tail(list, &bluetooth_enable_success2_tc)) + return NULL; + return list; } |