• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Build the unit tests for libmediatranscoding.
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
11filegroup {
12    name: "test_assets",
13    path: "assets",
14    srcs: ["assets/**/*"],
15}
16
17cc_defaults {
18    name: "libmediatranscoding_test_defaults",
19
20    header_libs: [
21        "libbase_headers",
22        "libmedia_headers",
23    ],
24
25    shared_libs: [
26        "libandroid",
27        "libbinder_ndk",
28        "libcutils",
29        "liblog",
30        "libutils",
31    ],
32
33    static_libs: [
34        "mediatranscoding_aidl_interface-ndk_platform",
35        "libmediatranscoding",
36    ],
37
38    cflags: [
39        "-Werror",
40        "-Wall",
41    ],
42
43    test_suites: ["device-tests"],
44}
45
46//
47// TranscodingClientManager unit test
48//
49cc_test {
50    name: "TranscodingClientManager_tests",
51    defaults: ["libmediatranscoding_test_defaults"],
52
53    srcs: ["TranscodingClientManager_tests.cpp"],
54}
55
56//
57// TranscodingSessionController unit test
58//
59cc_test {
60    name: "TranscodingSessionController_tests",
61    defaults: ["libmediatranscoding_test_defaults"],
62
63    srcs: ["TranscodingSessionController_tests.cpp"],
64}
65
66//
67// AdjustableMaxPriorityQueue unit test
68//
69cc_test {
70    name: "AdjustableMaxPriorityQueue_tests",
71    defaults: ["libmediatranscoding_test_defaults"],
72
73    srcs: ["AdjustableMaxPriorityQueue_tests.cpp"],
74}
75
76//
77// TranscodingLogger unit test
78//
79cc_test {
80    name: "TranscodingLogger_tests",
81    defaults: ["libmediatranscoding_test_defaults"],
82    shared_libs: ["libmediandk", "libstatssocket#30"],
83    static_libs: ["libmediatranscoder", "libstatslog_media"],
84
85    srcs: ["TranscodingLogger_tests.cpp"],
86}
87