diff options
author | Marcin Kraglak <marcin.kraglak@tieto.com> | 2014-09-02 14:04:25 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-09-02 17:44:29 +0200 |
commit | dcbab841a7c7cfcd39c15be71aba743ebe47ffcb (patch) | |
tree | fd9462a6143e0ec8f4ba3dab08b00deefb7a1d4b /android/tester-a2dp.c | |
parent | aa02db01fe5e43f1eafcc0c1145ba84cbac5bcc5 (diff) | |
download | bluez-dcbab841a7c7cfcd39c15be71aba743ebe47ffcb.tar.gz |
android/tester: Add function to set default ssp handler
In most test cases pairing can be performed but is not part of test
case, and shouldn't have impact on test case result. This helper set
defult handler, which will always accept SSP requests.
Diffstat (limited to 'android/tester-a2dp.c')
-rw-r--r-- | android/tester-a2dp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/android/tester-a2dp.c b/android/tester-a2dp.c index 3d006bc49..6d4043baa 100644 --- a/android/tester-a2dp.c +++ b/android/tester-a2dp.c @@ -186,6 +186,7 @@ static struct test_case test_cases[] = { ACTION_SUCCESS(dummy_action, NULL), ), TEST_CASE_BREDRLE("A2DP Connect - Success", + ACTION_SUCCESS(set_default_ssp_request_handler, NULL), ACTION_SUCCESS(bluetooth_enable_action, NULL), CALLBACK_STATE(CB_BT_ADAPTER_STATE_CHANGED, BT_STATE_ON), ACTION_SUCCESS(emu_setup_powered_remote_action, NULL), @@ -202,6 +203,7 @@ static struct test_case test_cases[] = { CALLBACK_STATE(CB_BT_ADAPTER_STATE_CHANGED, BT_STATE_OFF), ), TEST_CASE_BREDRLE("A2DP Disconnect - Success", + ACTION_SUCCESS(set_default_ssp_request_handler, NULL), ACTION_SUCCESS(bluetooth_enable_action, NULL), CALLBACK_STATE(CB_BT_ADAPTER_STATE_CHANGED, BT_STATE_ON), ACTION_SUCCESS(emu_setup_powered_remote_action, NULL), @@ -221,6 +223,7 @@ static struct test_case test_cases[] = { CALLBACK_STATE(CB_BT_ADAPTER_STATE_CHANGED, BT_STATE_OFF), ), TEST_CASE_BREDRLE("A2DP Resume - Success", + ACTION_SUCCESS(set_default_ssp_request_handler, NULL), ACTION_SUCCESS(bluetooth_enable_action, NULL), CALLBACK_STATE(CB_BT_ADAPTER_STATE_CHANGED, BT_STATE_ON), ACTION_SUCCESS(emu_setup_powered_remote_action, NULL), |