• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17// Targets for the Audio Test Harness Client Libraries.
18// Clients can be used host or device side to communicate with an Audio
19// Test Harness Server.
20// LIBRARIES ==============================================================
21
22package {
23    default_applicable_licenses: ["Android-Apache-2.0"],
24}
25
26java_library {
27    name: "audiotestharness-client-clientlib",
28    host_supported: true,
29    srcs: [
30        "src/main/java/com/android/media/audiotestharness/client/*.java",
31    ],
32    sdk_version: "current",
33}
34
35java_library {
36    name: "audiotestharness-client-corelib",
37    host_supported: true,
38    srcs: [
39        "src/main/java/com/android/media/audiotestharness/client/core/*.java",
40    ],
41    static_libs: [
42        "audiotestharness-commonlib-lite",
43        "audiotestharness-commonprotolib-lite",
44    ],
45    sdk_version: "current",
46}
47
48java_library {
49    name: "audiotestharness-client-grpclib",
50    host_supported: true,
51    srcs: [
52        "src/main/java/com/android/media/audiotestharness/client/grpc/*.java",
53    ],
54    static_libs: [
55        "audiotestharness-client-corelib",
56        "grpc-java-okhttp-client-lite",
57        "audiotestharness-servicegrpclib-lite",
58        "audiotestharness-commonlib-lite",
59        "guava",
60    ],
61    sdk_version: "current",
62}
63
64// TESTS ==============================================================
65
66java_test {
67    name: "audiotestharness-client-grpclib-tests",
68    test_suites: ["general-tests"],
69    host_supported: true,
70    srcs: [
71        "src/test/java/com/android/media/audiotestharness/client/grpc/*.java",
72    ],
73    static_libs: [
74        "audiotestharness-client-grpclib",
75        "grpc-java-core-inprocess",
76        "grpc-java-testing",
77        "junit",
78        "junit-params",
79        "mockito",
80        "objenesis",
81    ],
82    sdk_version: "current",
83    test_options: {
84        unit_test: true,
85    },
86}
87