1//
2// Copyright (C) 2020 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    // See: http://go/android-license-faq
19    // A large-scale-change added 'default_applicable_licenses' to import
20    // all of the 'license_kinds' from "frameworks_base_license"
21    // to get the below license kinds:
22    //   SPDX-license-identifier-Apache-2.0
23    default_applicable_licenses: ["frameworks_base_license"],
24}
25
26filegroup {
27    name: "WMShellFlickerServicePlatinumTests-src",
28    srcs: [
29        "src/**/platinum/*.kt",
30        "src/**/scenarios/*.kt",
31        "src/**/common/*.kt",
32    ],
33}
34
35java_library {
36    name: "wm-shell-flicker-platinum-tests",
37    platform_apis: true,
38    optimize: {
39        enabled: false,
40    },
41    srcs: [
42        ":WMShellFlickerServicePlatinumTests-src",
43    ],
44    static_libs: [
45        "wm-shell-flicker-utils",
46    ],
47}
48
49android_test {
50    name: "WMShellFlickerServiceTests",
51    defaults: ["WMShellFlickerTestsDefault"],
52    manifest: "AndroidManifest.xml",
53    package_name: "com.android.wm.shell.flicker.service",
54    instrumentation_target_package: "com.android.wm.shell.flicker.service",
55    test_config_template: "AndroidTestTemplate.xml",
56    srcs: ["src/**/*.kt"],
57    static_libs: ["WMShellFlickerTestsBase"],
58    data: ["trace_config/*"],
59}
60
61android_test {
62    name: "WMShellFlickerServicePlatinumTests",
63    defaults: ["WMShellFlickerTestsDefault"],
64    manifest: "AndroidManifest.xml",
65    package_name: "com.android.wm.shell.flicker.service",
66    instrumentation_target_package: "com.android.wm.shell.flicker.service",
67    test_config_template: "AndroidTestTemplate.xml",
68    test_suites: [
69        "device-tests",
70        "device-platinum-tests",
71    ],
72    srcs: [":WMShellFlickerServicePlatinumTests-src"],
73    static_libs: ["WMShellFlickerTestsBase"],
74    data: ["trace_config/*"],
75}
76