• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_libmedia_license"
21    // to get the below license kinds:
22    //   SPDX-license-identifier-Apache-2.0
23    default_applicable_licenses: ["frameworks_av_media_libmedia_license"],
24}
25
26cc_test {
27    name: "CodecListTest",
28    test_suites: ["device-tests", "mts"],
29    gtest: true,
30
31    // Support multilib variants (using different suffix per sub-architecture), which is needed on
32    // build targets with secondary architectures, as the MTS test suite packaging logic flattens
33    // all test artifacts into a single `testcases` directory.
34    compile_multilib: "both",
35    multilib: {
36        lib32: {
37            suffix: "32",
38        },
39        lib64: {
40            suffix: "64",
41        },
42    },
43
44    // used within mainline MTS, but only to R, not to Q.
45    min_sdk_version: "30",
46
47    srcs: [
48        "CodecListTest.cpp",
49    ],
50
51    shared_libs: [
52        "libbinder",
53        "liblog",
54        "libmedia_codeclist", // available >= R
55        "libstagefright",
56        "libstagefright_foundation",
57        "libstagefright_xmlparser",
58        "libutils",
59    ],
60
61    cflags: [
62        "-Werror",
63        "-Wall",
64    ],
65
66    sanitize: {
67        cfi: true,
68        misc_undefined: [
69            "unsigned-integer-overflow",
70            "signed-integer-overflow",
71        ],
72    },
73}
74