mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Mark GraphicsMapperHidlTest as allowing not being instantiated
Only the variant(s) actually implemented by the device will be instantiated. This is consistent with tests for other versioned or optional HALs. Bug: b/167222309 Test: atest VtsHalGraphicsMapperV2_0TargetTest:GoogleTestVerification#UninstantiatedParameterizedTestSuite<GraphicsMapperHidlTest> -- --abi arm64-v8a Change-Id: I4f1bfbad47bdbf75578ec48a3a56fb5351e7729a
This commit is contained in:
@@ -410,6 +410,7 @@ TEST_P(GraphicsMapperHidlTest, UnlockNegative) {
|
||||
#endif
|
||||
}
|
||||
|
||||
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(GraphicsMapperHidlTest);
|
||||
INSTANTIATE_TEST_CASE_P(
|
||||
PerInstance, GraphicsMapperHidlTest,
|
||||
testing::Combine(
|
||||
|
||||
@@ -204,6 +204,7 @@ TEST_P(GraphicsMapperHidlTest, CreateDescriptor_2_1Negative) {
|
||||
});
|
||||
}
|
||||
|
||||
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(GraphicsMapperHidlTest);
|
||||
INSTANTIATE_TEST_CASE_P(
|
||||
PerInstance, GraphicsMapperHidlTest,
|
||||
testing::Combine(
|
||||
@@ -218,4 +219,4 @@ INSTANTIATE_TEST_CASE_P(
|
||||
} // namespace mapper
|
||||
} // namespace graphics
|
||||
} // namespace hardware
|
||||
} // namespace android
|
||||
} // namespace android
|
||||
|
||||
@@ -458,6 +458,7 @@ TEST_P(GraphicsMapperHidlTest, IsSupportedY16) {
|
||||
ASSERT_NO_FATAL_FAILURE(supported = mGralloc->isSupported(info));
|
||||
}
|
||||
|
||||
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(GraphicsMapperHidlTest);
|
||||
INSTANTIATE_TEST_CASE_P(
|
||||
PerInstance, GraphicsMapperHidlTest,
|
||||
testing::Combine(
|
||||
|
||||
@@ -2592,6 +2592,7 @@ TEST_P(GraphicsMapperHidlTest, GetReservedRegionBadBuffer) {
|
||||
ASSERT_EQ(0, reservedSize);
|
||||
}
|
||||
|
||||
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(GraphicsMapperHidlTest);
|
||||
INSTANTIATE_TEST_CASE_P(
|
||||
PerInstance, GraphicsMapperHidlTest,
|
||||
testing::Combine(
|
||||
|
||||
Reference in New Issue
Block a user