1/* 2 * Copyright (C) 2020 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package { 18 // See: http://go/android-license-faq 19 // A large-scale-change added 'default_applicable_licenses' to import 20 // all of the 'license_kinds' from "frameworks_av_media_codecs_m4v_h263_dec_license" 21 // to get the below license kinds: 22 // SPDX-license-identifier-Apache-2.0 23 default_applicable_licenses: [ 24 "frameworks_av_media_codecs_m4v_h263_dec_license", 25 ], 26} 27 28cc_test { 29 name: "Mpeg4H263DecoderTest", 30 gtest: true, 31 32 test_suites: [ 33 "device-tests", 34 "mts", 35 ], 36 37 // Support multilib variants (using different suffix per sub-architecture), which is needed on 38 // build targets with secondary architectures, as the MTS test suite packaging logic flattens 39 // all test artifacts into a single `testcases` directory. 40 compile_multilib: "both", 41 multilib: { 42 lib32: { 43 suffix: "32", 44 }, 45 lib64: { 46 suffix: "64", 47 }, 48 }, 49 50 // this unit test also runs within the mainline tests (MTS), 51 // so it must be compatible back to Android Q/10 (sdk 29) 52 min_sdk_version: "29", 53 54 srcs: [ 55 "Mpeg4H263DecoderTest.cpp", 56 ], 57 58 shared_libs: [ 59 "liblog", 60 ], 61 62 static_libs: [ 63 "libstagefright_m4vh263dec", 64 "libstagefright_foundation", 65 ], 66 67 cflags: [ 68 "-Werror", 69 "-Wall", 70 ], 71 72 sanitize: { 73 misc_undefined: [ 74 "unsigned-integer-overflow", 75 "signed-integer-overflow", 76 ], 77 cfi: true, 78 }, 79} 80