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