Diff between 9cc44d5cd706cc3e56610d5d8df2d8abb9de9d53 and c727e4dc5f3202bf978038054e82c105527ea978

Changed Files

File Additions Deletions Status
android/tester-bluetooth.c +23 -0 modified

Full Patch

diff --git a/android/tester-bluetooth.c b/android/tester-bluetooth.c
index d9f26a8..5022da4 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;
 }