1// Copyright (C) 2010 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_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19java_library_host {
20    name: "tradefed-test-protos",
21    visibility: ["//visibility:private"],
22    srcs: ["res/**/*.proto"],
23    // b/267831518: Pin tradefed and dependencies to Java 11.
24    java_version: "11",
25    libs: [
26        "libprotobuf-java-full",
27    ],
28    proto: {
29        include_dirs: ["external/protobuf/src"],
30        type: "full",
31    },
32}
33
34tradefed_java_library_host {
35    name: "tradefed-tests",
36    defaults: ["tradefed_errorprone_defaults"],
37
38    // Only compile source java files in this lib.
39    srcs: ["com/**/*.java"],
40
41    // b/267831518: Pin tradefed and dependencies to Java 11.
42    java_version: "11",
43
44    java_resource_dirs: ["res"],
45    java_resources: [
46        ":SimpleFailingTest",
47        ":OnePassOneFailParamTest",
48        ":OnePassingOneFailingTest",
49        ":SimplePassingTest",
50        ":PassIgnoreAssumeTest",
51        ":MultipleClassesTest",
52        ":IncludeFilterTest",
53    ],
54
55    javacflags: [
56        "-g",
57        "-Xlint",
58    ],
59
60    static_libs: [
61        "objenesis",
62        "mockito",
63        "tradefed-test-protos",
64    ],
65    libs: [
66        "tradefed",
67        "tradefed-avd-util-tests",
68        "libprotobuf-java-full",
69        "truth",
70        "loganalysis",
71        "perfetto_trace-full",
72    ],
73
74    manifest: "MANIFEST.mf",
75}
76