summaryrefslogtreecommitdiff
path: root/wifi/tests
diff options
context:
space:
mode:
authorLes Lee <lesl@google.com>2020-03-12 03:49:32 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-03-12 03:49:32 +0000
commit84b4877d85b30df12963db416b53d03edff40ea2 (patch)
tree8544c9620115f70108b8c828b30f671745e6d56e /wifi/tests
parentc688e204e10c4b60afe15efa2f3d3f5efd7ae6a6 (diff)
parent417a3b0a87851d2773cd5ca934a9be22fc1fddec (diff)
Merge "wifi: API Review: API changes to SoftApConfiguration.Builder" into rvc-dev
Diffstat (limited to 'wifi/tests')
-rw-r--r--wifi/tests/src/android/net/wifi/SoftApConfigurationTest.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/wifi/tests/src/android/net/wifi/SoftApConfigurationTest.java b/wifi/tests/src/android/net/wifi/SoftApConfigurationTest.java
index 060ddf05b8d7..1a4427034756 100644
--- a/wifi/tests/src/android/net/wifi/SoftApConfigurationTest.java
+++ b/wifi/tests/src/android/net/wifi/SoftApConfigurationTest.java
@@ -127,8 +127,9 @@ public class SoftApConfigurationTest {
.setMaxNumberOfClients(10)
.setAutoShutdownEnabled(true)
.setShutdownTimeoutMillis(500000)
- .enableClientControlByUser(true)
- .setClientList(testBlockedClientList, testAllowedClientList)
+ .setClientControlByUserEnabled(true)
+ .setBlockedClientList(testBlockedClientList)
+ .setAllowedClientList(testAllowedClientList)
.build();
assertThat(original.getPassphrase()).isEqualTo("secretsecret");
assertThat(original.getSecurityType()).isEqualTo(
@@ -264,7 +265,9 @@ public class SoftApConfigurationTest {
ArrayList<MacAddress> testBlockedClientList = new ArrayList<>();
testBlockedClientList.add(testMacAddress_1);
SoftApConfiguration.Builder configBuilder = new SoftApConfiguration.Builder();
- configBuilder.setClientList(testBlockedClientList, testAllowedClientList);
+ configBuilder.setBlockedClientList(testBlockedClientList)
+ .setAllowedClientList(testAllowedClientList)
+ .build();
}
@Test