1// Unit tests for libmediatranscoder.
2package {
3    // See: http://go/android-license-faq
4    // A large-scale-change added 'default_applicable_licenses' to import
5    // all of the 'license_kinds' from "frameworks_av_license"
6    // to get the below license kinds:
7    //   SPDX-license-identifier-Apache-2.0
8    default_applicable_licenses: ["frameworks_av_license"],
9}
10
11cc_defaults {
12    name: "testdefaults",
13
14    header_libs: [
15        "libbase_headers",
16        "libmedia_headers",
17    ],
18
19    static_libs: [
20        "libmediatranscoder",
21    ],
22    shared_libs: [
23        "libbase",
24        "libbinder_ndk",
25        "libcrypto",
26        "libcutils",
27        "libmediandk",
28        "libnativewindow",
29        "libutils",
30    ],
31
32    cflags: [
33        "-Werror",
34        "-Wall",
35    ],
36
37    sanitize: {
38        misc_undefined: [
39            "unsigned-integer-overflow",
40            "signed-integer-overflow",
41        ],
42        cfi: true,
43    },
44
45    data: [":test_assets"],
46    test_config_template: "AndroidTestTemplate.xml",
47    test_suites: ["device-tests", "TranscoderTests"],
48}
49
50// MediaSampleReaderNDK unit test
51cc_test {
52    name: "MediaSampleReaderNDKTests",
53    defaults: ["testdefaults"],
54    srcs: ["MediaSampleReaderNDKTests.cpp"],
55}
56
57// MediaSampleQueue unit test
58cc_test {
59    name: "MediaSampleQueueTests",
60    defaults: ["testdefaults"],
61    srcs: ["MediaSampleQueueTests.cpp"],
62}
63
64// MediaTrackTranscoder unit test
65cc_test {
66    name: "MediaTrackTranscoderTests",
67    defaults: ["testdefaults"],
68    srcs: ["MediaTrackTranscoderTests.cpp"],
69}
70
71// VideoTrackTranscoder unit test
72cc_test {
73    name: "VideoTrackTranscoderTests",
74    defaults: ["testdefaults"],
75    srcs: ["VideoTrackTranscoderTests.cpp"],
76}
77
78// PassthroughTrackTranscoder unit test
79cc_test {
80    name: "PassthroughTrackTranscoderTests",
81    defaults: ["testdefaults"],
82    srcs: ["PassthroughTrackTranscoderTests.cpp"],
83}
84
85// MediaSampleWriter unit test
86cc_test {
87    name: "MediaSampleWriterTests",
88    defaults: ["testdefaults"],
89    srcs: ["MediaSampleWriterTests.cpp"],
90}
91
92// HDR Transcode unit test
93cc_test {
94    name: "HdrTranscodeTests",
95    defaults: ["testdefaults"],
96    srcs: ["HdrTranscodeTests.cpp"],
97}
98
99// MediaTranscoder unit test
100cc_test {
101    name: "MediaTranscoderTests",
102    defaults: ["testdefaults"],
103    srcs: ["MediaTranscoderTests.cpp"],
104}
105