summaryrefslogtreecommitdiff
path: root/android/tester-bluetooth.c
diff options
context:
space:
mode:
authorGrzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>2014-07-03 18:00:10 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-07-14 16:58:38 +0200
commitc727e4dc5f3202bf978038054e82c105527ea978 (patch)
treeb6ce8ae3b6f3b33a78fc5eec21d0d7d1a08bbc46 /android/tester-bluetooth.c
parent9cc44d5cd706cc3e56610d5d8df2d8abb9de9d53 (diff)
downloadbluez-c727e4dc5f3202bf978038054e82c105527ea978.tar.gz
android/tester-ng: Add double enable success test case
Diffstat (limited to 'android/tester-bluetooth.c')
-rw-r--r--android/tester-bluetooth.c23
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;
}