summaryrefslogtreecommitdiff
path: root/android/tester-bluetooth.c
diff options
context:
space:
mode:
authorGrzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>2014-07-03 18:00:06 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-07-14 16:58:37 +0200
commit204fb41d73309b4664baeb0d5cac98fe886a4aaa (patch)
tree3d179dd36ab49a1281a10722256ed58c0a71c9b8 /android/tester-bluetooth.c
parent11d6f55490920baeb86f6d533b7efa6e903e84f0 (diff)
downloadbluez-204fb41d73309b4664baeb0d5cac98fe886a4aaa.tar.gz
android/tester-bluetooth: Initial bluetooth HAL tester
This is initial patch for android bluetooth HAL tester. It'll contain test cases for bluetooth hal using android tester framework (tester-main). Test step actions for this and every tester should be declared in main tester. Cohesion of test action make action function more useful and centralized.
Diffstat (limited to 'android/tester-bluetooth.c')
-rw-r--r--android/tester-bluetooth.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/android/tester-bluetooth.c b/android/tester-bluetooth.c
new file mode 100644
index 000000000..9acf999d8
--- /dev/null
+++ b/android/tester-bluetooth.c
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2014 Intel Corporation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+#include "tester-main.h"
+
+static struct queue *list; /* List of bluetooth test cases */
+
+struct queue *get_bluetooth_tests(void)
+{
+ list = queue_new();
+
+ return list;
+}
+
+void remove_bluetooth_tests(void)
+{
+ queue_destroy(list, NULL);
+}