Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9efbbfa2 authored by Shuo Qian's avatar Shuo Qian Committed by Android (Google) Code Review
Browse files

Merge "Set time delay in the vts test setup"

parents 53783b3f fe32af21
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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);
+5 −0
Original line number Diff line number Diff line
@@ -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);
+5 −0
Original line number Diff line number Diff line
@@ -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);