Files
frameworks_base/tests/Gating/AndroidTest.xml
Andrei Onea 12765612f3 Example for disabling changes at test time
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
2019-10-11 14:07:53 +01:00

31 lines
1.5 KiB
XML

<!-- Copyright (C) 2018 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<configuration description="Test compatibility change gating.">
<target_preparer class="com.android.tradefed.targetprep.TestFilePushSetup"/>
<target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup">
<option name="test-file-name" value="Gating.apk"/>
</target_preparer>
<target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"/>
<target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"/>
<option name="test-suite-tag" value="apct"/>
<option name="test-tag" value="Gating"/>
<test class="com.android.tradefed.testtype.AndroidJUnitTest">
<option name="package" value="com.android.tests.gating"/>
<option name="runner" value="android.support.test.runner.AndroidJUnitRunner"/>
<option name="hidden-api-checks" value="false"/>
</test>
</configuration>