Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f3bfb19 authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN
Browse files

Add native coverage listener to integration tests

Add NativeCoverageHackInstrumentationListener to
NetworkStackCoverageTests.

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: 185074329
Test: atest NetworkStackCoverageTests
Change-Id: Ibfb4a85d2b503810ede56893a2306cade20d6dc1
parent b0b2e6aa
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -115,6 +115,7 @@ android_test {
    test_config: "AndroidTest_Coverage.xml",
    defaults: ["NetworkStackIntegrationTestsJniDefaults"],
    static_libs: [
        "modules-utils-native-coverage-listener",
        "NetworkStackTestsLib",
        "NetworkStackIntegrationTestsLib",
        "NetworkStackStaticLibTestsLib",
+1 −0
Original line number Diff line number Diff line
@@ -23,5 +23,6 @@
        <option name="package" value="com.android.server.networkstack.coverage" />
        <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
        <option name="hidden-api-checks" value="false"/>
        <option name="device-listeners" value="com.android.modules.utils.testing.NativeCoverageHackInstrumentationListener" />
    </test>
</configuration>