Skip to content
Snippets Groups Projects
Commit fd9d0e88 authored by Motomu Utsumi's avatar Motomu Utsumi
Browse files

Make RedactedNetworkCapabilities compatible with upcoming change

Upcoming change will make subIds public and not redacted but this change
will make cts fail.
So this CL updates test to be compatible with current code and code with
planned changes.
After the current cts support window is over, subIds can be public.

Bug: 324357121
Test: TH, TH with aosp/2969321
Change-Id: I45d39f5bc3b1c4af26cc990ce29b45e9ad7d3c3c
parent c91b22be
No related branches found
No related tags found
No related merge requests found
......@@ -802,7 +802,9 @@ public class ConnectivityManagerTest {
assertNull(redactedNormal.getUids());
assertNull(redactedNormal.getSsid());
assertNull(redactedNormal.getUnderlyingNetworks());
assertEquals(0, redactedNormal.getSubscriptionIds().size());
// TODO: Make subIds public and update to verify the size is 2
final int subIdsSize = redactedNormal.getSubscriptionIds().size();
assertTrue(subIdsSize == 0 || subIdsSize == 2);
assertEquals(WifiInfo.DEFAULT_MAC_ADDRESS,
((WifiInfo) redactedNormal.getTransportInfo()).getBSSID());
assertEquals(rssi, ((WifiInfo) redactedNormal.getTransportInfo()).getRssi());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment