summaryrefslogtreecommitdiff
path: root/android/tester-avrcp.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-09-01 17:49:02 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-09-05 15:43:47 +0300
commit3d390cd7edd57ab3c7fa87870641eebf4594af90 (patch)
tree08fe0f88aed4a3b436e4373299adc9216dee9187 /android/tester-avrcp.c
parentcbc8c6556f30191a246e85670f2fef43d8bb0d92 (diff)
downloadbluez-3d390cd7edd57ab3c7fa87870641eebf4594af90.tar.gz
android/tester: Add AVRCP init - Success test case
Diffstat (limited to 'android/tester-avrcp.c')
-rw-r--r--android/tester-avrcp.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/android/tester-avrcp.c b/android/tester-avrcp.c
new file mode 100644
index 000000000..60a57b49a
--- /dev/null
+++ b/android/tester-avrcp.c
@@ -0,0 +1,50 @@
+/*
+ * 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 "src/shared/util.h"
+
+#include "tester-main.h"
+#include "android/utils.h"
+
+static struct queue *list;
+
+static struct test_case test_cases[] = {
+ TEST_CASE_BREDRLE("AVRCP Init",
+ ACTION_SUCCESS(dummy_action, NULL),
+ ),
+};
+
+struct queue *get_avrcp_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_avrcp_tests(void)
+{
+ queue_destroy(list, NULL);
+}