blob: fec4628106a5ec8454dc47a445c54798469b79de [file] [log] [blame]
//
// 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.
//
android_test {
name: "FrameworksResourceLoaderTests",
srcs: [
"src/**/*.kt"
],
libs: [
"android.test.runner",
"android.test.base",
],
static_libs: [
"androidx.test.espresso.core",
"androidx.test.ext.junit",
"androidx.test.runner",
"androidx.test.rules",
"mockito-target-minus-junit4",
"truth-prebuilt",
],
resource_zips: [ ":FrameworksResourceLoaderTestsAssets" ],
platform_apis: true,
test_suites: ["device-tests"],
aaptflags: [
"--no-compress",
],
data: [
":FrameworksResourceLoaderTestsSplitOne",
":FrameworksResourceLoaderTestsSplitTwo",
":FrameworksResourceLoaderTestsSplitThree",
":FrameworksResourceLoaderTestsSplitFour",
],
java_resources: [ "NonAsset.txt" ]
}
filegroup {
name: "FrameworksResourceLoaderTestsResources",
srcs: ["resources"],
}
genrule {
name: "FrameworksResourceLoaderTestsAssets",
srcs: [
":framework-res",
":FrameworksResourceLoaderTestsResources",
],
tools: [ ":aapt2", ":soong_zip" ],
tool_files: [ "resources/compileAndLink.sh" ],
cmd: "$(location resources/compileAndLink.sh) $(location :aapt2) $(location :soong_zip) $(genDir) $(in) $(in)",
out: [ "out.zip" ]
}