summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Plass <mplass@google.com>2019-10-25 00:02:54 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-10-25 00:02:54 +0000
commit2d22d21a2bf52b552880742ecb1fa50d734beff1 (patch)
tree7769429c96571571cd3d182d9b3ce904e7f0651b /tests
parent2bf5f0154051d5e31f8e553803dae38bc6fad421 (diff)
parent6a1ccbafa44fb383c87e5b4341547bdb3bc4c936 (diff)
Merge changes Ia7dd4afc,Ia7f03444,I2832835c
* changes: [WifiCandidates] Simplify CandidateScorer [WifiCandidates] More flexible UCS Wifi network selection tuneup
Diffstat (limited to 'tests')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/CandidateScorerTest.java4
-rw-r--r--tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTest.java7
2 files changed, 3 insertions, 8 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/CandidateScorerTest.java b/tests/wifitests/src/com/android/server/wifi/CandidateScorerTest.java
index 0f0d33a60..037fd14ab 100644
--- a/tests/wifitests/src/com/android/server/wifi/CandidateScorerTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/CandidateScorerTest.java
@@ -166,8 +166,8 @@ public class CandidateScorerTest extends WifiBaseTest {
*/
@Test
public void testPreferTheCurrentNetworkEvenIfRssiDifferenceIsSignificant() throws Exception {
- assertThat(evaluate(mCandidate1.setScanRssi(-77).setCurrentNetwork(true)),
- greaterThan(evaluate(mCandidate2.setScanRssi(-68))));
+ assertThat(evaluate(mCandidate1.setScanRssi(-74).setCurrentNetwork(true)),
+ greaterThan(evaluate(mCandidate2.setScanRssi(-65))));
}
/**
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTest.java b/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTest.java
index 6dac7fe22..adb1be81c 100644
--- a/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTest.java
@@ -1480,12 +1480,7 @@ public class WifiNetworkSelectorTest extends WifiBaseTest {
@Override
public WifiCandidates.ScoredCandidate scoreCandidates(
Collection<WifiCandidates.Candidate> group) {
- return new WifiCandidates.ScoredCandidate(0, 0, null);
- }
-
- @Override
- public boolean userConnectChoiceOverrideWanted() {
- return false;
+ return new WifiCandidates.ScoredCandidate(0, 0, false, null);
}
};