blob: ff5a9fa363937ef85d52e19a682ee854c2079862 [file] [log] [blame]
hkuang26587cb2020-01-16 10:36:08 -08001// Build the unit tests for libmediatranscoding.
Bob Badourc8375042021-02-12 21:02:31 -08002
3package {
4 // See: http://go/android-license-faq
5 // A large-scale-change added 'default_applicable_licenses' to import
6 // all of the 'license_kinds' from "frameworks_av_license"
7 // to get the below license kinds:
8 // SPDX-license-identifier-Apache-2.0
9 default_applicable_licenses: ["frameworks_av_license"],
10}
11
Harish Mahendrakarc580def2020-11-18 10:34:30 +053012filegroup {
13 name: "test_assets",
14 path: "assets",
15 srcs: ["assets/**/*"],
16}
17
hkuang26587cb2020-01-16 10:36:08 -080018cc_defaults {
19 name: "libmediatranscoding_test_defaults",
20
21 header_libs: [
22 "libbase_headers",
23 "libmedia_headers",
24 ],
25
26 shared_libs: [
Chong Zhang4c542062020-12-08 16:38:09 -080027 "libandroid",
hkuang26587cb2020-01-16 10:36:08 -080028 "libbinder_ndk",
29 "libcutils",
30 "liblog",
31 "libutils",
hkuang26587cb2020-01-16 10:36:08 -080032 ],
33
34 static_libs: [
35 "mediatranscoding_aidl_interface-ndk_platform",
Chong Zhang4c542062020-12-08 16:38:09 -080036 "libmediatranscoding",
hkuang26587cb2020-01-16 10:36:08 -080037 ],
38
39 cflags: [
40 "-Werror",
41 "-Wall",
42 ],
43
44 test_suites: ["device-tests"],
45}
46
47//
48// TranscodingClientManager unit test
49//
50cc_test {
51 name: "TranscodingClientManager_tests",
52 defaults: ["libmediatranscoding_test_defaults"],
53
54 srcs: ["TranscodingClientManager_tests.cpp"],
hkuang93fb84c2020-02-03 18:19:39 -080055}
56
Chong Zhangacb33502020-04-20 11:04:48 -070057//
Chong Zhangbc062482020-10-14 16:43:53 -070058// TranscodingSessionController unit test
Chong Zhangacb33502020-04-20 11:04:48 -070059//
Chong Zhang6d58e4b2020-03-31 09:41:10 -070060cc_test {
Chong Zhangbc062482020-10-14 16:43:53 -070061 name: "TranscodingSessionController_tests",
Chong Zhang6d58e4b2020-03-31 09:41:10 -070062 defaults: ["libmediatranscoding_test_defaults"],
63
Chong Zhangbc062482020-10-14 16:43:53 -070064 srcs: ["TranscodingSessionController_tests.cpp"],
Chong Zhang6d58e4b2020-03-31 09:41:10 -070065}
66
hkuang93fb84c2020-02-03 18:19:39 -080067//
68// AdjustableMaxPriorityQueue unit test
69//
70cc_test {
71 name: "AdjustableMaxPriorityQueue_tests",
72 defaults: ["libmediatranscoding_test_defaults"],
73
74 srcs: ["AdjustableMaxPriorityQueue_tests.cpp"],
Linus Nilsson0da327a2020-01-31 16:22:18 -080075}