xref: /aosp_15_r20/cts/hostsidetests/webkit/compatchangeapp/Android.bp (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1*b7c941bbSAndroid Build Coastguard Worker//
2*b7c941bbSAndroid Build Coastguard Worker// Copyright (C) 2024 The Android Open Source Project
3*b7c941bbSAndroid Build Coastguard Worker//
4*b7c941bbSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
5*b7c941bbSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
6*b7c941bbSAndroid Build Coastguard Worker// You may obtain a copy of the License at
7*b7c941bbSAndroid Build Coastguard Worker//
8*b7c941bbSAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
9*b7c941bbSAndroid Build Coastguard Worker//
10*b7c941bbSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
11*b7c941bbSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
12*b7c941bbSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*b7c941bbSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
14*b7c941bbSAndroid Build Coastguard Worker// limitations under the License.
15*b7c941bbSAndroid Build Coastguard Worker//
16*b7c941bbSAndroid Build Coastguard Worker
17*b7c941bbSAndroid Build Coastguard Workerpackage {
18*b7c941bbSAndroid Build Coastguard Worker    default_team: "trendy_team_chromium_webview",
19*b7c941bbSAndroid Build Coastguard Worker    default_applicable_licenses: ["Android-Apache-2.0"],
20*b7c941bbSAndroid Build Coastguard Worker}
21*b7c941bbSAndroid Build Coastguard Worker
22*b7c941bbSAndroid Build Coastguard Worker// Test app target for testing compatibility changes gated on targetSdkVersion.
23*b7c941bbSAndroid Build Coastguard Workerandroid_test_helper_app {
24*b7c941bbSAndroid Build Coastguard Worker    name: "CtsWebViewCompatChangeApp",
25*b7c941bbSAndroid Build Coastguard Worker    defaults: ["cts_support_defaults"],
26*b7c941bbSAndroid Build Coastguard Worker    platform_apis: true,
27*b7c941bbSAndroid Build Coastguard Worker    // Must be 1 version lower than the lowest targetSdkVersion used by tests.
28*b7c941bbSAndroid Build Coastguard Worker    // Tests currently start with features introduced in U, hence this value: V (34).
29*b7c941bbSAndroid Build Coastguard Worker    target_sdk_version: "34",
30*b7c941bbSAndroid Build Coastguard Worker    static_libs: [
31*b7c941bbSAndroid Build Coastguard Worker        "compatibility-device-util-axt",
32*b7c941bbSAndroid Build Coastguard Worker        "ctsdeviceutillegacy-axt",
33*b7c941bbSAndroid Build Coastguard Worker        "ctstestserver",
34*b7c941bbSAndroid Build Coastguard Worker        "ctstestrunner-axt",
35*b7c941bbSAndroid Build Coastguard Worker        "androidx.test.core",
36*b7c941bbSAndroid Build Coastguard Worker    ],
37*b7c941bbSAndroid Build Coastguard Worker    libs: [
38*b7c941bbSAndroid Build Coastguard Worker        "android.test.runner.stubs.system",
39*b7c941bbSAndroid Build Coastguard Worker        "android.test.base.stubs.system",
40*b7c941bbSAndroid Build Coastguard Worker    ],
41*b7c941bbSAndroid Build Coastguard Worker    srcs: ["src/**/*.java"],
42*b7c941bbSAndroid Build Coastguard Worker    // Tag this module as a cts test artifact.
43*b7c941bbSAndroid Build Coastguard Worker    test_suites: [
44*b7c941bbSAndroid Build Coastguard Worker        "cts",
45*b7c941bbSAndroid Build Coastguard Worker        "general-tests",
46*b7c941bbSAndroid Build Coastguard Worker    ],
47*b7c941bbSAndroid Build Coastguard Worker}
48