• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Build definitions for unit tests.
2
3package {
4    // See: http://go/android-license-faq
5    // A large-scale-change added 'default_applicable_licenses' to import
6    // all of the 'license_kinds' from "frameworks_av_license"
7    // to get the below license kinds:
8    //   SPDX-license-identifier-Apache-2.0
9    default_applicable_licenses: ["frameworks_av_license"],
10}
11
12cc_test {
13    name: "CounterMetric_test",
14    srcs: ["CounterMetric_test.cpp"],
15    header_libs: [
16        "libmedia_headers",
17        "libmediametrics_headers",
18    ],
19    shared_libs: ["libmediadrm"],
20    cflags: [
21      "-Werror",
22      "-Wall",
23    ],
24}
25
26cc_test {
27    name: "DrmMetrics_test",
28    srcs: ["DrmMetrics_test.cpp"],
29    header_libs: [
30        "libmedia_headers"
31    ],
32    shared_libs: [
33      "android.hardware.drm@1.0",
34      "android.hardware.drm@1.1",
35      "android.hardware.drm@1.2",
36      "libbinder",
37      "libhidlbase",
38      "liblog",
39      "libmediadrm",
40      "libmediadrmmetrics_consumer",
41      "libmediadrmmetrics_full",
42      "libmediametrics",
43      "libprotobuf-cpp-full",
44      "libutils",
45    ],
46    static_libs: ["libgmock"],
47    include_dirs: [
48      "frameworks/av/drm/libmediadrm/include",
49    ],
50    cflags: [
51        // Suppress unused parameter and no error options. These cause problems
52        // when using the map type in a proto definition.
53        "-Wno-unused-parameter",
54    ]
55}
56
57cc_test {
58    name: "EventMetric_test",
59    srcs: ["EventMetric_test.cpp"],
60    header_libs: [
61        "libmedia_headers",
62        "libmediametrics_headers",
63    ],
64    shared_libs: [
65      "liblog",
66      "libmediadrm",
67      "libutils",
68    ],
69    cflags: [
70      "-Werror",
71      "-Wall",
72    ],
73}
74