From c2794f8c268bae63e4da5ae32058405e6e10d492 Mon Sep 17 00:00:00 2001 From: Henry Fang Date: Fri, 2 Jun 2023 17:15:08 +0000 Subject: [PATCH] UEC is not static on real device, so check its range intead of specific value Change-Id: If165935ce639bac439af21f23b741ab2fa999bb9 bug:285561687 test: manaul --- tv/tuner/1.1/vts/functional/FrontendTests.cpp | 2 +- .../1.1/vts/functional/VtsHalTvTunerV1_1TestConfigurations.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tv/tuner/1.1/vts/functional/FrontendTests.cpp b/tv/tuner/1.1/vts/functional/FrontendTests.cpp index f65e58ddbb..ee296f2a0e 100644 --- a/tv/tuner/1.1/vts/functional/FrontendTests.cpp +++ b/tv/tuner/1.1/vts/functional/FrontendTests.cpp @@ -379,7 +379,7 @@ void FrontendTests::verifyFrontendStatusExt1_1(vector break; } case FrontendStatusTypeExt1_1::UEC: { - ASSERT_TRUE(realStatuses[i].uec() == expectStatuses[i].uec()); + ASSERT_TRUE(realStatuses[i].uec() >= 0 ); break; } case FrontendStatusTypeExt1_1::T2_SYSTEM_ID: { diff --git a/tv/tuner/1.1/vts/functional/VtsHalTvTunerV1_1TestConfigurations.h b/tv/tuner/1.1/vts/functional/VtsHalTvTunerV1_1TestConfigurations.h index 669fa1135d..dcdc673ce9 100644 --- a/tv/tuner/1.1/vts/functional/VtsHalTvTunerV1_1TestConfigurations.h +++ b/tv/tuner/1.1/vts/functional/VtsHalTvTunerV1_1TestConfigurations.h @@ -86,7 +86,7 @@ inline void initFrontendConfig() { types.push_back(FrontendStatusTypeExt1_1::IS_MISO); vector statuses; FrontendStatusExt1_1 status; - status.uec(4); + status.uec(0); statuses.push_back(status); status.isMiso(true); statuses.push_back(status);