Helper library for tests.
Tests parameterized on test names need to have a way to print their
instance names (to make the test output nicer/easily see which instance
name is problematic).
Unfortunately, HIDL allows more strings as instance names than is
allowed by gtests. In order to work around this limitation, providing a
helper function here that can easily be used to provide a meaningful
gtest test name without risking duplicates or a runtime error.
Bug: 139437880
Test: converted lights VTS test
Change-Id: I952b6b6f075b7edf1c3bf3d980579c89d6eaa5fb
diff --git a/Android.bp b/Android.bp
index 4bd5eb3..608ad1a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -30,6 +30,11 @@
],
}
+cc_library_headers {
+ name: "libhidl_gtest_helpers",
+ export_include_dirs: ["gtest_helpers"],
+}
+
cc_test {
name: "libhidl_test",
defaults: ["libhidl-defaults"],