summaryrefslogtreecommitdiff
path: root/apex/testing.go
AgeCommit message (Collapse)Author
2022-04-04Surface Java APIs Used By APK-only Modules. Matt Banda
Previously we were only generating used-by API-coverage for APEX modules. This change adds support for APK-only modules such as NetworkStack and DocumentsUI. Bug: b/216313756 Forrest Run: https://android-build.googleplex.com/builds/abtd/run/L10800000953846781 Test: TARGET_BUILD_VARIANT=userdebug PRODUCT=mainline_modules_x86 ./vendor/google/build/build_unbundled_coverage_mainline_module.sh -j16 Change-Id: Id17e4a55c2a52e9903632a654e778f8d54982dfc
2021-11-12Java APIs used by Mainline modules. sophiez
Add scripts to generate java APIs used by Mainline modules. This is aosp/1879177 with fixed build error that caused by dexdeps analyzing resource only APKs which doesn't contains any .dex files. Now skip the error generates in that case in gen_java_usedby_apex.sh Forrest run:https://android-build.googleplex.com/builds/abtd/run/L38900000951898586 Test: TARGET_BUILD_APPS=com.android.adbd m dist apps_only Change-Id: Id539cbe1b7306ace69c047f95ffc02265a467511
2021-04-21bootclasspath_fragment: Add contents to snapshot Paul Duffin
Bug: 177892522 Test: m nothing Change-Id: I54fe0537b758a0e3dacd34b139ef3eb21b8841fd
2021-03-25Disallow non-existent paths in sdk package Paul Duffin
Test behavior was changed a while ago so that tests by default ignore non-existent source paths (unless they explicitly check for/rely on them). Prior to that CheckSnapshot() could detect when files were missing from the snapshot but it no longer can. This change disallows non-existent source files in all the sdk tests which means that they are disallowed when processing the snapshots as they use the same preparers as were used to process the sources. This caused a test failure which has been temporarily ignored and has a TODO and bug associated with it. Bug: 183184375 Test: m nothing Change-Id: I969d8515d20ef5ae515f2b5f93d8ed4e4f8ede75
2021-03-11Add apexFixtureFactory to apex package Paul Duffin
Unlike the similar changes in other packages this change separates the addition of the fixture factory and the conversion of the test... methods to use them as there are a few tests that need converting to use test fixtures first. Bug: 181070625 Test: m nothing Change-Id: Ic76523ba89fc1967631aeb682935935b5af116df