blob: 06b9b1732c98fe640e0bda1010a5d905e0903f0b [file] [log] [blame]
hkuang26587cb2020-01-16 10:36:08 -08001// Build the unit tests for libmediatranscoding.
Bob Badour56786ac2021-02-25 15:24:36 -08002package {
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
Harish Mahendrakarc580def2020-11-18 10:34:30 +053011filegroup {
12 name: "test_assets",
13 path: "assets",
14 srcs: ["assets/**/*"],
15}
16
hkuang26587cb2020-01-16 10:36:08 -080017cc_defaults {
18 name: "libmediatranscoding_test_defaults",
19
20 header_libs: [
21 "libbase_headers",
22 "libmedia_headers",
23 ],
24
25 shared_libs: [
Chong Zhang4c542062020-12-08 16:38:09 -080026 "libandroid",
hkuang26587cb2020-01-16 10:36:08 -080027 "libbinder_ndk",
28 "libcutils",
29 "liblog",
30 "libutils",
hkuang26587cb2020-01-16 10:36:08 -080031 ],
32
33 static_libs: [
34 "mediatranscoding_aidl_interface-ndk_platform",
Chong Zhang4c542062020-12-08 16:38:09 -080035 "libmediatranscoding",
hkuang26587cb2020-01-16 10:36:08 -080036 ],
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"],
hkuang93fb84c2020-02-03 18:19:39 -080054}
55
Chong Zhangacb33502020-04-20 11:04:48 -070056//
Chong Zhangbc062482020-10-14 16:43:53 -070057// TranscodingSessionController unit test
Chong Zhangacb33502020-04-20 11:04:48 -070058//
Chong Zhang6d58e4b2020-03-31 09:41:10 -070059cc_test {
Chong Zhangbc062482020-10-14 16:43:53 -070060 name: "TranscodingSessionController_tests",
Chong Zhang6d58e4b2020-03-31 09:41:10 -070061 defaults: ["libmediatranscoding_test_defaults"],
62
Chong Zhangbc062482020-10-14 16:43:53 -070063 srcs: ["TranscodingSessionController_tests.cpp"],
Chong Zhang6d58e4b2020-03-31 09:41:10 -070064}
65
hkuang93fb84c2020-02-03 18:19:39 -080066//
67// AdjustableMaxPriorityQueue unit test
68//
69cc_test {
70 name: "AdjustableMaxPriorityQueue_tests",
71 defaults: ["libmediatranscoding_test_defaults"],
72
73 srcs: ["AdjustableMaxPriorityQueue_tests.cpp"],
Linus Nilsson0da327a2020-01-31 16:22:18 -080074}