Yiwei Zhang | fdd7e78 | 2020-01-31 15:59:34 -0800 | [diff] [blame] | 1 | // 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 | |
| 15 | cc_test { |
| 16 | name: "gpuservice_unittest", |
| 17 | test_suites: ["device-tests"], |
| 18 | sanitize: { |
| 19 | address: true, |
| 20 | }, |
| 21 | srcs: [ |
Yiwei Zhang | 9feb4ae | 2020-04-30 10:48:35 -0700 | [diff] [blame] | 22 | "GpuMemTest.cpp", |
Adithya Srinivasan | 134332b | 2020-12-12 03:31:50 +0000 | [diff] [blame^] | 23 | "GpuMemTracerTest.cpp", |
Yiwei Zhang | fdd7e78 | 2020-01-31 15:59:34 -0800 | [diff] [blame] | 24 | "GpuStatsTest.cpp", |
| 25 | ], |
| 26 | shared_libs: [ |
Yiwei Zhang | 9feb4ae | 2020-04-30 10:48:35 -0700 | [diff] [blame] | 27 | "libbase", |
| 28 | "libbpf", |
| 29 | "libbpf_android", |
Yiwei Zhang | fdd7e78 | 2020-01-31 15:59:34 -0800 | [diff] [blame] | 30 | "libcutils", |
| 31 | "libgfxstats", |
Yiwei Zhang | 9feb4ae | 2020-04-30 10:48:35 -0700 | [diff] [blame] | 32 | "libgpumem", |
Adithya Srinivasan | 134332b | 2020-12-12 03:31:50 +0000 | [diff] [blame^] | 33 | "libgpumemtracer", |
Yiwei Zhang | fdd7e78 | 2020-01-31 15:59:34 -0800 | [diff] [blame] | 34 | "libgraphicsenv", |
| 35 | "liblog", |
Adithya Srinivasan | 134332b | 2020-12-12 03:31:50 +0000 | [diff] [blame^] | 36 | "libprotobuf-cpp-lite", |
| 37 | "libprotoutil", |
Yiwei Zhang | b59a127 | 2020-02-04 14:58:01 -0800 | [diff] [blame] | 38 | "libstatslog", |
| 39 | "libstatspull", |
Yiwei Zhang | fdd7e78 | 2020-01-31 15:59:34 -0800 | [diff] [blame] | 40 | "libutils", |
| 41 | ], |
| 42 | static_libs: [ |
| 43 | "libgmock", |
Adithya Srinivasan | 134332b | 2020-12-12 03:31:50 +0000 | [diff] [blame^] | 44 | "perfetto_trace_protos", |
Yiwei Zhang | fdd7e78 | 2020-01-31 15:59:34 -0800 | [diff] [blame] | 45 | ], |
Yiwei Zhang | 7f3f0b3 | 2020-10-23 14:52:44 -0700 | [diff] [blame] | 46 | require_root: true, |
Yiwei Zhang | fdd7e78 | 2020-01-31 15:59:34 -0800 | [diff] [blame] | 47 | } |