mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Add Vts to enforce radioConfig is existed" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2317d2e960
@@ -31,7 +31,9 @@ cc_test {
|
||||
"android.hardware.radio@1.2",
|
||||
"android.hardware.radio@1.1",
|
||||
"android.hardware.radio@1.0",
|
||||
"android.hardware.radio.config@1.0",
|
||||
"android.hardware.radio.config@1.1",
|
||||
],
|
||||
header_libs: ["radio.util.header@1.0"],
|
||||
test_suites: ["general-tests"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,6 +47,13 @@ void RadioHidlTest_v1_4::SetUp() {
|
||||
EXPECT_EQ(serial, radioRsp_v1_4->rspInfo.serial);
|
||||
EXPECT_EQ(RadioError::NONE, radioRsp_v1_4->rspInfo.error);
|
||||
|
||||
sp<::android::hardware::radio::config::V1_1::IRadioConfig> radioConfig =
|
||||
::testing::VtsHalHidlTargetTestBase::getService<
|
||||
::android::hardware::radio::config::V1_1::IRadioConfig>();
|
||||
|
||||
/* Enforce Vts tesing with RadioConfig is existed. */
|
||||
ASSERT_NE(nullptr, radioConfig.get());
|
||||
|
||||
/* Enforce Vts Testing with Sim Status Present only. */
|
||||
EXPECT_EQ(CardState::PRESENT, cardStatus.base.base.cardState);
|
||||
}
|
||||
@@ -84,4 +91,4 @@ void RadioHidlTest_v1_4::updateSimCardStatus() {
|
||||
serial = GetRandomSerialNumber();
|
||||
radio_v1_4->getIccCardStatus(serial);
|
||||
EXPECT_EQ(std::cv_status::no_timeout, wait());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include <condition_variable>
|
||||
#include <mutex>
|
||||
|
||||
#include <android/hardware/radio/config/1.1/IRadioConfig.h>
|
||||
|
||||
#include <android/hardware/radio/1.4/IRadio.h>
|
||||
#include <android/hardware/radio/1.4/IRadioIndication.h>
|
||||
#include <android/hardware/radio/1.4/IRadioResponse.h>
|
||||
|
||||
Reference in New Issue
Block a user