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