Fix VTS errors of the network scan API
Since the new network scan API is only supported by some devices, we
should add the REQUEST_NOT_SUPPORTED to the possible returned errors.
Cherry-picked cleanly from:
https://googleplex-android-review.git.corp.google.com/#/c/2596051/
Test: Telephony sanity tests, run vts -m VtsHalRadioV1_1Target
Bug: 63914600
Merged-in: I965ee6422aaa5e02bf67466f5288b808183f1738
Change-Id: I965ee6422aaa5e02bf67466f5288b808183f1738
(cherry picked from commit 03c6b592c1
)
This commit is contained in:
parent
6ef70c9040
commit
0e9094142f
1 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue