From cd979dfebe26074c64d4d5d7fc3837137849ae52 Mon Sep 17 00:00:00 2001 From: Jakub Tyszkowski Date: Thu, 24 Jul 2014 10:37:56 +0200 Subject: [PATCH] android/tester-ng: Expose action step verification function This is needed for profile specific testers to define step actions (and verify their results) in their own file and not in tester-main.c where only core actions, needed by all other testers should be defined. --- android/tester-main.c | 2 +- android/tester-main.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/android/tester-main.c b/android/tester-main.c index e7b1e1bc2..bbb3375cb 100644 --- a/android/tester-main.c +++ b/android/tester-main.c @@ -560,7 +560,7 @@ static void schedule_callback_call(struct step *step) g_idle_add(verify_callback, step); } -static void schedule_action_verification(struct step *step) +void schedule_action_verification(struct step *step) { g_idle_add_full(G_PRIORITY_HIGH_IDLE, verify_action, step, NULL); } diff --git a/android/tester-main.h b/android/tester-main.h index a239ae1e7..0f3f1656c 100644 --- a/android/tester-main.h +++ b/android/tester-main.h @@ -266,6 +266,9 @@ void remove_hidhost_tests(void); struct queue *get_gatt_tests(void); void remove_gatt_tests(void); +/* Generic tester API */ +void schedule_action_verification(struct step *step); + /* Emulator actions */ void emu_setup_powered_remote_action(void); void emu_set_pin_code_action(void); -- 2.47.3