Merge "Accept NONE as a response for setDataThrottling during VTS." am: 83398c025f

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1839433

Change-Id: Ia202c31172b3858a641759999d581c0213a89c1a
This commit is contained in:
Treehugger Robot 2021-10-04 17:48:09 +00:00 committed by Automerger Merge Worker
commit bfeb55a6f4

View file

@ -515,7 +515,8 @@ TEST_P(RadioHidlTest_v1_6, setDataThrottling) {
if (getRadioHalCapabilities()) {
ASSERT_TRUE(CheckAnyOfErrors(
radioRsp_v1_6->rspInfo.error,
{::android::hardware::radio::V1_6::RadioError::REQUEST_NOT_SUPPORTED}));
{::android::hardware::radio::V1_6::RadioError::REQUEST_NOT_SUPPORTED,
::android::hardware::radio::V1_6::RadioError::NONE}));
} else {
ASSERT_TRUE(CheckAnyOfErrors(
radioRsp_v1_6->rspInfo.error,
@ -537,7 +538,8 @@ TEST_P(RadioHidlTest_v1_6, setDataThrottling) {
if (getRadioHalCapabilities()) {
ASSERT_TRUE(CheckAnyOfErrors(
radioRsp_v1_6->rspInfo.error,
{::android::hardware::radio::V1_6::RadioError::REQUEST_NOT_SUPPORTED}));
{::android::hardware::radio::V1_6::RadioError::REQUEST_NOT_SUPPORTED,
::android::hardware::radio::V1_6::RadioError::NONE}));
} else {
ASSERT_TRUE(CheckAnyOfErrors(
radioRsp_v1_6->rspInfo.error,
@ -559,7 +561,8 @@ TEST_P(RadioHidlTest_v1_6, setDataThrottling) {
if (getRadioHalCapabilities()) {
ASSERT_TRUE(CheckAnyOfErrors(
radioRsp_v1_6->rspInfo.error,
{::android::hardware::radio::V1_6::RadioError::REQUEST_NOT_SUPPORTED}));
{::android::hardware::radio::V1_6::RadioError::REQUEST_NOT_SUPPORTED,
::android::hardware::radio::V1_6::RadioError::NONE}));
} else {
ASSERT_TRUE(CheckAnyOfErrors(
radioRsp_v1_6->rspInfo.error,
@ -580,7 +583,8 @@ TEST_P(RadioHidlTest_v1_6, setDataThrottling) {
if (getRadioHalCapabilities()) {
ASSERT_TRUE(CheckAnyOfErrors(
radioRsp_v1_6->rspInfo.error,
{::android::hardware::radio::V1_6::RadioError::REQUEST_NOT_SUPPORTED}));
{::android::hardware::radio::V1_6::RadioError::REQUEST_NOT_SUPPORTED,
::android::hardware::radio::V1_6::RadioError::NONE}));
} else {
ASSERT_TRUE(CheckAnyOfErrors(
radioRsp_v1_6->rspInfo.error,