diff options
author | Jakub Tyszkowski <jakub.tyszkowski@tieto.com> | 2014-07-17 10:29:52 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-07-18 09:49:13 +0200 |
commit | 7cb7fbcc667bf91e942d924584493447cc9a44f8 (patch) | |
tree | e94f1c51e8c55ac26aec33d3604c48d2b9a80d1e /android/tester-bluetooth.c | |
parent | 1ac0eec299727628e9ba4a59a45179ef488cdbd1 (diff) | |
download | bluez-7cb7fbcc667bf91e942d924584493447cc9a44f8.tar.gz |
android/tester-ng: Add start discovery success cases
Diffstat (limited to 'android/tester-bluetooth.c')
-rw-r--r-- | android/tester-bluetooth.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/android/tester-bluetooth.c b/android/tester-bluetooth.c index d65917d25..ea59a57f1 100644 --- a/android/tester-bluetooth.c +++ b/android/tester-bluetooth.c @@ -329,6 +329,21 @@ static struct test_case test_cases[] = { &prop_test_scan_mode_none), CALLBACK_ADAPTER_PROPS(&prop_test_scan_mode_none, 1), ), + TEST_CASE("Bluetooth BR/EDR Discovery Start - Success", + ACTION_SUCCESS(bluetooth_enable_action, NULL), + CALLBACK_STATE(CB_BT_ADAPTER_STATE_CHANGED, BT_STATE_ON), + ACTION_SUCCESS(bt_start_discovery_action, NULL), + CALLBACK_STATE(CB_BT_DISCOVERY_STATE_CHANGED, + BT_DISCOVERY_STARTED), + ), + TEST_CASE("Bluetooth BR/EDR Discovery Start - Done", + ACTION_SUCCESS(bluetooth_enable_action, NULL), + CALLBACK_STATE(CB_BT_ADAPTER_STATE_CHANGED, BT_STATE_ON), + ACTION_SUCCESS(bt_start_discovery_action, NULL), + CALLBACK_STATE(CB_BT_DISCOVERY_STATE_CHANGED, + BT_DISCOVERY_STARTED), + ACTION_SUCCESS(bt_start_discovery_action, NULL), + ), }; struct queue *get_bluetooth_tests(void) |