supplicant(vts): Remove start/stop framework

am: 80599435bd

Change-Id: Icb8204bee8bd24de30eab5e25f6ed26f1eca53c2
This commit is contained in:
Roshan Pius 2017-07-25 06:44:52 +00:00 committed by android-build-merger
commit d796137703
2 changed files with 0 additions and 16 deletions

View file

@ -23,12 +23,9 @@
class SupplicantHidlEnvironment : public ::testing::Environment {
public:
virtual void SetUp() override {
stopWifiFramework();
stopSupplicant();
}
virtual void TearDown() override {
startWifiFramework();
// Framework will start wpa_supplicant.
}
};

View file

@ -135,19 +135,6 @@ class ServiceNotificationListener : public IServiceNotification {
std::condition_variable condition_;
};
void stopWifiFramework() {
ASSERT_EQ(std::system("stop"), 0);
// TODO: Use some other mechanism to wait for the framework to
// finish disabling.
sleep(5);
}
void startWifiFramework() {
ASSERT_EQ(std::system("start"), 0);
// These tests don't care whether the framework
// finished enabling or not.
}
void stopSupplicant() {
DriverTool driver_tool;
SupplicantManager supplicant_manager;