Add methods to get metered override and persistence config in string
This patch adds methods to get metered override and persistence config in human readable string in EthernetConfiguration. This allows more informative logging. Bug: 397536853 Test: atest ConnectivityCoverageTests Flag: EXEMPT mainline Change-Id: Ia5a2f4b9f624bfc1c96b197533426925dacfa554
This commit is contained in:
parent
1939c90a98
commit
afc612e02e
1 changed files with 39 additions and 9 deletions
|
|
@ -249,7 +249,7 @@ public class EthernetConfigurationTest {
|
|||
+ "HTTP proxy: [test1] 8888\n"
|
||||
+ "Network capabilities: [ Transports: ETHERNET Capabilities: NOT_RESTRICTED"
|
||||
+ "&TRUSTED&NOT_VPN&NOT_BANDWIDTH_CONSTRAINED UnderlyingNetworks: Null]"
|
||||
+ ", Metered override: 1, Is persisted: 0";
|
||||
+ ", Metered override: FORCE_METERED, Is persisted: NOT_PERSISTED";
|
||||
} else {
|
||||
expect = "IP configurations: IP assignment: STATIC\n"
|
||||
+ "Static configuration: IP address 192.168.1.100/25 Gateway 192.168.1.1 "
|
||||
|
|
@ -257,8 +257,8 @@ public class EthernetConfigurationTest {
|
|||
+ "Proxy settings: PAC\n"
|
||||
+ "HTTP proxy: [test1] 8888\n"
|
||||
+ "Network capabilities: [ Transports: ETHERNET Capabilities: NOT_RESTRICTED"
|
||||
+ "&TRUSTED&NOT_VPN UnderlyingNetworks: Null], Metered override: 1, Is "
|
||||
+ "persisted: 0";
|
||||
+ "&TRUSTED&NOT_VPN UnderlyingNetworks: Null], Metered override: FORCE_METERED"
|
||||
+ ", Is persisted: NOT_PERSISTED";
|
||||
}
|
||||
assertEquals(config.toString(), expect);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue