diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2019-06-07 01:00:21 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-06-07 01:00:21 +0000 |
commit | d23921925eeb0d42497e5e4bee75b5e500d71fc0 (patch) | |
tree | 7fe7baa61c3377e8af9eea761e64dab582143092 /tests/wifitests/src/com/android/server | |
parent | af9b7b297e43fe6fe347a6143d76bde2cb2363c6 (diff) | |
parent | a45902327a2ee77551a1a29833ab987a8dc7fd4f (diff) | |
download | android_frameworks_opt_net_wifi-d23921925eeb0d42497e5e4bee75b5e500d71fc0.tar.gz android_frameworks_opt_net_wifi-d23921925eeb0d42497e5e4bee75b5e500d71fc0.tar.bz2 android_frameworks_opt_net_wifi-d23921925eeb0d42497e5e4bee75b5e500d71fc0.zip |
Merge "[AWARE]Change default DW" into qt-dev
Diffstat (limited to 'tests/wifitests/src/com/android/server')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeApiTest.java | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeApiTest.java b/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeApiTest.java index 6fe855666..1be56cc9e 100644 --- a/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeApiTest.java +++ b/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeApiTest.java @@ -145,16 +145,25 @@ public class WifiAwareNativeApiTest { */ @Test public void testEnableAndConfigPowerSettingsDefaults() throws RemoteException { + byte default5 = 1; + byte default24 = 1; + Pair<NanConfigRequest, NanConfigRequestSupplemental> configs = validateEnableAndConfigure((short) 10, new ConfigRequest.Builder().build(), true, true, true, false, false); - collector.checkThat("validDiscoveryWindowIntervalVal-5", false, + collector.checkThat("validDiscoveryWindowIntervalVal-5", true, equalTo(configs.first.bandSpecificConfig[NanBandIndex.NAN_BAND_5GHZ] .validDiscoveryWindowIntervalVal)); - collector.checkThat("validDiscoveryWindowIntervalVal-24", false, + collector.checkThat("validDiscoveryWindowIntervalVal-24", true, equalTo(configs.first.bandSpecificConfig[NanBandIndex.NAN_BAND_24GHZ] .validDiscoveryWindowIntervalVal)); + collector.checkThat("discoveryWindowIntervalVal-5", default5, + equalTo(configs.first.bandSpecificConfig[NanBandIndex.NAN_BAND_5GHZ] + .discoveryWindowIntervalVal)); + collector.checkThat("discoveryWindowIntervalVal-24", default24, + equalTo(configs.first.bandSpecificConfig[NanBandIndex.NAN_BAND_24GHZ] + .discoveryWindowIntervalVal)); } /** @@ -218,16 +227,25 @@ public class WifiAwareNativeApiTest { */ @Test public void testEnableAndConfigPowerSettingsDefaults_1_2() throws RemoteException { + byte default5 = 1; + byte default24 = 1; + Pair<NanConfigRequest, NanConfigRequestSupplemental> configs = validateEnableAndConfigure((short) 10, new ConfigRequest.Builder().build(), true, true, true, false, true); - collector.checkThat("validDiscoveryWindowIntervalVal-5", false, + collector.checkThat("validDiscoveryWindowIntervalVal-5", true, equalTo(configs.first.bandSpecificConfig[NanBandIndex.NAN_BAND_5GHZ] .validDiscoveryWindowIntervalVal)); - collector.checkThat("validDiscoveryWindowIntervalVal-24", false, + collector.checkThat("validDiscoveryWindowIntervalVal-24", true, equalTo(configs.first.bandSpecificConfig[NanBandIndex.NAN_BAND_24GHZ] .validDiscoveryWindowIntervalVal)); + collector.checkThat("discoveryWindowIntervalVal-5", default5, + equalTo(configs.first.bandSpecificConfig[NanBandIndex.NAN_BAND_5GHZ] + .discoveryWindowIntervalVal)); + collector.checkThat("discoveryWindowIntervalVal-24", default24, + equalTo(configs.first.bandSpecificConfig[NanBandIndex.NAN_BAND_24GHZ] + .discoveryWindowIntervalVal)); collector.checkThat("discoveryBeaconIntervalMs", 0, equalTo(configs.second.discoveryBeaconIntervalMs)); |