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
2 files changed