diff options
author | sqian <shuoq@google.com> | 2019-07-26 11:47:28 -0700 |
---|---|---|
committer | Shuo Qian <shuoq@google.com> | 2019-07-26 18:49:02 +0000 |
commit | 5f68117e87f4761948ce287d239c38b7c33081c0 (patch) | |
tree | d2b344ec39f5aca75882864399969af11c7d526e /radio | |
parent | d005bbeb53ab7b170335acd038115499d25a5d3c (diff) | |
download | android_hardware_interfaces-5f68117e87f4761948ce287d239c38b7c33081c0.tar.gz android_hardware_interfaces-5f68117e87f4761948ce287d239c38b7c33081c0.tar.bz2 android_hardware_interfaces-5f68117e87f4761948ce287d239c38b7c33081c0.zip |
Verify there are no more current calls
After disconnect calls, we want to verify there are no more current calls
by calling IRadio.getCurrenctCalls
Test: run vts
Bug: 138413412
Change-Id: Iacca49abff11fbdfb4ae6dd060a5f150e9e4a74d
Diffstat (limited to 'radio')
-rw-r--r-- | radio/1.4/vts/functional/radio_hidl_hal_test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/radio/1.4/vts/functional/radio_hidl_hal_test.cpp b/radio/1.4/vts/functional/radio_hidl_hal_test.cpp index 63e5f6ed5..f27749b3e 100644 --- a/radio/1.4/vts/functional/radio_hidl_hal_test.cpp +++ b/radio/1.4/vts/functional/radio_hidl_hal_test.cpp @@ -102,6 +102,12 @@ void RadioHidlTest_v1_4::clearPotentialEstablishedCalls() { // Give some time for modem to disconnect the established call channel. sleep(MODEM_EMERGENCY_CALL_DISCONNECT_TIME); } + + // Verify there are no more current calls. + serial = GetRandomSerialNumber(); + radio_v1_4->getCurrentCalls(serial); + EXPECT_EQ(std::cv_status::no_timeout, wait()); + EXPECT_EQ(0, radioRsp_v1_4->currentCalls.size()); } void RadioHidlTest_v1_4::updateSimCardStatus() { |