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 17package { 18 default_team: "trendy_team_aaos_framework", 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22cc_test { 23 name: "VehicleHalDefaultConfigTest", 24 vendor: true, 25 defaults: ["VehicleHalDefaults"], 26 srcs: ["*.cpp"], 27 static_libs: [ 28 "VehicleHalJsonConfigLoader", 29 "VehicleHalUtils", 30 "libgmock", 31 "libgtest", 32 ], 33 header_libs: [ 34 "IVehicleGeneratedHeaders-V3", 35 ], 36 shared_libs: [ 37 "libjsoncpp", 38 ], 39 data: [ 40 ":VehicleHalDefaultProperties_JSON", 41 ], 42 test_suites: ["device-tests"], 43} 44 45cc_test { 46 name: "VehicleHalDefaultConfigTestEnableTestProperties", 47 vendor: true, 48 defaults: ["VehicleHalDefaults"], 49 srcs: ["*.cpp"], 50 static_libs: [ 51 "VehicleHalJsonConfigLoaderEnableTestProperties", 52 "VehicleHalUtils", 53 "libgmock", 54 "libgtest", 55 ], 56 cflags: [ 57 "-DENABLE_VEHICLE_HAL_TEST_PROPERTIES", 58 ], 59 header_libs: [ 60 "IVehicleGeneratedHeaders-V3", 61 ], 62 shared_libs: [ 63 "libjsoncpp", 64 ], 65 data: [ 66 ":VehicleHalDefaultProperties_JSON", 67 ":VehicleHalTestProperties_JSON", 68 ":VehicleHalVendorClusterTestProperties_JSON", 69 ], 70 test_suites: ["device-tests"], 71} 72