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