1// 2// Copyright (C) 2018 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17package { 18 default_team: "trendy_team_windowing_tools", 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22filegroup { 23 name: "FlickerLibTest-Utils-src", 24 srcs: [ 25 "src/**/utils/*.kt", 26 "src/**/rules/*.kt", 27 ], 28} 29 30java_test { 31 name: "FlickerLibTest-Utils", 32 platform_apis: true, 33 kotlincflags: [ 34 "-Xmulti-platform", 35 "-opt-in=kotlin.ExperimentalMultiplatform", 36 ], 37 optimize: { 38 enabled: false, 39 }, 40 srcs: [":FlickerLibTest-Utils-src"], 41 static_libs: [ 42 "flickerlib-parsers", 43 "truth", 44 "mockito-target-extended-minus-junit4", 45 ], 46} 47 48android_test { 49 name: "FlickerLibUtilsTest", 50 srcs: ["src/**/*.kt"], 51 exclude_srcs: [":FlickerLibTest-Utils-src"], 52 manifest: "AndroidManifest.xml", 53 test_config: "AndroidTest.xml", 54 test_suites: ["device-tests"], 55 certificate: "platform", 56 platform_apis: true, 57 optimize: { 58 enabled: false, 59 }, 60 static_libs: [ 61 "flickerlib-parsers", 62 "flickerlib-apphelpers", 63 "flickerlib-trace_processor_shell", 64 "FlickerLibTest-Utils", 65 "androidx.test.runner", 66 "truth", 67 "mockito-target-extended-minus-junit4", 68 "collector-device-lib", 69 "wm-flicker-common-app-helpers", 70 "//frameworks/base/packages/SystemUI/aconfig:com_android_systemui_flags_lib", 71 ], 72 data: [ 73 "trace_config/*", 74 ":FlickerTestApp", 75 ], 76} 77