summaryrefslogtreecommitdiff
path: root/wifi/tests/src
diff options
context:
space:
mode:
authorDavid Su <dysu@google.com>2020-03-19 12:51:02 -0700
committerDavid Su <dysu@google.com>2020-03-19 12:51:02 -0700
commit15c3b292229ed8430e989b35769edb160e606396 (patch)
tree80727a9d90ce140530d60dacda34ebc11c01c68f /wifi/tests/src
parent20b0a9531ab3a069e836948822cf0ce5df312fbf (diff)
Remove WifiManager.getTxPacketCount
This is no longer called by CTS, and has no other clients. This also removes the dependency on WifiNl80211Manager.getTxPacketCounters(), so it will no longer need test coverage. Bug: 150978929 Test: atest FrameworksWifiApiTests Change-Id: Ia64a6b2f5009c021ed7dd66c24e854996995778a
Diffstat (limited to 'wifi/tests/src')
-rw-r--r--wifi/tests/src/android/net/wifi/WifiManagerTest.java27
1 files changed, 0 insertions, 27 deletions
diff --git a/wifi/tests/src/android/net/wifi/WifiManagerTest.java b/wifi/tests/src/android/net/wifi/WifiManagerTest.java
index 90d6241aaa55..1398bfeef031 100644
--- a/wifi/tests/src/android/net/wifi/WifiManagerTest.java
+++ b/wifi/tests/src/android/net/wifi/WifiManagerTest.java
@@ -30,7 +30,6 @@ import static android.net.wifi.WifiManager.OnWifiActivityEnergyInfoListener;
import static android.net.wifi.WifiManager.SAP_START_FAILURE_GENERAL;
import static android.net.wifi.WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS;
import static android.net.wifi.WifiManager.STATUS_SUGGESTION_CONNECTION_FAILURE_AUTHENTICATION;
-import static android.net.wifi.WifiManager.TxPacketCountListener;
import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLED;
import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLING;
import static android.net.wifi.WifiManager.WIFI_AP_STATE_FAILED;
@@ -2051,32 +2050,6 @@ public class WifiManagerTest {
}
/**
- * Test behavior of {@link WifiManager#getTxPacketCount(TxPacketCountListener)}
- */
- @Test
- public void testGetTxPacketCount() throws Exception {
- TxPacketCountListener externalListener =
- mock(TxPacketCountListener.class);
- mWifiManager.getTxPacketCount(externalListener);
-
- ArgumentCaptor<ITxPacketCountListener> binderListenerCaptor =
- ArgumentCaptor.forClass(ITxPacketCountListener.class);
- verify(mWifiService).getTxPacketCount(anyString(), any(Binder.class),
- binderListenerCaptor.capture(), anyInt());
- assertNotNull(binderListenerCaptor.getValue());
-
- // Trigger on success.
- binderListenerCaptor.getValue().onSuccess(6);
- mLooper.dispatchAll();
- verify(externalListener).onSuccess(6);
-
- // Trigger on failure.
- binderListenerCaptor.getValue().onFailure(BUSY);
- mLooper.dispatchAll();
- verify(externalListener).onFailure(BUSY);
- }
-
- /**
* Verify an IllegalArgumentException is thrown if callback is not provided.
*/
@Test(expected = IllegalArgumentException.class)