summaryrefslogtreecommitdiff
path: root/android/tester-hidhost.c
diff options
context:
space:
mode:
authorJakub Tyszkowski <jakub.tyszkowski@tieto.com>2014-07-17 10:29:49 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-07-18 09:49:12 +0200
commit3f93ade5723934e33c421bfd683a6466ab400e72 (patch)
tree4158bad879810e89afbb1b453f2fff5eb96c7f54 /android/tester-hidhost.c
parentfb49bdf6914ef2b9e065991d5fb828369b4e1b15 (diff)
downloadbluez-3f93ade5723934e33c421bfd683a6466ab400e72.tar.gz
android/tester-ng: Add test declaration helper macro
This replaces test cases declaration with simplier macro call.
Diffstat (limited to 'android/tester-hidhost.c')
-rw-r--r--android/tester-hidhost.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/android/tester-hidhost.c b/android/tester-hidhost.c
index 49c34bd25..626082588 100644
--- a/android/tester-hidhost.c
+++ b/android/tester-hidhost.c
@@ -19,14 +19,10 @@
static struct queue *list; /* List of hidhost test cases */
-static struct step dummy_steps[] = {
+TEST_CASE(hidhost_init,
+ "Hidhost Init",
ACTION_SUCCESS(dummy_action, NULL),
-};
-static struct test_case hidhost_init = {
- .step = dummy_steps,
- .title = "Hidhost Init",
- .step_num = get_test_case_step_num(dummy_steps),
-};
+);
static struct test_case *test_cases[] = {
&hidhost_init,