• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Build definitions for unit tests.
2
3cc_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}
13
14cc_test {
15    name: "DrmMetrics_test",
16    srcs: ["DrmMetrics_test.cpp"],
17    shared_libs: [
18      "android.hardware.drm@1.0",
19      "android.hardware.drm@1.1",
20      "libbinder",
21      "libhidlbase",
22      "liblog",
23      "libmediadrmmetrics_full",
24      "libmediametrics",
25      "libprotobuf-cpp-full",
26      "libutils",
27    ],
28    static_libs: ["libgmock"],
29    include_dirs: [
30      "frameworks/av/include/media",
31    ],
32    cflags: [
33        // Suppress unused parameter and no error options. These cause problems
34        // when using the map type in a proto definition.
35        "-Wno-unused-parameter",
36        "-Wno-error",
37    ]
38}
39
40cc_test {
41    name: "EventMetric_test",
42    srcs: ["EventMetric_test.cpp"],
43    shared_libs: [
44      "liblog",
45      "libmediadrm",
46      "libutils",
47    ],
48    include_dirs: ["frameworks/av/include/media"],
49    cflags: [
50      "-Werror",
51      "-Wall",
52    ],
53}
54