Merge "Move sensitive field parceling bool to constructor" into rvc-dev

This commit is contained in:
Remi NGUYEN VAN
2020-03-19 01:32:48 +00:00
committed by Android (Google) Code Review
3 changed files with 16 additions and 19 deletions

View File

@@ -1028,7 +1028,8 @@ public class LinkPropertiesTest {
source.setCaptivePortalApiUrl(CAPPORT_API_URL);
source.setCaptivePortalData((CaptivePortalData) getCaptivePortalData());
source.setDhcpServerAddress((Inet4Address) GATEWAY1);
assertParcelSane(source.makeSensitiveFieldsParcelingCopy(), 18 /* fieldCount */);
assertParcelSane(new LinkProperties(source, true /* parcelSensitiveFields */),
18 /* fieldCount */);
// Verify that without using a sensitiveFieldsParcelingCopy, sensitive fields are cleared.
final LinkProperties sanitized = new LinkProperties(source);