mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
Merge "Set time delay in the vts test setup"
This commit is contained in:
@@ -19,6 +19,11 @@
|
||||
void RadioHidlTest::SetUp() {
|
||||
radio =
|
||||
::testing::VtsHalHidlTargetTestBase::getService<IRadio>(hidl_string(RADIO_SERVICE_NAME));
|
||||
if (radio == NULL) {
|
||||
sleep(60);
|
||||
radio = ::testing::VtsHalHidlTargetTestBase::getService<IRadio>(
|
||||
hidl_string(RADIO_SERVICE_NAME));
|
||||
}
|
||||
ASSERT_NE(nullptr, radio.get());
|
||||
|
||||
radioRsp = new (std::nothrow) RadioResponse(*this);
|
||||
|
||||
@@ -20,6 +20,11 @@ void RadioHidlTest_v1_1::SetUp() {
|
||||
radio_v1_1 =
|
||||
::testing::VtsHalHidlTargetTestBase::getService<::android::hardware::radio::V1_1::IRadio>(
|
||||
hidl_string(RADIO_SERVICE_NAME));
|
||||
if (radio_v1_1 == NULL) {
|
||||
sleep(60);
|
||||
radio_v1_1 = ::testing::VtsHalHidlTargetTestBase::getService<
|
||||
::android::hardware::radio::V1_1::IRadio>(hidl_string(RADIO_SERVICE_NAME));
|
||||
}
|
||||
ASSERT_NE(nullptr, radio_v1_1.get());
|
||||
|
||||
radioRsp_v1_1 = new (std::nothrow) RadioResponse_v1_1(*this);
|
||||
|
||||
@@ -19,6 +19,11 @@
|
||||
void RadioHidlTest_v1_2::SetUp() {
|
||||
radio_v1_2 = ::testing::VtsHalHidlTargetTestBase::getService<V1_2::IRadio>(
|
||||
hidl_string(RADIO_SERVICE_NAME));
|
||||
if (radio_v1_2 == NULL) {
|
||||
sleep(60);
|
||||
radio_v1_2 = ::testing::VtsHalHidlTargetTestBase::getService<V1_2::IRadio>(
|
||||
hidl_string(RADIO_SERVICE_NAME));
|
||||
}
|
||||
ASSERT_NE(nullptr, radio_v1_2.get());
|
||||
|
||||
radioRsp_v1_2 = new (std::nothrow) RadioResponse_v1_2(*this);
|
||||
|
||||
Reference in New Issue
Block a user