1// Copyright (C) 2020 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_library_headers {
20    name: "graph_test_headers",
21    export_include_dirs: ["./includes"],
22}
23
24cc_test {
25    name: "computepipe_prebuilt_graph_test",
26    test_suites: ["device-tests"],
27    srcs: [
28        "EnumConversionTest.cpp",
29        "LocalPrebuiltGraphTest.cpp",
30    ],
31    static_libs: [
32        "computepipe_prebuilt_graph",
33        "computepipe_runner_component",
34        "libgtest",
35        "libgmock",
36        "libcomputepipeprotos",
37    ],
38    shared_libs: [
39        "libstubgraphimpl",
40        "libprotobuf-cpp-lite",
41        "liblog",
42        "libdl",
43        "libbase",
44    ],
45    header_libs: [
46        "computepipe_runner_includes",
47        "graph_test_headers",
48    ],
49    include_dirs: [
50        "packages/services/Car/cpp/computepipe",
51        "packages/services/Car/cpp/computepipe/runner/graph",
52    ],
53}
54
55cc_test {
56    name: "computepipe_grpc_graph_test",
57    cflags: [
58        "-Wall",
59        "-Werror",
60        "-Wextra",
61        "-Wno-unused-parameter",
62    ],
63    test_suites: ["device-tests"],
64    srcs: [
65        "GrpcGraphTest.cpp",
66    ],
67    static_libs: [
68        "computepipe_grpc_graph_proto",
69        "computepipe_runner_component",
70        "libgtest",
71        "libgmock",
72    ],
73    shared_libs: [
74        "computepipe_grpc_graph",
75        "libbase",
76        "libcomputepipeprotos",
77        "libgrpc++",
78        "libdl",
79        "liblog",
80        "libprotobuf-cpp-full",
81    ],
82    header_libs: [
83        "computepipe_runner_includes",
84        "graph_test_headers",
85    ],
86    include_dirs: [
87        "packages/services/Car/cpp/computepipe",
88        "packages/services/Car/cpp/computepipe/runner/graph",
89    ],
90}
91