From 6bf853a9e158576ac0c11328877fa659313d0657 Mon Sep 17 00:00:00 2001 From: Peter Qiu Date: Thu, 9 Mar 2017 13:18:32 -0800 Subject: [PATCH] wifi: update callsite for Passpoint configuration management APIs The APIs are updated to not return a boolean status based on the API Councils comment. So update the callsite accordingly. Bug: 35858311 Test: make -j32 Change-Id: Ie9106ecddb2b15178ad37ec6f014d5cc7ce77c43 --- tests/cts/net/src/android/net/wifi/cts/WifiManagerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cts/net/src/android/net/wifi/cts/WifiManagerTest.java b/tests/cts/net/src/android/net/wifi/cts/WifiManagerTest.java index d3dc8faadd..f05ff82f04 100644 --- a/tests/cts/net/src/android/net/wifi/cts/WifiManagerTest.java +++ b/tests/cts/net/src/android/net/wifi/cts/WifiManagerTest.java @@ -656,7 +656,7 @@ public class WifiManagerTest extends AndroidTestCase { * @param config The configuration to test with */ private void testAddPasspointConfig(PasspointConfiguration config) throws Exception { - assertTrue(mWifiManager.addOrUpdatePasspointConfiguration(config)); + mWifiManager.addOrUpdatePasspointConfiguration(config); // Certificates and keys will be set to null after it is installed to the KeyStore by // WifiManager. Reset them in the expected config so that it can be used to compare @@ -671,7 +671,7 @@ public class WifiManagerTest extends AndroidTestCase { assertEquals(config, configList.get(0)); // Remove the configuration and verify no installed configuration. - assertTrue(mWifiManager.removePasspointConfiguration(config.getHomeSp().getFqdn())); + mWifiManager.removePasspointConfiguration(config.getHomeSp().getFqdn()); assertTrue(mWifiManager.getPasspointConfigurations().isEmpty()); } }