• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Build the unit tests for MediaTranscodingService
2
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_services_mediatranscoding_license"
7    // to get the below license kinds:
8    //   SPDX-license-identifier-Apache-2.0
9    default_applicable_licenses: [
10        "frameworks_av_services_mediatranscoding_license",
11    ],
12}
13
14cc_defaults {
15    name: "mediatranscodingservice_test_defaults",
16
17    cflags: [
18        "-Wall",
19        "-Werror",
20        "-Wextra",
21    ],
22
23    include_dirs: [
24        "frameworks/av/services/mediatranscoding",
25    ],
26
27    shared_libs: [
28        "libactivitymanager_aidl",
29        "libbinder",
30        "libbinder_ndk",
31        "liblog",
32        "libutils",
33        "libcutils",
34    ],
35
36    static_libs: [
37        "mediatranscoding_aidl_interface-ndk",
38        "resourcemanager_aidl_interface-ndk",
39        "libmediatranscodingservice",
40    ],
41
42    required: [
43        "TranscodingUidPolicy_TestAppA",
44        "TranscodingUidPolicy_TestAppB",
45        "TranscodingUidPolicy_TestAppC",
46    ],
47}
48
49// MediaTranscodingService unit test using simulated transcoder
50cc_test {
51    name: "mediatranscodingservice_simulated_tests",
52    defaults: ["mediatranscodingservice_test_defaults"],
53
54    srcs: ["mediatranscodingservice_simulated_tests.cpp"],
55}
56
57// MediaTranscodingService unit test using real transcoder
58cc_test {
59    name: "mediatranscodingservice_real_tests",
60    defaults: ["mediatranscodingservice_test_defaults"],
61
62    srcs: ["mediatranscodingservice_real_tests.cpp"],
63}
64
65// MediaTranscodingService unit test related to resource management
66cc_test {
67    name: "mediatranscodingservice_resource_tests",
68    defaults: ["mediatranscodingservice_test_defaults"],
69
70    srcs: ["mediatranscodingservice_resource_tests.cpp"],
71}
72