[PATCH 05/15] android/tester-ng: Add double enable success test case

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 android/android-tester-ng.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/android/android-tester-ng.c b/android/android-tester-ng.c
index a5aa611..3b295d8 100644
--- a/android/android-tester-ng.c
+++ b/android/android-tester-ng.c
@@ -736,6 +736,21 @@ static struct step bluetooth_enable_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,
+	},
+};
+
 #define TEST_DATA_CREATE(step_data) \
 	static struct test_steps step_data##_data = { \
 		.step_num = sizeof(step_data) / sizeof(struct step), \
@@ -784,5 +799,9 @@ int main(int argc, char *argv[])
 	test_bredrle("Bluetooth Enable", bluetooth_enable_steps, setup,
 					generic_test_function, teardown);
 
+	test_bredrle("Bluetooth Enable - Success 2",
+					bluetooth_enable_success2_steps, setup,
+					generic_test_function, teardown);
+
 	return tester_run();
 }
-- 
1.9.2

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux