diff options
author | Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com> | 2014-07-03 18:00:10 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-07-14 16:58:38 +0200 |
commit | c727e4dc5f3202bf978038054e82c105527ea978 (patch) | |
tree | b6ce8ae3b6f3b33a78fc5eec21d0d7d1a08bbc46 | |
parent | 9cc44d5cd706cc3e56610d5d8df2d8abb9de9d53 (diff) | |
download | bluez-c727e4dc5f3202bf978038054e82c105527ea978.tar.gz |
android/tester-ng: Add double enable success test case
-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; } |