summaryrefslogtreecommitdiff
path: root/android/tester-main.c
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.c
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.c')
-rw-r--r--android/tester-main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/android/tester-main.c b/android/tester-main.c
index 5d66fe1ab..c637fd5e0 100644
--- a/android/tester-main.c
+++ b/android/tester-main.c
@@ -101,6 +101,9 @@ static struct {
DBG_CB(CB_GATTS_REQUEST_WRITE),
DBG_CB(CB_GATTS_REQUEST_EXEC_WRITE),
DBG_CB(CB_GATTS_RESPONSE_CONFIRMATION),
+
+ /* Emulator callbacks */
+ DBG_CB(CB_EMU_CONFIRM_SEND_DATA),
};
static gboolean check_callbacks_called(gpointer user_data)