OSDN Git Service

NFC VTS test use VtsHalHidlCallbackBase for callback wait and notify
authorYuexi Ma <yuexima@google.com>
Thu, 30 Mar 2017 01:11:01 +0000 (18:11 -0700)
committerYuexi Ma <yuexima@google.com>
Sun, 2 Apr 2017 06:36:14 +0000 (23:36 -0700)
commitbfefc5ef104b63d0644ec3b4c766131987824535
tree36d2cab81b34fe450d51c92752fa2e332ccee179
parent3b9e23513eafa9e92e4bbd075b431d9522ce7bae
NFC VTS test use VtsHalHidlCallbackBase for callback wait and notify

VtsHalNfcV1_0TargetTest uses VtsHalHidlCallbackBase.
Callback class extends VtsHalHidlCallbackBase and use waitForCallback and notifyFromCallback

The original NFC test contains the following use cases:
  * Callback notify happens before wait
  * Multiple waiting in serial
The modified version added the following use cases:
  * Wait for specific callback function
  * Passing callback arg data along wait and notify functions

Bug: 36036059
Test: make VtsHalNfcV1_0TargetTest, adb push & adb shell
Change-Id: Ic6668a18254661d07c4ff37309cd96ea5f786d29
nfc/1.0/vts/functional/VtsHalNfcV1_0TargetTest.cpp