summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorXiao Ma <xiaom@google.com>2020-04-07 12:15:28 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-04-07 12:15:28 +0000
commit21f44c83048dc643d699fe821ccc17a4e0509eb0 (patch)
tree2e85f9f26bd374e27a94bde7a7733962d0f8e11e /tests
parentac8bc7c04daba9d5af676a13440e67f362d25a75 (diff)
parentd7780038bd3d67d5344fb1fd6569a55cba6caac2 (diff)
Merge "Update the bssid, L2Key and GroupHint information upon L2 roaming completes." into rvc-dev
Diffstat (limited to 'tests')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java b/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java
index 448cee1cc..cd0b0f1c2 100644
--- a/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java
@@ -65,6 +65,7 @@ import android.hardware.wifi.supplicant.V1_0.ISupplicantStaIfaceCallback;
import android.net.ConnectivityManager;
import android.net.DhcpResultsParcelable;
import android.net.InetAddresses;
+import android.net.Layer2InformationParcelable;
import android.net.Layer2PacketParcelable;
import android.net.LinkAddress;
import android.net.LinkProperties;
@@ -3224,7 +3225,12 @@ public class ClientModeImplTest extends WifiBaseTest {
connect();
mLooper.dispatchAll();
verify(mWifiScoreCard).noteIpConfiguration(any());
- verify(mIpClient).setL2KeyAndGroupHint(eq("Wad"), eq("Gab"));
+ ArgumentCaptor<Layer2InformationParcelable> captor =
+ ArgumentCaptor.forClass(Layer2InformationParcelable.class);
+ verify(mIpClient).updateLayer2Information(captor.capture());
+ final Layer2InformationParcelable info = captor.getValue();
+ assertEquals(info.l2Key, "Wad");
+ assertEquals(info.groupHint, "Gab");
}
/**