xref: /aosp_15_r20/cts/tests/autofillservice/Android.bp (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1// Copyright (C) 2024 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_team: "trendy_team_autofill",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20android_test {
21    name: "CtsAutoFillServiceTestCases",
22    defaults: ["cts_defaults"],
23    static_libs: [
24        "android.view.flags-aconfig-java",
25        "androidx.annotation_annotation",
26        "androidx.autofill_autofill",
27        "androidx.test.ext.junit",
28        "androidx.credentials_credentials",
29        "compatibility-device-util-axt",
30        "ctsdeviceutillegacy-axt",
31        "ctstestrunner-axt",
32        "flag-junit",
33        "truth",
34        "androidx.test.uiautomator_uiautomator",
35        "androidx.test.espresso.core",
36        "CtsMockInputMethodLib",
37        // TODO: remove once Android migrates to JUnit 4.12,
38        // which provides assertThrows
39        "testng",
40        "cts-wm-util",
41        "TestParameterInjector",
42    ],
43    srcs: ["src/**/*.java"],
44    // Tag this module as a cts test artifact
45    test_suites: [
46        "cts",
47        "general-tests",
48    ],
49    sdk_version: "test_current",
50    data: [
51        ":TestAutofillServiceApp",
52        ":TestAutofillServiceWithoutIntentFilter",
53        ":CtsMockInputMethod",
54    ],
55    per_testcase_directory: true,
56    errorprone: {
57        javacflags: [
58            "-Xep:BareDotMetacharacter:WARN",
59        ],
60    },
61}
62
63test_module_config {
64    name: "CtsAutoFillServiceTestCases_saveui_autofillsavedialogtest",
65    base: "CtsAutoFillServiceTestCases",
66    test_suites: ["general-tests"],
67    include_filters: ["android.autofillservice.cts.saveui.AutofillSaveDialogTest"],
68}
69
70test_module_config {
71    name: "CtsAutoFillServiceTestCases_saveui_presimplesaveactivitytest",
72    base: "CtsAutoFillServiceTestCases",
73    test_suites: ["general-tests"],
74    include_filters: ["android.autofillservice.cts.saveui.PreSimpleSaveActivityTest"],
75}
76
77test_module_config {
78    name: "CtsAutoFillServiceTestCases_saveui_simplesaveactivitytest",
79    base: "CtsAutoFillServiceTestCases",
80    test_suites: ["general-tests"],
81    include_filters: ["android.autofillservice.cts.saveui.SimpleSaveActivityTest"],
82    exclude_annotations: ["android.platform.test.annotations.AppModeFull"],
83}
84
85test_module_config {
86    name: "CtsAutoFillServiceTestCases_cts_inline_ExcludeAppModeFull",
87    base: "CtsAutoFillServiceTestCases",
88    test_suites: ["general-tests"],
89    include_filters: ["android.autofillservice.cts.inline"],
90    exclude_annotations: [
91        "android.platform.test.annotations.AppModeFull",
92        "androidx.test.filters.LargeTest",
93    ],
94}
95
96test_module_config {
97    name: "CtsAutoFillServiceTestCases_dropdown_loginactivitytest",
98    base: "CtsAutoFillServiceTestCases",
99    test_suites: ["general-tests"],
100    include_filters: ["android.autofillservice.cts.dropdown.LoginActivityTest"],
101    exclude_annotations: ["android.platform.test.annotations.AppModeFull"],
102}
103
104test_module_config {
105    name: "CtsAutoFillServiceTestCases_dropdown_checkoutactivitytest",
106    base: "CtsAutoFillServiceTestCases",
107    test_suites: ["general-tests"],
108    include_filters: ["android.autofillservice.cts.dropdown.CheckoutActivityTest"],
109    exclude_annotations: ["android.platform.test.annotations.AppModeFull"],
110}
111
112test_module_config {
113    name: "CtsAutoFillServiceTestCases_cts_inline",
114    base: "CtsAutoFillServiceTestCases",
115    test_suites: ["general-tests"],
116    include_filters: ["android.autofillservice.cts.inline"],
117    exclude_annotations: ["androidx.test.filters.LargeTest"],
118}
119
120test_module_config {
121    name: "CtsAutoFillServiceTestCases_android_server_autofill_Presubmit",
122    base: "CtsAutoFillServiceTestCases",
123    test_suites: ["general-tests"],
124    include_annotations: ["android.platform.test.annotations.Presubmit"],
125}
126