commit | 0acf4192dc13277bdd4ba8006d3602595ccfd546 | [log] [tgz] |
---|---|---|
author | Iliyan Malchev <malchev@google.com> | Mon Aug 22 19:33:20 2016 -0700 |
committer | Iliyan Malchev <malchev@google.com> | Thu Aug 25 09:03:14 2016 -0700 |
tree | dcf708804b39cb478dfeebb036ab18313df9923b | |
parent | 1dc8793c9aac86fe08dbe3150d96d88435a978df [diff] |
hidl_test: add server-timing tests Test the following: -- callMe() is a oneway call, so it should return to the caller immediately; -- callMe() passes an IFooCallback to Bar, and Bar invokes three methods on that callback. Of these three methods, the first one is blocking but with an empty body; the second one is blocking and the body takes several seconds to execute; the third one is oneway, but its body takes several seconds to execute -- hidl_test uses two instrumentation methods on IFooCallback, reportResults() and youBlockedMeFor(), to collect timing information on the three methods above. This information is used in a test that verifies that the timings are as expected, within some predefined tolerance. b/30855757 Convert hidl test to gTest Change-Id: Ie1d8e16ac72a647579b460cbcf3cee8296a9f7c3 Signed-off-by: Iliyan Malchev <malchev@google.com>
croot make hidl-gen
hidl-gen -o output-path -L language (-r interface-root) fqname output-path: directory to store the output files. language: output file for given language. e.g.c++, vts.. fqname: fully qualified name of the input files. For singe file input, follow the format: package@version::fileName For directory input, follow the format: package@version interface-root(optional): prefix and root path for fqname. If not set, use the default prefix: android.hardware and default root path defined in $TOP. examples: hidl-gen -o output -L c++ android.hardware.nfc@1.0::INfc.hal hidl-gen -o output -L vts android.hardware.nfc@1.0 hild-gen -o test -L c++ -r android.hardware:/home/android/master/hardware/interfaces android.hardware.nfc@1.0