Merge "Fix VTS crash for getAvailableNetworks in Radio 1.6" am: 058de98e44 am: 90f0c0e3be

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

Change-Id: I17209d9f01e8673f1e327968f20b2a0e75945e22
This commit is contained in:
Aaron Tsai 2021-05-14 03:49:24 +00:00 committed by Automerger Merge Worker
commit 63f6d9bb3a

View file

@ -45,12 +45,10 @@ TEST_P(RadioHidlTest_v1_6, getAvailableNetworks) {
::android::hardware::radio::V1_0::RadioError::NONE) {
static const std::regex kOperatorNumericRe("^[0-9]{5,6}$");
for (OperatorInfo info : radioRsp_v1_6->networkInfos) {
if (info.operatorNumeric != nullptr) {
ASSERT_TRUE(
std::regex_match(std::string(info.operatorNumeric), kOperatorNumericRe));
}
}
}
LOG(DEBUG) << "getAvailableNetworks finished";
}