From b23e9128056d1ae77280da0700e31ea41d18ba83 Mon Sep 17 00:00:00 2001 From: markchien Date: Tue, 27 Apr 2021 17:23:44 +0800 Subject: [PATCH] Add native coverage listener to tethering coverage test This allows the coverage tests to manually trigger native coverage collection, as a workaround for collection not being triggered automatically by the coverage infrastructure. Bug: 185202279 Test: atest TetheringCoverageTests Change-Id: I619fc267cf1743dd2218e3dd42546b0d4e9da193 --- Tethering/tests/integration/Android.bp | 1 + Tethering/tests/integration/AndroidTest_Coverage.xml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Tethering/tests/integration/Android.bp b/Tethering/tests/integration/Android.bp index f63df2c8df..6999ed9a37 100644 --- a/Tethering/tests/integration/Android.bp +++ b/Tethering/tests/integration/Android.bp @@ -74,6 +74,7 @@ android_test { test_config: "AndroidTest_Coverage.xml", defaults: ["libnetworkstackutilsjni_deps"], static_libs: [ + "modules-utils-native-coverage-listener", "NetdStaticLibTestsLib", "NetworkStaticLibTestsLib", "NetworkStackTestsLib", diff --git a/Tethering/tests/integration/AndroidTest_Coverage.xml b/Tethering/tests/integration/AndroidTest_Coverage.xml index 3def2099e4..33c5b3d8ec 100644 --- a/Tethering/tests/integration/AndroidTest_Coverage.xml +++ b/Tethering/tests/integration/AndroidTest_Coverage.xml @@ -8,5 +8,6 @@