summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Michael Wright <michaelwr@google.com> 2020-03-20 19:02:10 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-03-20 19:02:10 +0000
commit6fdf2d5de42960e5e411e1987eee6564a9663562 (patch)
treed7b8ead5d62de3ea29c19a969da7e9eb3029a1d1
parentba8080b20cbc7e707851f4a67971c2932aeaba3b (diff)
parent042ec9658e9c121eaae46cf62ace0fa2d50f7a57 (diff)
Merge "WifiCandidatesTest: stop inheriting from ScanResult" into rvc-dev
-rw-r--r--service/tests/wifitests/src/com/android/server/wifi/WifiCandidatesTest.java17
1 files changed, 8 insertions, 9 deletions
diff --git a/service/tests/wifitests/src/com/android/server/wifi/WifiCandidatesTest.java b/service/tests/wifitests/src/com/android/server/wifi/WifiCandidatesTest.java
index 4b64f71a6c..b97b252484 100644
--- a/service/tests/wifitests/src/com/android/server/wifi/WifiCandidatesTest.java
+++ b/service/tests/wifitests/src/com/android/server/wifi/WifiCandidatesTest.java
@@ -66,16 +66,15 @@ public class WifiCandidatesTest extends WifiBaseTest {
mWifiCandidates = new WifiCandidates(mWifiScoreCard, mContext);
mConfig1 = WifiConfigurationTestUtil.createOpenNetwork();
- mScanResult1 = new ScanResult() {{
- SSID = removeEnclosingQuotes(mConfig1.SSID);
- capabilities = "[ESS]";
- BSSID = "00:00:00:00:00:01";
- }};
+ mScanResult1 = new ScanResult();
+ mScanResult1.SSID = removeEnclosingQuotes(mConfig1.SSID);
+ mScanResult1.capabilities = "[ESS]";
+ mScanResult1.BSSID = "00:00:00:00:00:01";
+
mConfig2 = WifiConfigurationTestUtil.createEphemeralNetwork();
- mScanResult2 = new ScanResult() {{
- SSID = removeEnclosingQuotes(mConfig2.SSID);
- capabilities = "[ESS]";
- }};
+ mScanResult2 = new ScanResult();
+ mScanResult2.SSID = removeEnclosingQuotes(mConfig2.SSID);
+ mScanResult2.capabilities = "[ESS]";
doReturn(mScanResult1).when(mScanDetail1).getScanResult();
doReturn(mScanResult2).when(mScanDetail2).getScanResult();