Add test for the CompatChangeRule using dummy apis, gated using both available APIs (Compatibility and IPlatformCompat). There's no need to actually have these compat changes defined, since CompatChangeRule will inject them regardless. Bug: 140367850 Test: atest Gating Change-Id: I3d41925fc579d5212100d9c081cd290f18efa43b
18 lines
402 B
Plaintext
18 lines
402 B
Plaintext
android_test {
|
|
name: "Gating",
|
|
// Only compile source java files in this apk.
|
|
srcs: ["src/**/*.java"],
|
|
certificate: "platform",
|
|
libs: [
|
|
"android.test.runner",
|
|
"android.test.base",
|
|
],
|
|
static_libs: [
|
|
"junit",
|
|
"android-support-test",
|
|
"mockito-target-minus-junit4",
|
|
"truth-prebuilt",
|
|
"platform_compat-test-rules"
|
|
],
|
|
}
|