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 cpp_std: "gnu++17", 18 cflags: [ 19 "-Wall", 20 "-Werror", 21 "-Wextra", 22 ], 23 24 shared_libs: [ 25 "libactivitymanager_aidl", 26 "libbinder", 27 "libbinder_ndk", 28 "liblog", 29 "libutils", 30 "libcutils", 31 ], 32 33 static_libs: [ 34 "mediatranscoding_aidl_interface-ndk", 35 "resourcemanager_aidl_interface-ndk", 36 "libmediatranscodingservice", 37 ], 38 39 required: [ 40 "TranscodingUidPolicy_TestAppA", 41 "TranscodingUidPolicy_TestAppB", 42 "TranscodingUidPolicy_TestAppC", 43 ], 44} 45 46// MediaTranscodingService unit test using simulated transcoder 47cc_test { 48 name: "mediatranscodingservice_simulated_tests", 49 defaults: ["mediatranscodingservice_test_defaults"], 50 51 srcs: ["mediatranscodingservice_simulated_tests.cpp"], 52} 53 54// MediaTranscodingService unit test using real transcoder 55cc_test { 56 name: "mediatranscodingservice_real_tests", 57 defaults: ["mediatranscodingservice_test_defaults"], 58 59 srcs: ["mediatranscodingservice_real_tests.cpp"], 60} 61 62// MediaTranscodingService unit test related to resource management 63cc_test { 64 name: "mediatranscodingservice_resource_tests", 65 defaults: ["mediatranscodingservice_test_defaults"], 66 67 srcs: ["mediatranscodingservice_resource_tests.cpp"], 68} 69