diff options
author | Etan Cohen <etancohen@google.com> | 2017-03-23 08:11:47 -0700 |
---|---|---|
committer | Etan Cohen <etancohen@google.com> | 2017-03-23 17:37:42 -0700 |
commit | 2d523c012e16e62d73bde73d853421826aae278f (patch) | |
tree | 9c276a18f052772cae37057d0b37618581cd2548 /wifi/1.0/vts/functional/wifi_hidl_test_utils.cpp | |
parent | 3b4d423d428b3169e6457a9106be4fa38c450024 (diff) |
[WIFI] Restore initialization code
Restore the usage of WIFI-specific main function. The main
function was inadvertantly disabled by moving it into a static
library - which caused the default main to be used.
Need a custom main since need to stop WIFI before tests start
to enforce a clean starting point.
Bug: 35276551
Test: confirms custom main routine is called
Change-Id: I978827bc0f0f16d9ca4f159fbf42d0bc53f5df99
Diffstat (limited to 'wifi/1.0/vts/functional/wifi_hidl_test_utils.cpp')
-rw-r--r-- | wifi/1.0/vts/functional/wifi_hidl_test_utils.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/wifi/1.0/vts/functional/wifi_hidl_test_utils.cpp b/wifi/1.0/vts/functional/wifi_hidl_test_utils.cpp index 2d0b081d17..fefbd79e5a 100644 --- a/wifi/1.0/vts/functional/wifi_hidl_test_utils.cpp +++ b/wifi/1.0/vts/functional/wifi_hidl_test_utils.cpp @@ -82,14 +82,6 @@ bool configureChipToSupportIfaceTypeInternal(const sp<IWifiChip>& wifi_chip, } } // namespace -void stopFramework() { - ASSERT_EQ(std::system("stop"), 0); - stopWifi(); - sleep(5); -} - -void startFramework() { ASSERT_EQ(std::system("start"), 0); } - sp<IWifi> getWifi() { sp<IWifi> wifi = ::testing::VtsHalHidlTargetTestBase::getService<IWifi>(); return wifi; |