This change adds the file descriptor based ResourceProvider APIs to the provider formats to test. It also refactors the testing API so that all test APKs, ARSCs, and splits have the same resources rather than different formats having different resources. Bug: 142716192 Test: atest FrameworksResourceLoaderTests Change-Id: I37da9f6c815ea67629b3115b0e125ebc79cd7c8c
32 lines
1.5 KiB
XML
32 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright (C) 2019 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 module config for ResourceLoaderTests">
|
|
<option name="test-tag" value="ResourceLoaderTests" />
|
|
|
|
<target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup">
|
|
<option name="cleanup-apks" value="true" />
|
|
<!-- The following value cannot be multi-line as whitespace is parsed by the installer -->
|
|
<option name="split-apk-file-names"
|
|
value="FrameworksResourceLoaderTests.apk,FrameworksResourceLoaderTests_ProviderOne_Split.apk,FrameworksResourceLoaderTests_ProviderTwo_Split.apk,FrameworksResourceLoaderTests_ProviderThree_Split.apk,FrameworksResourceLoaderTests_ProviderFour_Split.apk" />
|
|
</target_preparer>
|
|
|
|
<test class="com.android.tradefed.testtype.AndroidJUnitTest">
|
|
<option name="package" value="android.content.res.loader.test" />
|
|
</test>
|
|
</configuration>
|