summaryrefslogtreecommitdiffstats
path: root/radio
diff options
context:
space:
mode:
authoryinxu <yinxu@google.com>2017-07-28 22:13:26 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-07-28 22:13:26 +0000
commit6d9952a70b7b7b4ed3101d831c667a6b815ff97a (patch)
treed8d3f2ffb0cf5fdd7cab85e297acac7da8c9d2f5 /radio
parenta944299fdb790832a386ae14d2acfd807b59b695 (diff)
parent0e9094142f4568af82aeb0f30eac341df1782faf (diff)
downloadplatform_hardware_interfaces-6d9952a70b7b7b4ed3101d831c667a6b815ff97a.tar.gz
platform_hardware_interfaces-6d9952a70b7b7b4ed3101d831c667a6b815ff97a.tar.bz2
platform_hardware_interfaces-6d9952a70b7b7b4ed3101d831c667a6b815ff97a.zip
Fix VTS errors of the network scan API
am: 0e9094142f Change-Id: Ic3620579f9d428da82f612c71c039336f791ca2d
Diffstat (limited to 'radio')
-rw-r--r--radio/1.1/vts/functional/radio_hidl_hal_api.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/radio/1.1/vts/functional/radio_hidl_hal_api.cpp b/radio/1.1/vts/functional/radio_hidl_hal_api.cpp
index 2172454e51..e4d434abc0 100644
--- a/radio/1.1/vts/functional/radio_hidl_hal_api.cpp
+++ b/radio/1.1/vts/functional/radio_hidl_hal_api.cpp
@@ -63,7 +63,8 @@ TEST_F(RadioHidlTest_v1_1, startNetworkScan) {
if (cardStatus.cardState == CardState::ABSENT) {
ASSERT_TRUE(radioRsp_v1_1->rspInfo.error == RadioError::NONE ||
radioRsp_v1_1->rspInfo.error == RadioError::SIM_ABSENT ||
- radioRsp_v1_1->rspInfo.error == RadioError::INVALID_ARGUMENTS);
+ radioRsp_v1_1->rspInfo.error == RadioError::INVALID_ARGUMENTS ||
+ radioRsp_v1_1->rspInfo.error == RadioError::REQUEST_NOT_SUPPORTED);
}
}
@@ -84,7 +85,8 @@ TEST_F(RadioHidlTest_v1_1, startNetworkScan_InvalidArgument) {
if (cardStatus.cardState == CardState::ABSENT) {
ASSERT_TRUE(radioRsp_v1_1->rspInfo.error == RadioError::INVALID_ARGUMENTS ||
- radioRsp_v1_1->rspInfo.error == RadioError::SIM_ABSENT);
+ radioRsp_v1_1->rspInfo.error == RadioError::SIM_ABSENT ||
+ radioRsp_v1_1->rspInfo.error == RadioError::REQUEST_NOT_SUPPORTED);
}
}
@@ -101,6 +103,7 @@ TEST_F(RadioHidlTest_v1_1, stopNetworkScan) {
if (cardStatus.cardState == CardState::ABSENT) {
ASSERT_TRUE(radioRsp_v1_1->rspInfo.error == RadioError::NONE ||
- radioRsp_v1_1->rspInfo.error == RadioError::SIM_ABSENT);
+ radioRsp_v1_1->rspInfo.error == RadioError::SIM_ABSENT ||
+ radioRsp_v1_1->rspInfo.error == RadioError::REQUEST_NOT_SUPPORTED);
}
}