diff options
Diffstat (limited to 'radio/1.0/vts/functional/radio_hidl_hal_test.cpp')
-rw-r--r-- | radio/1.0/vts/functional/radio_hidl_hal_test.cpp | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/radio/1.0/vts/functional/radio_hidl_hal_test.cpp b/radio/1.0/vts/functional/radio_hidl_hal_test.cpp index b5f036ea..247e12cd 100644 --- a/radio/1.0/vts/functional/radio_hidl_hal_test.cpp +++ b/radio/1.0/vts/functional/radio_hidl_hal_test.cpp | |||
@@ -19,6 +19,11 @@ | |||
19 | void RadioHidlTest::SetUp() { | 19 | void RadioHidlTest::SetUp() { |
20 | radio = | 20 | radio = |
21 | ::testing::VtsHalHidlTargetTestBase::getService<IRadio>(hidl_string(RADIO_SERVICE_NAME)); | 21 | ::testing::VtsHalHidlTargetTestBase::getService<IRadio>(hidl_string(RADIO_SERVICE_NAME)); |
22 | if (radio == NULL) { | ||
23 | sleep(60); | ||
24 | radio = ::testing::VtsHalHidlTargetTestBase::getService<IRadio>( | ||
25 | hidl_string(RADIO_SERVICE_NAME)); | ||
26 | } | ||
22 | ASSERT_NE(nullptr, radio.get()); | 27 | ASSERT_NE(nullptr, radio.get()); |
23 | 28 | ||
24 | radioRsp = new (std::nothrow) RadioResponse(*this); | 29 | radioRsp = new (std::nothrow) RadioResponse(*this); |
@@ -64,18 +69,4 @@ std::cv_status RadioHidlTest::wait(int sec) { | |||
64 | } | 69 | } |
65 | count--; | 70 | count--; |
66 | return status; | 71 | return status; |
67 | } | 72 | } \ No newline at end of file |
68 | |||
69 | bool RadioHidlTest::CheckGeneralError() { | ||
70 | return (radioRsp->rspInfo.error == RadioError::RADIO_NOT_AVAILABLE || | ||
71 | radioRsp->rspInfo.error == RadioError::NO_MEMORY || | ||
72 | radioRsp->rspInfo.error == RadioError::INTERNAL_ERR || | ||
73 | radioRsp->rspInfo.error == RadioError::SYSTEM_ERR || | ||
74 | radioRsp->rspInfo.error == RadioError::REQUEST_NOT_SUPPORTED || | ||
75 | radioRsp->rspInfo.error == RadioError::CANCELLED); | ||
76 | } | ||
77 | |||
78 | bool RadioHidlTest::CheckOEMError() { | ||
79 | return (radioRsp->rspInfo.error >= RadioError::OEM_ERROR_1 && | ||
80 | radioRsp->rspInfo.error <= RadioError::OEM_ERROR_25); | ||
81 | } | ||