OSDN Git Service

wifi(vts): simplify HIDL calls
authormukesh agrawal <quiche@google.com>
Thu, 26 Jan 2017 03:43:08 +0000 (19:43 -0800)
committermukesh agrawal <quiche@google.com>
Wed, 15 Feb 2017 20:47:02 +0000 (12:47 -0800)
commit90f321722ce37554fb70481f44f8b4a32389a9e6
tree0795fe5cdd15d71081c4c4f381878104d6d38947
parent751dc694a43006d5f0404b0ece9a87eeb57f94ea
wifi(vts): simplify HIDL calls

Presently, the core of the Wifi test logic is
obscured by the boilerplate required to create
a callback.

This CL provides some utilities to simplify
the creation of a HIDL result callback, and
migrates existing Wifi code to use the new
utilities.

Along the way: add a .clang-format file, so
that I don't misformat code with 2-space
indents (the Google default).

Bug: 34817351
Test: vts-tradefed run commandAndExit vts --module=HalWifiHidlTargetTest
Change-Id: Id2c728f96c3369c74adc8dfce7228b0a15a0781e
wifi/.clang-format [new file with mode: 0644]
wifi/1.0/vts/functional/Android.bp
wifi/1.0/vts/functional/wifi_hidl_call_util.h [new file with mode: 0644]
wifi/1.0/vts/functional/wifi_hidl_call_util_selftest.cpp [new file with mode: 0644]
wifi/1.0/vts/functional/wifi_hidl_test_utils.cpp