summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2020-04-21 01:29:32 +0000
committerRemi NGUYEN VAN <reminv@google.com>2020-04-21 02:03:54 +0000
commitaf558386e7132f9cc5ae7e8f3e74a5db8bc928e2 (patch)
treeb7db051a429120b500b667bc542d1d0b4086349c /src
parent43cbcaea68608c3a3af129ad4ec972de8aafd5c4 (diff)
Fix NetworkStackCoverageTests on Q
Fix regressions in the coverage tests when run on a Q device: - Do not attempt to verify CaptivePortalData in IpClientIntegrationTest on Q, since it cannot be set considering that the class does not exist on Q. - Replace HexEncoding.encodeToString(byte[], boolean) with HexEncoding.encodeToString(byte[]) in StructNdOptPref64Test. - Skip ModuleNetworkStackClientTest using DevSdkIgnoreRule instead of assumeTrue() in setUp, as the latter would still run tearDown(). - Ignore NetworkStatsUtilsTest: this is a unit test for a test utility, and that utility uses R APIs (so can only be used in R-only tests). - Lazy-initialize LinkProperties with capport attributes in NetworkStackNotifierTest as initializing at class creation would crash. - Manually create a INetworkMonitorCallbacks mock in NetworkMonitorTest, create capport LinkProperties on demand, and skip capport tests that cannot run on Q. Test: atest NetworkStackCoverageTests Bug: 152723363 Merged-In: I3ae98e24a542c6313e06bcc787ad5a0a2a1db723 Change-Id: I3ae98e24a542c6313e06bcc787ad5a0a2a1db723
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions