• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2023 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
19cc_test {
20    name: "GRPCVehicleHardwareUnitTest",
21    vendor: true,
22    srcs: ["GRPCVehicleHardwareUnitTest.cpp"],
23    whole_static_libs: [
24        "android.hardware.automotive.vehicle@default-grpc-hardware-lib",
25    ],
26    header_libs: [
27        "IVehicleHardware",
28    ],
29    static_libs: [
30        "libgtest",
31        "libgmock",
32    ],
33    shared_libs: [
34        "libgrpc++",
35        "libprotobuf-cpp-full",
36    ],
37    // libgrpc++.so is installed as root, require root to access it.
38    require_root: true,
39    defaults: [
40        "VehicleHalDefaults",
41    ],
42    cflags: [
43        "-Wno-unused-parameter",
44    ],
45    test_suites: ["device-tests"],
46}
47
48cc_test {
49    name: "GRPCVehicleProxyServerUnitTest",
50    vendor: true,
51    srcs: ["GRPCVehicleProxyServerUnitTest.cpp"],
52    header_libs: [
53        "IVehicleHardware",
54    ],
55    static_libs: [
56        "android.hardware.automotive.vehicle@default-grpc-hardware-lib",
57        "android.hardware.automotive.vehicle@default-grpc-server-lib",
58        "libgtest",
59        "libgmock",
60    ],
61    shared_libs: [
62        "libgrpc++",
63        "libprotobuf-cpp-full",
64    ],
65    // libgrpc++.so is installed as root, require root to access it.
66    require_root: true,
67    defaults: [
68        "VehicleHalDefaults",
69    ],
70    cflags: [
71        "-Wno-unused-parameter",
72    ],
73    test_suites: ["device-tests"],
74}
75