diff options
author | sqian <shuoq@google.com> | 2017-07-18 13:42:40 -0700 |
---|---|---|
committer | sqian <shuoq@google.com> | 2017-07-18 14:12:10 -0700 |
commit | 227fe277bfc62a2e138744a35ba1db411e998e99 (patch) | |
tree | 87c75529a1399fa7b9b8b5788a1679d1460635ce /radio | |
parent | 49abbfdd68f8c3ab797fd046552dfbf18ffb1993 (diff) | |
parent | 6ecc54a7ad1d804baeffe5a8f546f9411a35a160 (diff) | |
download | platform_hardware_interfaces-227fe277bfc62a2e138744a35ba1db411e998e99.tar.gz platform_hardware_interfaces-227fe277bfc62a2e138744a35ba1db411e998e99.tar.bz2 platform_hardware_interfaces-227fe277bfc62a2e138744a35ba1db411e998e99.zip |
resolve merge conflicts of 6ecc54a7 to stage-aosp-master
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I369fe9aacf37dcea6225b5e5a658159dfb859ad0
Diffstat (limited to 'radio')
-rw-r--r-- | radio/1.0/vts/functional/radio_hidl_hal_misc.cpp | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/radio/1.0/vts/functional/radio_hidl_hal_misc.cpp b/radio/1.0/vts/functional/radio_hidl_hal_misc.cpp index 89a79ee12e..e791edeb80 100644 --- a/radio/1.0/vts/functional/radio_hidl_hal_misc.cpp +++ b/radio/1.0/vts/functional/radio_hidl_hal_misc.cpp @@ -248,7 +248,8 @@ TEST_F(RadioHidlTest, getNeighboringCids) { EXPECT_EQ(serial, radioRsp->rspInfo.serial); if (cardStatus.cardState == CardState::ABSENT) { - ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE); + ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE || + radioRsp->rspInfo.error == RadioError::SIM_ABSENT); } } @@ -280,7 +281,8 @@ TEST_F(RadioHidlTest, setCdmaRoamingPreference) { EXPECT_EQ(serial, radioRsp->rspInfo.serial); if (cardStatus.cardState == CardState::ABSENT) { - ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE); + ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE || + radioRsp->rspInfo.error == RadioError::REQUEST_NOT_SUPPORTED); } } @@ -345,7 +347,8 @@ TEST_F(RadioHidlTest, setPreferredVoicePrivacy) { EXPECT_EQ(serial, radioRsp->rspInfo.serial); if (cardStatus.cardState == CardState::ABSENT) { - ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE); + ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE || + radioRsp->rspInfo.error == RadioError::REQUEST_NOT_SUPPORTED); } } @@ -361,7 +364,8 @@ TEST_F(RadioHidlTest, getPreferredVoicePrivacy) { EXPECT_EQ(serial, radioRsp->rspInfo.serial); if (cardStatus.cardState == CardState::ABSENT) { - ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE); + ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE || + radioRsp->rspInfo.error == RadioError::REQUEST_NOT_SUPPORTED); } } @@ -494,7 +498,8 @@ TEST_F(RadioHidlTest, setCellInfoListRate) { EXPECT_EQ(serial, radioRsp->rspInfo.serial); if (cardStatus.cardState == CardState::ABSENT) { - ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE); + ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE || + radioRsp->rspInfo.error == RadioError::REQUEST_NOT_SUPPORTED); } } @@ -562,7 +567,8 @@ TEST_F(RadioHidlTest, nvResetConfig) { EXPECT_EQ(serial, radioRsp->rspInfo.serial); if (cardStatus.cardState == CardState::ABSENT) { - ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE); + ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE || + radioRsp->rspInfo.error == RadioError::REQUEST_NOT_SUPPORTED); } } @@ -690,7 +696,8 @@ TEST_F(RadioHidlTest, stopLceService) { if (cardStatus.cardState == CardState::ABSENT) { ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE || - radioRsp->rspInfo.error == RadioError::LCE_NOT_SUPPORTED); + radioRsp->rspInfo.error == RadioError::LCE_NOT_SUPPORTED || + radioRsp->rspInfo.error == RadioError::REQUEST_NOT_SUPPORTED); } } @@ -723,7 +730,8 @@ TEST_F(RadioHidlTest, getModemActivityInfo) { EXPECT_EQ(serial, radioRsp->rspInfo.serial); if (cardStatus.cardState == CardState::ABSENT) { - ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE); + ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE || + radioRsp->rspInfo.error == RadioError::REQUEST_NOT_SUPPORTED); } } @@ -777,7 +785,8 @@ TEST_F(RadioHidlTest, getAllowedCarriers) { EXPECT_EQ(serial, radioRsp->rspInfo.serial); if (cardStatus.cardState == CardState::ABSENT) { - EXPECT_EQ(radioRsp->rspInfo.error, RadioError::NONE); + ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE || + radioRsp->rspInfo.error == RadioError::REQUEST_NOT_SUPPORTED); } } @@ -792,9 +801,11 @@ TEST_F(RadioHidlTest, sendDeviceState) { EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp->rspInfo.type); EXPECT_EQ(serial, radioRsp->rspInfo.serial); + std::cout << static_cast<int>(radioRsp->rspInfo.error) << std::endl; + if (cardStatus.cardState == CardState::ABSENT) { - ASSERT_TRUE(CheckGeneralError() || - radioRsp->rspInfo.error == RadioError::INVALID_ARGUMENTS); + ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE || + radioRsp->rspInfo.error == RadioError::REQUEST_NOT_SUPPORTED); } } @@ -809,9 +820,11 @@ TEST_F(RadioHidlTest, setIndicationFilter) { EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp->rspInfo.type); EXPECT_EQ(serial, radioRsp->rspInfo.serial); + std::cout << static_cast<int>(radioRsp->rspInfo.error) << std::endl; + if (cardStatus.cardState == CardState::ABSENT) { - ASSERT_TRUE(CheckGeneralError() || - radioRsp->rspInfo.error == RadioError::INVALID_ARGUMENTS); + ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE || + radioRsp->rspInfo.error == RadioError::REQUEST_NOT_SUPPORTED); } } |