OSDN Git Service
(root)
/
android-x86
/
hardware-interfaces.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add REQUEST_NOT_SUPPORTED / SIM_ABSENT for vts tests
[android-x86/hardware-interfaces.git]
/
radio
/
1.0
/
vts
/
functional
/
radio_hidl_hal_ims.cpp
diff --git
a/radio/1.0/vts/functional/radio_hidl_hal_ims.cpp
b/radio/1.0/vts/functional/radio_hidl_hal_ims.cpp
index
16465c7
..
aa9d987
100644
(file)
--- a/
radio/1.0/vts/functional/radio_hidl_hal_ims.cpp
+++ b/
radio/1.0/vts/functional/radio_hidl_hal_ims.cpp
@@
-14,7
+14,7
@@
* limitations under the License.
*/
* limitations under the License.
*/
-#include <radio_hidl_hal_utils.h>
+#include <radio_hidl_hal_utils
_v1_0
.h>
using namespace ::android::hardware::radio::V1_0;
using namespace ::android::hardware::radio::V1_0;
@@
-155,7
+155,8
@@
TEST_F(RadioHidlTest, setSuppServiceNotifications) {
EXPECT_EQ(serial, radioRsp->rspInfo.serial);
if (cardStatus.cardState == CardState::ABSENT) {
EXPECT_EQ(serial, radioRsp->rspInfo.serial);
if (cardStatus.cardState == CardState::ABSENT) {
- EXPECT_EQ(RadioError::NONE, radioRsp->rspInfo.error);
+ ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE ||
+ radioRsp->rspInfo.error == RadioError::SIM_ABSENT);
}
}
}
}
@@
-173,7
+174,7
@@
TEST_F(RadioHidlTest, requestIsimAuthentication) {
EXPECT_EQ(serial, radioRsp->rspInfo.serial);
if (cardStatus.cardState == CardState::ABSENT) {
EXPECT_EQ(serial, radioRsp->rspInfo.serial);
if (cardStatus.cardState == CardState::ABSENT) {
- ASSERT_TRUE(CheckGeneralError());
+ ASSERT_TRUE(CheckGeneralError()
|| radioRsp->rspInfo.error == RadioError::SIM_ABSENT
);
}
}
}
}