diff options
author | xshu <xshu@google.com> | 2019-04-08 20:35:52 -0700 |
---|---|---|
committer | xshu <xshu@google.com> | 2019-04-08 20:38:52 -0700 |
commit | 2da6fd19c297dac6a0bd93d5a93470bce758f106 (patch) | |
tree | 53fa9d658c55f00fd15fdb14aac525acbdfcf2af /tests | |
parent | 89bce6ef926ea42e0b77b9098e8bb41b6568c4da (diff) |
Remove unused setMacAddress in WificondControl
All setMacAddress operations are done through the Vendor Hal
Cleaning up unused code
Bug: 76176702
Test: unit tests
Test: flash and boot
Change-Id: Ia9facb4fa8535c5ac201046ab29b481134d6335c
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/WificondControlTest.java | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WificondControlTest.java b/tests/wifitests/src/com/android/server/wifi/WificondControlTest.java index 85fbc077e..ca48f38ae 100644 --- a/tests/wifitests/src/com/android/server/wifi/WificondControlTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WificondControlTest.java @@ -39,7 +39,6 @@ import static org.mockito.Mockito.verifyNoMoreInteractions; import static org.mockito.Mockito.when; import android.app.AlarmManager; -import android.net.MacAddress; import android.net.wifi.IApInterface; import android.net.wifi.IApInterfaceEventCallback; import android.net.wifi.IClientInterface; @@ -195,7 +194,6 @@ public class WificondControlTest { networkList[1].flags = 0; networkList[1].frequencies = TEST_FREQUENCIES_2; }}; - private static final MacAddress TEST_MAC_ADDRESS = MacAddress.fromString("ee:33:a2:94:10:92"); private static final int TEST_MCS_RATE = 5; private static final int TEST_SEND_MGMT_FRAME_ELAPSED_TIME_MS = 100; @@ -977,27 +975,6 @@ public class WificondControlTest { } /** - * Verifies setMacAddress() success. - */ - @Test - public void testSetMacAddressSuccess() throws Exception { - byte[] macByteArray = TEST_MAC_ADDRESS.toByteArray(); - assertTrue(mWificondControl.setMacAddress(TEST_INTERFACE_NAME, TEST_MAC_ADDRESS)); - verify(mClientInterface).setMacAddress(macByteArray); - } - - /** - * Verifies setMacAddress() can handle failure. - */ - @Test - public void testSetMacAddressFailDueToExceptionInInterface() throws Exception { - byte[] macByteArray = TEST_MAC_ADDRESS.toByteArray(); - doThrow(new RemoteException()).when(mClientInterface).setMacAddress(macByteArray); - assertFalse(mWificondControl.setMacAddress(TEST_INTERFACE_NAME, TEST_MAC_ADDRESS)); - verify(mClientInterface).setMacAddress(macByteArray); - } - - /** * sendMgmtFrame() should fail if a null callback is passed in. */ @Test |