From 271f16e6f71bede2b426fb9fe1810f81e87f49b6 Mon Sep 17 00:00:00 2001 From: Ningyuan Wang Date: Mon, 10 Apr 2017 20:44:18 -0700 Subject: [PATCH] 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 --- .../1.0/vts/functional/supplicant_sta_network_hidl_test.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wifi/supplicant/1.0/vts/functional/supplicant_sta_network_hidl_test.cpp b/wifi/supplicant/1.0/vts/functional/supplicant_sta_network_hidl_test.cpp index aa84e9ac84..d76f4e5690 100644 --- a/wifi/supplicant/1.0/vts/functional/supplicant_sta_network_hidl_test.cpp +++ b/wifi/supplicant/1.0/vts/functional/supplicant_sta_network_hidl_test.cpp @@ -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(