From 8b5cf0ca1427cabee1a9ed4e389701df177cc303 Mon Sep 17 00:00:00 2001 From: Pavan Kumar M Date: Fri, 27 Jan 2023 12:54:39 +0530 Subject: [PATCH] Update Vts for getSlicingConfig Currently getSlicingConfigAPI always returns NOT_SUPPORTED. But GetSlicingConfig is supported in Android U. and VTS will fail. This change updates the expected errorcodes for getSlicingConfig API. Tests: Builds, Boots, RadioDataTest Bug: 228996685 Change-Id: I10cf7b0b9ba09e56605d5a498ec48c4b8972f00b --- radio/aidl/vts/radio_data_test.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/radio/aidl/vts/radio_data_test.cpp b/radio/aidl/vts/radio_data_test.cpp index 1cc6a36a26..aa6ac88e1f 100644 --- a/radio/aidl/vts/radio_data_test.cpp +++ b/radio/aidl/vts/radio_data_test.cpp @@ -233,14 +233,10 @@ TEST_P(RadioDataTest, getSlicingConfig) { EXPECT_EQ(std::cv_status::no_timeout, wait()); EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_data->rspInfo.type); EXPECT_EQ(serial, radioRsp_data->rspInfo.serial); - if (getRadioHalCapabilities()) { - ASSERT_TRUE(CheckAnyOfErrors(radioRsp_data->rspInfo.error, - {RadioError::REQUEST_NOT_SUPPORTED})); - } else { - ASSERT_TRUE(CheckAnyOfErrors(radioRsp_data->rspInfo.error, - {RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE, - RadioError::INTERNAL_ERR, RadioError::MODEM_ERR})); - } + ASSERT_TRUE(CheckAnyOfErrors(radioRsp_data->rspInfo.error, + {RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE, + RadioError::INTERNAL_ERR, RadioError::MODEM_ERR, + RadioError::REQUEST_NOT_SUPPORTED})); } /*