From 1eb1f36877ee210c27f751ab1c61d703eb657a26 Mon Sep 17 00:00:00 2001 From: Jasmine Cha Date: Mon, 3 Aug 2020 15:12:43 +0800 Subject: [PATCH] Audio VTS: Fix empty parameter list failures for AudioV6 For AudioV6, OptionalInputBufferSizeTest isn't included in macro GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST. Bug: 162715033 Test: atest VtsHalAudioV6_0TargetTest Signed-off-by: Jasmine Cha Change-Id: I526fe166594283540804ee61265c6000de5a89e8 --- .../core/all-versions/vts/functional/AudioPrimaryHidlHalTest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/core/all-versions/vts/functional/AudioPrimaryHidlHalTest.h b/audio/core/all-versions/vts/functional/AudioPrimaryHidlHalTest.h index 8e6be89045..ae8e20fb8f 100644 --- a/audio/core/all-versions/vts/functional/AudioPrimaryHidlHalTest.h +++ b/audio/core/all-versions/vts/functional/AudioPrimaryHidlHalTest.h @@ -729,7 +729,6 @@ INSTANTIATE_TEST_CASE_P( ::testing::ValuesIn(ConfigHelper::getRecommendedSupportCaptureAudioConfig()), ::testing::Values(AudioInputFlag::NONE)), &DeviceConfigParameterToString); -GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OptionalInputBufferSizeTest); #elif MAJOR_VERSION >= 6 INSTANTIATE_TEST_CASE_P(SupportedInputBufferSize, RequiredInputBufferSizeTest, ::testing::ValuesIn(getInputDeviceConfigParameters()), @@ -737,6 +736,7 @@ INSTANTIATE_TEST_CASE_P(SupportedInputBufferSize, RequiredInputBufferSizeTest, #endif // When the VTS test runs on a device lacking the corresponding HAL version the parameter // list is empty, this isn't a problem. +GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OptionalInputBufferSizeTest); GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RequiredInputBufferSizeTest); //////////////////////////////////////////////////////////////////////////////