Mock IpConnectivityLog in IpClientTest
IpConnectivityLog which is used to send metrics need NETWORK_STACK
permission. Mock IpConnectivityLog to avoid sending metrics from
tests. Also remove platform cert from the network stack unit test
because it is not necessary for any signature permission anymore.
Bug: 156866746
Test: NetworkStackNextTests, NetworkStackCoverageTests, TetheringTests,
TetheringCoverageTests
Change-Id: Ibff052b30e000de3c5a08d7265c7642d67d9b0d0
Merged-In: Ibff052b30e000de3c5a08d7265c7642d67d9b0d0
diff --git a/tests/unit/Android.bp b/tests/unit/Android.bp
index 670b8e6..f6f4b86 100644
--- a/tests/unit/Android.bp
+++ b/tests/unit/Android.bp
@@ -16,7 +16,7 @@
java_defaults {
name: "NetworkStackTestsDefaults",
- certificate: "platform",
+ platform_apis: true,
srcs: ["src/**/*.java", "src/**/*.kt"],
resource_dirs: ["res"],
static_libs: [