summaryrefslogtreecommitdiff
path: root/android/tester-bluetooth.c
diff options
context:
space:
mode:
authorGrzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>2014-07-03 18:00:08 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-07-14 16:58:37 +0200
commit364db6c20484f9f55816507a3e48512758061e8e (patch)
tree5a44abed30c0c55fb1a79edd8477ec287d202368 /android/tester-bluetooth.c
parentcd9a6e7a441321f96f6c78548fe38d2a5b6390d5 (diff)
downloadbluez-364db6c20484f9f55816507a3e48512758061e8e.tar.gz
android/tester-bluetooth: Add enable success test case
This adds also enable action which enable bluetooth adapter.
Diffstat (limited to 'android/tester-bluetooth.c')
-rw-r--r--android/tester-bluetooth.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/android/tester-bluetooth.c b/android/tester-bluetooth.c
index c912d7dbb..0f55d9e40 100644
--- a/android/tester-bluetooth.c
+++ b/android/tester-bluetooth.c
@@ -30,6 +30,18 @@ static struct test_case bluetooth_init = {
.step_num = get_test_case_step_num(dummy_steps),
};
+static struct step bluetooth_enable_success_steps[] = {
+ {
+ .action_result.status = BT_STATUS_SUCCESS,
+ .action = bluetooth_enable_action,
+ },
+};
+static struct test_case bluetooth_enable_success_tc = {
+ .step = bluetooth_enable_success_steps,
+ .title = "Bluetooth Enable - Success",
+ .step_num = get_test_case_step_num(bluetooth_enable_success_steps),
+};
+
struct queue *get_bluetooth_tests(void)
{
list = queue_new();
@@ -37,6 +49,9 @@ struct queue *get_bluetooth_tests(void)
if (!queue_push_tail(list, &bluetooth_init))
return NULL;
+ if (!queue_push_tail(list, &bluetooth_enable_success_tc))
+ return NULL;
+
return list;
}