blob: 9e0115e63573d01459e7ab9a49263d8c1aa378fe [file] [log] [blame]
Adam Stoneaaf87dd2018-01-08 11:55:06 -08001// 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}
Adam Stonef0e618d2018-01-17 19:20:41 -080013
14cc_test {
Adam Stonecea91ce2018-01-22 19:23:28 -080015 name: "DrmMetrics_test",
16 srcs: ["DrmMetrics_test.cpp"],
17 shared_libs: [
18 "android.hardware.drm@1.0",
Adam Stone28f27c32018-02-05 15:07:48 -080019 "android.hardware.drm@1.1",
Jeff Tinkerc8baaba2018-10-23 11:32:36 -070020 "android.hardware.drm@1.2",
Adam Stone568b3c42018-01-31 12:57:16 -080021 "libbinder",
Adam Stone28f27c32018-02-05 15:07:48 -080022 "libhidlbase",
Adam Stonecea91ce2018-01-22 19:23:28 -080023 "liblog",
Adam Stonefb679e32018-02-07 10:25:48 -080024 "libmediadrmmetrics_full",
Adam Stonecea91ce2018-01-22 19:23:28 -080025 "libmediametrics",
Adam Stonefb679e32018-02-07 10:25:48 -080026 "libprotobuf-cpp-full",
Adam Stonecea91ce2018-01-22 19:23:28 -080027 "libutils",
28 ],
Adam Stonefb679e32018-02-07 10:25:48 -080029 static_libs: ["libgmock"],
30 include_dirs: [
31 "frameworks/av/include/media",
Adam Stonecea91ce2018-01-22 19:23:28 -080032 ],
Adam Stonefb679e32018-02-07 10:25:48 -080033 cflags: [
34 // Suppress unused parameter and no error options. These cause problems
35 // when using the map type in a proto definition.
36 "-Wno-unused-parameter",
Adam Stonefb679e32018-02-07 10:25:48 -080037 ]
Adam Stonecea91ce2018-01-22 19:23:28 -080038}
39
40cc_test {
Adam Stonef0e618d2018-01-17 19:20:41 -080041 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}