• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2021 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
17// Contains the Trade Federation extensions for the Audio Test Harness system.
18//
19// Per b/178739059 while the tradefed_java_library_host should be able to
20// automatically copy the JAR to the out/host/<target>/tradefed directory
21// it is currently non-functional. So, we instead use a regular
22// java_library_host and manually copy the JAR with the Android.mk file.
23
24package {
25    default_applicable_licenses: ["Android-Apache-2.0"],
26}
27
28java_library_host {
29    name: "audiotestharness-tradefed-lib",
30
31    srcs: [
32        "src/main/java/com/android/media/audiotestharness/tradefed/*.java",
33    ],
34
35    libs: [
36        "tradefed",
37    ],
38
39    static_libs: [
40        "audiotestharness-serverlib",
41        "audiotestharness-configlib",
42        "audiotestharness-commonprotolib-full",
43        "guava",
44    ],
45}
46
47java_test_host {
48    name: "audiotestharness-tradefed-lib-tests",
49    srcs: [
50        "src/test/java/com/android/media/audiotestharness/tradefed/*.java",
51    ],
52    static_libs: [
53        "junit",
54        "audiotestharness-tradefed-lib",
55        "audiotestharness-serverlib",
56        "tradefed",
57        "mockito",
58        "objenesis",
59        "guava",
60    ],
61    test_options: {
62        unit_test: false,
63    },
64}
65