diff options
author | Iris Chang <iris.chang@mediatek.com> | 2017-11-15 04:10:23 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-11-15 04:10:23 +0000 |
commit | 0c9df89f885c6e7866aed1046323d05be17c13ee (patch) | |
tree | 3a3de0f896fedddcd9fc21c4604de2466e31ecd2 /radio/1.1 | |
parent | c8c5001b00975cf0091633b14251b8daaf68ae5c (diff) | |
parent | 89b2d24fb0c8c6c8f8c5657291f511cd21b6a92a (diff) | |
download | platform_hardware_interfaces-0c9df89f885c6e7866aed1046323d05be17c13ee.tar.gz platform_hardware_interfaces-0c9df89f885c6e7866aed1046323d05be17c13ee.tar.bz2 platform_hardware_interfaces-0c9df89f885c6e7866aed1046323d05be17c13ee.zip |
Merge "VTS: fix RadioHidlTest.getAvailableNetworks issue"
am: 89b2d24fb0
Change-Id: I96c5b3873c53fba6fca5905f0a5897a7f8801f4a
Diffstat (limited to 'radio/1.1')
-rw-r--r-- | radio/1.1/vts/functional/radio_hidl_hal_test.cpp | 4 | ||||
-rw-r--r-- | radio/1.1/vts/functional/radio_hidl_hal_utils_v1_1.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/radio/1.1/vts/functional/radio_hidl_hal_test.cpp b/radio/1.1/vts/functional/radio_hidl_hal_test.cpp index e0b1ad4bc9..f03db20182 100644 --- a/radio/1.1/vts/functional/radio_hidl_hal_test.cpp +++ b/radio/1.1/vts/functional/radio_hidl_hal_test.cpp @@ -52,13 +52,13 @@ void RadioHidlTest_v1_1::notify() { cv.notify_one(); } -std::cv_status RadioHidlTest_v1_1::wait() { +std::cv_status RadioHidlTest_v1_1::wait(int sec) { std::unique_lock<std::mutex> lock(mtx); std::cv_status status = std::cv_status::no_timeout; auto now = std::chrono::system_clock::now(); while (count == 0) { - status = cv.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD)); + status = cv.wait_until(lock, now + std::chrono::seconds(sec)); if (status == std::cv_status::timeout) { return status; } diff --git a/radio/1.1/vts/functional/radio_hidl_hal_utils_v1_1.h b/radio/1.1/vts/functional/radio_hidl_hal_utils_v1_1.h index 3e31459169..523b9babe5 100644 --- a/radio/1.1/vts/functional/radio_hidl_hal_utils_v1_1.h +++ b/radio/1.1/vts/functional/radio_hidl_hal_utils_v1_1.h @@ -550,7 +550,7 @@ class RadioHidlTest_v1_1 : public ::testing::VtsHalHidlTargetTestBase { void notify(); /* Test code calls this function to wait for response */ - std::cv_status wait(); + std::cv_status wait(int sec = TIMEOUT_PERIOD); /* Used for checking General Errors */ bool CheckGeneralError(); @@ -561,4 +561,4 @@ class RadioHidlTest_v1_1 : public ::testing::VtsHalHidlTargetTestBase { sp<::android::hardware::radio::V1_1::IRadio> radio_v1_1; sp<RadioResponse_v1_1> radioRsp_v1_1; sp<RadioIndication_v1_1> radioInd_v1_1; -};
\ No newline at end of file +}; |