Loading wifi/supplicant/1.0/vts/functional/supplicant_sta_iface_hidl_test.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ #include "supplicant_hidl_call_util.h" #include "supplicant_hidl_test_utils.h" #include <cutils/properties.h> using ::android::sp; using ::android::hardware::hidl_array; Loading Loading @@ -61,7 +62,7 @@ constexpr char kTestRadioWorkName[] = "TestRadioWork"; constexpr uint32_t kTestRadioWorkFrequency = 2412; constexpr uint32_t kTestRadioWorkTimeout = 8; constexpr uint32_t kTestRadioWorkId = 16; constexpr int8_t kTestCountryCode[] = {'U', 'S'}; int8_t kTestCountryCode[] = {'U', 'S'}; constexpr uint8_t kTestWpsDeviceType[] = {[0 ... 7] = 0x01}; constexpr uint16_t kTestWpsConfigMethods = 0xffff; } // namespace Loading Loading @@ -454,6 +455,10 @@ TEST_P(SupplicantStaIfaceHidlTest, SetSuspendModeEnabled) { * SetCountryCode. */ TEST_P(SupplicantStaIfaceHidlTest, SetCountryCode) { std::array<char, PROPERTY_VALUE_MAX> buffer; property_get("ro.boot.wificountrycode", buffer.data(), "US"); kTestCountryCode[0] = buffer.data()[0]; kTestCountryCode[1] = buffer.data()[1]; sta_iface_->setCountryCode( kTestCountryCode, [](const SupplicantStatus& status) { EXPECT_EQ(SupplicantStatusCode::SUCCESS, status.code); Loading Loading
wifi/supplicant/1.0/vts/functional/supplicant_sta_iface_hidl_test.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ #include "supplicant_hidl_call_util.h" #include "supplicant_hidl_test_utils.h" #include <cutils/properties.h> using ::android::sp; using ::android::hardware::hidl_array; Loading Loading @@ -61,7 +62,7 @@ constexpr char kTestRadioWorkName[] = "TestRadioWork"; constexpr uint32_t kTestRadioWorkFrequency = 2412; constexpr uint32_t kTestRadioWorkTimeout = 8; constexpr uint32_t kTestRadioWorkId = 16; constexpr int8_t kTestCountryCode[] = {'U', 'S'}; int8_t kTestCountryCode[] = {'U', 'S'}; constexpr uint8_t kTestWpsDeviceType[] = {[0 ... 7] = 0x01}; constexpr uint16_t kTestWpsConfigMethods = 0xffff; } // namespace Loading Loading @@ -454,6 +455,10 @@ TEST_P(SupplicantStaIfaceHidlTest, SetSuspendModeEnabled) { * SetCountryCode. */ TEST_P(SupplicantStaIfaceHidlTest, SetCountryCode) { std::array<char, PROPERTY_VALUE_MAX> buffer; property_get("ro.boot.wificountrycode", buffer.data(), "US"); kTestCountryCode[0] = buffer.data()[0]; kTestCountryCode[1] = buffer.data()[1]; sta_iface_->setCountryCode( kTestCountryCode, [](const SupplicantStatus& status) { EXPECT_EQ(SupplicantStatusCode::SUCCESS, status.code); Loading