Merge "Accept NONE as a response for setDataThrottling during VTS." am: 83398c025f am: bfeb55a6f4 am: fe628882bc am: 11312c1620 am: 7fab484bfc

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

Change-Id: If52c1e4f86c9168aa58f35ccfe19d333ea53eebf
This commit is contained in:
Treehugger Robot 2021-10-04 18:51:50 +00:00 committed by Automerger Merge Worker
commit 5e000b8ac8

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,