blob: 9606daacec78a338e57edf4b75d68681eb4fe15b [file] [log] [blame]
Yiwei Zhangfdd7e782020-01-31 15:59:34 -08001// Copyright 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
15cc_test {
16 name: "gpuservice_unittest",
17 test_suites: ["device-tests"],
18 sanitize: {
19 address: true,
20 },
21 srcs: [
Yiwei Zhang9feb4ae2020-04-30 10:48:35 -070022 "GpuMemTest.cpp",
Adithya Srinivasan134332b2020-12-12 03:31:50 +000023 "GpuMemTracerTest.cpp",
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080024 "GpuStatsTest.cpp",
25 ],
26 shared_libs: [
Yiwei Zhang9feb4ae2020-04-30 10:48:35 -070027 "libbase",
28 "libbpf",
29 "libbpf_android",
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080030 "libcutils",
31 "libgfxstats",
Yiwei Zhang9feb4ae2020-04-30 10:48:35 -070032 "libgpumem",
Adithya Srinivasan134332b2020-12-12 03:31:50 +000033 "libgpumemtracer",
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080034 "libgraphicsenv",
35 "liblog",
Adithya Srinivasan134332b2020-12-12 03:31:50 +000036 "libprotobuf-cpp-lite",
37 "libprotoutil",
Yiwei Zhangb59a1272020-02-04 14:58:01 -080038 "libstatslog",
39 "libstatspull",
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080040 "libutils",
41 ],
42 static_libs: [
43 "libgmock",
Adithya Srinivasan45583462020-12-21 23:36:42 +000044 "libperfetto_client_experimental",
Adithya Srinivasan134332b2020-12-12 03:31:50 +000045 "perfetto_trace_protos",
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080046 ],
Yiwei Zhang7f3f0b32020-10-23 14:52:44 -070047 require_root: true,
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080048}