summaryrefslogtreecommitdiff
path: root/android/tester-pan.c
diff options
context:
space:
mode:
authorRavi kumar Veeramally <ravikumar.veeramally@linux.intel.com>2014-08-05 14:19:07 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2014-08-06 10:38:15 +0300
commitee645459e92b918b9d65ce465aa0d6925d6bd6d3 (patch)
tree3d8ca0a038cb799f1ce9033d6639963e1176dd9d /android/tester-pan.c
parent3b2da5a279cddf0ec3e20aba17a64fcb0ba15b13 (diff)
downloadbluez-ee645459e92b918b9d65ce465aa0d6925d6bd6d3.tar.gz
android/tester: Add PAN init test case
Diffstat (limited to 'android/tester-pan.c')
-rw-r--r--android/tester-pan.c48
1 files changed, 48 insertions, 0 deletions
diff --git a/android/tester-pan.c b/android/tester-pan.c
new file mode 100644
index 000000000..caead9cb7
--- /dev/null
+++ b/android/tester-pan.c
@@ -0,0 +1,48 @@
+/*
+ * 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 <stdbool.h>
+
+#include "emulator/bthost.h"
+#include "tester-main.h"
+#include "android/utils.h"
+
+static struct queue *list; /* List of pan test cases */
+
+static struct test_case test_cases[] = {
+ TEST_CASE_BREDRLE("PAN Init",
+ ACTION_SUCCESS(dummy_action, NULL),
+ ),
+};
+
+struct queue *get_pan_tests(void)
+{
+ uint16_t i = 0;
+
+ list = queue_new();
+
+ for (; i < sizeof(test_cases) / sizeof(test_cases[0]); ++i)
+ if (!queue_push_tail(list, &test_cases[i]))
+ return NULL;
+
+ return list;
+}
+
+void remove_pan_tests(void)
+{
+ queue_destroy(list, NULL);
+}