Fix VTS test for SupplicantStaNetwork::setGetEapPhase2Method()

EAP method needs to be set to construct the eap phase 2 method string.

Bug: 37220169
Test: vts tests pass
Change-Id: Ie69aaac0826d4bde784f864631a718242dd5af2a
This commit is contained in:
Ningyuan Wang
2017-04-10 20:44:18 -07:00
parent 5ed473340c
commit 271f16e6f7

View File

@@ -361,6 +361,12 @@ TEST_F(SupplicantStaNetworkHidlTest, SetGetEapMethod) {
* SetGetEapPhase2Method
*/
TEST_F(SupplicantStaNetworkHidlTest, SetGetEapPhase2Method) {
ISupplicantStaNetwork::EapMethod set_eap_method =
ISupplicantStaNetwork::EapMethod::PEAP;
sta_network_->setEapMethod(
set_eap_method, [](const SupplicantStatus& status) {
EXPECT_EQ(SupplicantStatusCode::SUCCESS, status.code);
});
ISupplicantStaNetwork::EapPhase2Method set_eap_phase2_method =
ISupplicantStaNetwork::EapPhase2Method::NONE;
sta_network_->setEapPhase2Method(