Adam Stone | aaf87dd | 2018-01-08 11:55:06 -0800 | [diff] [blame] | 1 | // Build definitions for unit tests. |
| 2 | |
| 3 | cc_test { |
| 4 | name: "CounterMetric_test", |
| 5 | srcs: ["CounterMetric_test.cpp"], |
| 6 | shared_libs: ["libmediadrm"], |
| 7 | include_dirs: ["frameworks/av/include/media"], |
| 8 | cflags: [ |
| 9 | "-Werror", |
| 10 | "-Wall", |
| 11 | ], |
| 12 | } |
Adam Stone | f0e618d | 2018-01-17 19:20:41 -0800 | [diff] [blame] | 13 | |
| 14 | cc_test { |
Adam Stone | cea91ce | 2018-01-22 19:23:28 -0800 | [diff] [blame] | 15 | name: "DrmMetrics_test", |
| 16 | srcs: ["DrmMetrics_test.cpp"], |
| 17 | shared_libs: [ |
| 18 | "android.hardware.drm@1.0", |
Adam Stone | 568b3c4 | 2018-01-31 12:57:16 -0800 | [diff] [blame] | 19 | "libbinder", |
Adam Stone | cea91ce | 2018-01-22 19:23:28 -0800 | [diff] [blame] | 20 | "liblog", |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame^] | 21 | "libmediadrmmetrics_full", |
Adam Stone | cea91ce | 2018-01-22 19:23:28 -0800 | [diff] [blame] | 22 | "libmediametrics", |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame^] | 23 | "libprotobuf-cpp-full", |
Adam Stone | cea91ce | 2018-01-22 19:23:28 -0800 | [diff] [blame] | 24 | "libutils", |
| 25 | ], |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame^] | 26 | static_libs: ["libgmock"], |
| 27 | include_dirs: [ |
| 28 | "frameworks/av/include/media", |
Adam Stone | cea91ce | 2018-01-22 19:23:28 -0800 | [diff] [blame] | 29 | ], |
Adam Stone | fb679e3 | 2018-02-07 10:25:48 -0800 | [diff] [blame^] | 30 | cflags: [ |
| 31 | // Suppress unused parameter and no error options. These cause problems |
| 32 | // when using the map type in a proto definition. |
| 33 | "-Wno-unused-parameter", |
| 34 | "-Wno-error", |
| 35 | ] |
Adam Stone | cea91ce | 2018-01-22 19:23:28 -0800 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | cc_test { |
Adam Stone | f0e618d | 2018-01-17 19:20:41 -0800 | [diff] [blame] | 39 | name: "EventMetric_test", |
| 40 | srcs: ["EventMetric_test.cpp"], |
| 41 | shared_libs: [ |
| 42 | "liblog", |
| 43 | "libmediadrm", |
| 44 | "libutils", |
| 45 | ], |
| 46 | include_dirs: ["frameworks/av/include/media"], |
| 47 | cflags: [ |
| 48 | "-Werror", |
| 49 | "-Wall", |
| 50 | ], |
| 51 | } |