Allow some HIDL VTS tests to be uninstantiated
Devices will soon be able to launch without any HIDL on the device.
Test: atest vts_treble_vintf_test_all
Bug: 218588089
Change-Id: I0262756bca99afa9639df79dfde42ea29df70325
diff --git a/treble/vintf/DeviceManifestTest.cpp b/treble/vintf/DeviceManifestTest.cpp
index 448f866..f66cbb4 100644
--- a/treble/vintf/DeviceManifestTest.cpp
+++ b/treble/vintf/DeviceManifestTest.cpp
@@ -171,6 +171,7 @@
"android.hardware.graphics.allocator", {3, 0}, "IAllocator", "default"));
}
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(SingleHidlTest);
INSTANTIATE_TEST_CASE_P(
DeviceManifest, SingleHidlTest,
Combine(ValuesIn(VtsTrebleVintfTestBase::GetHidlInstances(
@@ -178,6 +179,7 @@
Values(VintfObject::GetDeviceHalManifest())),
&GetTestCaseSuffix<SingleHidlTest>);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(SingleHwbinderHalTest);
INSTANTIATE_TEST_CASE_P(
DeviceManifest, SingleHwbinderHalTest,
Combine(ValuesIn(SingleHwbinderHalTest::ListRegisteredHwbinderHals()),
diff --git a/treble/vintf/SystemVendorTest.cpp b/treble/vintf/SystemVendorTest.cpp
index b689861..92f08e5 100644
--- a/treble/vintf/SystemVendorTest.cpp
+++ b/treble/vintf/SystemVendorTest.cpp
@@ -168,6 +168,8 @@
<< fq_instance_name << " is being served, but it is not in a manifest.";
}
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(
+ SystemVendorSingleHwbinderHalTest);
INSTANTIATE_TEST_CASE_P(
SystemVendorTest, SystemVendorSingleHwbinderHalTest,
ValuesIn(SingleHwbinderHalTest::ListRegisteredHwbinderHals()),