Search in sources :

Example 1 with WifiKey

use of android.net.WifiKey in project platform_frameworks_base by android.

the class WifiNetworkScoreCacheTest method updateScoresShouldAddNewNetwork.

@Test
public void updateScoresShouldAddNewNetwork() {
    WifiKey key2 = new WifiKey("\"ssid2\"", BSSID);
    ScoredNetwork network2 = buildScoredNetwork(key2, mockRssiCurve);
    ScanResult result2 = buildScanResult("ssid2", BSSID);
    mScoreCache.updateScores(ImmutableList.of(network2));
    assertTrue(mScoreCache.isScoredNetwork(VALID_SCAN_RESULT));
    assertTrue(mScoreCache.isScoredNetwork(result2));
}
Also used : WifiKey(android.net.WifiKey) ScoredNetwork(android.net.ScoredNetwork) SmallTest(android.support.test.filters.SmallTest) Test(org.junit.Test)

Aggregations

ScoredNetwork (android.net.ScoredNetwork)1 WifiKey (android.net.WifiKey)1 SmallTest (android.support.test.filters.SmallTest)1 Test (org.junit.Test)1