supplicant/hostapd(vts): Test for terminate

This HIDL API is meant to terminate the HIDL service. On Pixel devices,
terminate will trigger the death of the corresponding daemon.
But, other OEM's may choose to do something else.

Bug: 71613595
Bug: 71613528
Test: Ran the VTS tests
Change-Id: I737458b5c49ecd5545be0dc7033092db9a35b089
This commit is contained in:
Roshan Pius
2018-03-02 15:12:42 -08:00
parent c2b7f42d7d
commit b887dedf99
2 changed files with 16 additions and 0 deletions

View File

@@ -220,3 +220,11 @@ TEST_F(HostapdHidlTest, AddInvalidPskAccessPointWithoutAcs) {
getInvalidPskNwParams());
EXPECT_NE(HostapdStatusCode::SUCCESS, status.code);
}
/*
* Terminate
* This terminates the service.
*/
TEST_F(HostapdHidlTest, Terminate) {
hostapd_->terminate();
}

View File

@@ -137,3 +137,11 @@ TEST_F(SupplicantHidlTest, RemoveP2pInterface) {
EXPECT_EQ(SupplicantStatusCode::SUCCESS, status.code);
});
}
/*
* Terminate
* This terminates the service.
*/
TEST_F(SupplicantHidlTest, Terminate) {
supplicant_->terminate();
}