summaryrefslogtreecommitdiff
path: root/android/tester-pan.c
diff options
context:
space:
mode:
authorMarcin Kraglak <marcin.kraglak@tieto.com>2014-09-02 14:04:25 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-09-02 17:44:29 +0200
commitdcbab841a7c7cfcd39c15be71aba743ebe47ffcb (patch)
treefd9462a6143e0ec8f4ba3dab08b00deefb7a1d4b /android/tester-pan.c
parentaa02db01fe5e43f1eafcc0c1145ba84cbac5bcc5 (diff)
downloadbluez-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-pan.c')
-rw-r--r--android/tester-pan.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/android/tester-pan.c b/android/tester-pan.c
index c293022ce..8d41d3447 100644
--- a/android/tester-pan.c
+++ b/android/tester-pan.c
@@ -147,6 +147,7 @@ static struct test_case test_cases[] = {
ACTION_SUCCESS(dummy_action, NULL),
),
TEST_CASE_BREDRLE("PAN 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),
@@ -171,6 +172,7 @@ static struct test_case test_cases[] = {
CALLBACK_STATE(CB_BT_ADAPTER_STATE_CHANGED, BT_STATE_OFF),
),
TEST_CASE_BREDRLE("PAN 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),
@@ -196,6 +198,7 @@ static struct test_case test_cases[] = {
CALLBACK_STATE(CB_BT_ADAPTER_STATE_CHANGED, BT_STATE_OFF),
),
TEST_CASE_BREDRLE("PAN GetLocalRole - 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),