1// Copyright (C) 2018 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_team: "trendy_team_app_compat",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20java_library_host {
21    name: "csuite-harness",
22    srcs: [
23        "src/main/java/**/*.java",
24    ],
25    java_resource_dirs: [
26        "src/main/resources",
27    ],
28    libs: [
29        "tradefed",
30    ],
31    static_libs: [
32        "compatibility-tradefed",
33        "platformprotos",
34        "libprotobuf-java-lite",
35    ],
36}
37
38java_test_host {
39    name: "csuite-harness-tests",
40    srcs: [
41        "src/test/java/**/*.java",
42    ],
43    static_libs: [
44        "tradefed",
45        "csuite-harness",
46        "compatibility-tradefed",
47        "guava-testlib",
48        "jimfs",
49        "mockito-host",
50        "objenesis",
51        "testng",
52    ],
53    test_options: {
54        unit_test: true,
55    },
56    data: [
57        ":app-screens",
58    ],
59}
60
61filegroup {
62    name: "app-screens",
63    srcs: [
64        "src/test/resources/BlankScreenWithFullScreen.png",
65        "src/test/resources/BlankScreenWithNavBars.png",
66        "src/test/resources/BlankScreenWithWhiteScreen.png",
67        "src/test/resources/NotBlankScreen.png",
68    ],
69    path: "src/test/resources/",
70}
71