1// Copyright (C) 2019 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17    default_team: "trendy_team_android_media_solutions",
18}
19
20android_test {
21    name: "CtsMediaV2TestCases",
22    defaults: ["cts_defaults"],
23    compile_multilib: "both",
24    static_libs: [
25        "androidx.test.core",
26        "compatibility-device-util-axt",
27        "ctstestrunner-axt",
28        "ctstestserver",
29        "ctsmediav2common",
30        "aconfig_mediacodec_flags_java_lib",
31    ],
32    libs: [
33        "org.apache.http.legacy",
34    ],
35    platform_apis: true,
36    jni_uses_sdk_apis: true,
37    jni_libs: [
38        "libctsmediav2muxer_jni",
39        "libctsmediav2extractor_jni",
40        "libctsmediav2codecdec_jni",
41        "libctsmediav2codecdecsurface_jni",
42        "libctsmediav2codecenc_jni",
43        "libctsmediav2codecencsurface_jni",
44        "libctsmediav2codecapiunit_jni",
45        "libctsmediav2utils_jni",
46    ],
47    srcs: ["src/**/*.java"],
48    // Tag this module as a cts test artifact
49    test_suites: [
50        "cts",
51        "general-tests",
52    ],
53    min_sdk_version: "29",
54}
55
56android_test {
57    name: "MctsMediaV2TestCases",
58    team: "trendy_team_android_media_codec_framework",
59    defaults: ["cts_defaults"],
60    compile_multilib: "both",
61    static_libs: [
62        "androidx.test.core",
63        "compatibility-device-util-axt",
64        "ctstestrunner-axt",
65        "ctstestserver",
66        "ctsmediav2common",
67        "aconfig_mediacodec_flags_java_lib",
68    ],
69    libs: [
70        "org.apache.http.legacy",
71    ],
72    platform_apis: true,
73    jni_uses_sdk_apis: true,
74    jni_libs: [
75        "libctsmediav2muxer_jni",
76        "libctsmediav2extractor_jni",
77        "libctsmediav2codecdec_jni",
78        "libctsmediav2codecdecsurface_jni",
79        "libctsmediav2codecenc_jni",
80        "libctsmediav2codecencsurface_jni",
81        "libctsmediav2codecapiunit_jni",
82        "libctsmediav2utils_jni",
83    ],
84    srcs: ["src/**/*.java"],
85    test_config: "AndroidTest-mcts.xml",
86    // Tag this module as a cts test artifact
87    test_suites: [
88        "general-tests",
89        "mcts-media",
90        "mts-media",
91    ],
92    min_sdk_version: "29",
93}
94