summaryrefslogtreecommitdiff
path: root/android/tester-main.h
diff options
context:
space:
mode:
authorJakub Tyszkowski <jakub.tyszkowski@tieto.com>2014-10-03 15:08:40 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-10-06 13:27:12 +0200
commite4942a2f64254a95ab2ecb5fb744337152cf5b19 (patch)
tree39b91fa7da7389c20bdea453b140129f449e262d /android/tester-main.h
parentf4a752bf41610057d4ba5a559aff4afb2283ae43 (diff)
downloadbluez-e4942a2f64254a95ab2ecb5fb744337152cf5b19.tar.gz
android/tester: Improve HIDHost data sending verification
Hciemu hooks may be called in different test stage than we expect and we shouldn't blindly verifying the step with success every time when data is send, as we really dont know the step we are currently in. This patch fixes this issue by splitting the action in two steps: action step that triggers data sending and callback step that verifies on remotes sid that data was send.
Diffstat (limited to 'android/tester-main.h')
-rw-r--r--android/tester-main.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/android/tester-main.h b/android/tester-main.h
index 3e5c27d27..62453810c 100644
--- a/android/tester-main.h
+++ b/android/tester-main.h
@@ -397,6 +397,9 @@ typedef enum {
CB_GATTS_REQUEST_WRITE,
CB_GATTS_REQUEST_EXEC_WRITE,
CB_GATTS_RESPONSE_CONFIRMATION,
+
+ /* Emulator callbacks */
+ CB_EMU_CONFIRM_SEND_DATA,
} expected_bt_callback_t;
struct test_data {