You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.7 KiB
74 lines
1.7 KiB
// Build definitions for unit tests.
|
|
|
|
package {
|
|
// See: http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// all of the 'license_kinds' from "frameworks_av_license"
|
|
// to get the below license kinds:
|
|
// SPDX-license-identifier-Apache-2.0
|
|
default_applicable_licenses: ["frameworks_av_license"],
|
|
}
|
|
|
|
cc_test {
|
|
name: "CounterMetric_test",
|
|
srcs: ["CounterMetric_test.cpp"],
|
|
header_libs: [
|
|
"libmedia_headers",
|
|
"libmediametrics_headers",
|
|
],
|
|
shared_libs: ["libmediadrm"],
|
|
cflags: [
|
|
"-Werror",
|
|
"-Wall",
|
|
],
|
|
}
|
|
|
|
cc_test {
|
|
name: "DrmMetrics_test",
|
|
srcs: ["DrmMetrics_test.cpp"],
|
|
header_libs: [
|
|
"libmedia_headers"
|
|
],
|
|
shared_libs: [
|
|
"android.hardware.drm@1.0",
|
|
"android.hardware.drm@1.1",
|
|
"android.hardware.drm@1.2",
|
|
"libbinder",
|
|
"libhidlbase",
|
|
"liblog",
|
|
"libmediadrm",
|
|
"libmediadrmmetrics_consumer",
|
|
"libmediadrmmetrics_full",
|
|
"libmediametrics",
|
|
"libprotobuf-cpp-full",
|
|
"libutils",
|
|
],
|
|
static_libs: ["libgmock"],
|
|
include_dirs: [
|
|
"frameworks/av/drm/libmediadrm/include",
|
|
],
|
|
cflags: [
|
|
// Suppress unused parameter and no error options. These cause problems
|
|
// when using the map type in a proto definition.
|
|
"-Wno-unused-parameter",
|
|
]
|
|
}
|
|
|
|
cc_test {
|
|
name: "EventMetric_test",
|
|
srcs: ["EventMetric_test.cpp"],
|
|
header_libs: [
|
|
"libmedia_headers",
|
|
"libmediametrics_headers",
|
|
],
|
|
shared_libs: [
|
|
"liblog",
|
|
"libmediadrm",
|
|
"libutils",
|
|
],
|
|
cflags: [
|
|
"-Werror",
|
|
"-Wall",
|
|
],
|
|
}
|