• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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        "gts",
48        "general-tests",
49    ],
50    sdk_version: "test_current",
51    data: [
52        ":TestAutofillServiceApp",
53        ":TestAutofillServiceWithoutIntentFilter",
54        ":CtsMockInputMethod",
55    ],
56    per_testcase_directory: true,
57    errorprone: {
58        javacflags: [
59            "-Xep:BareDotMetacharacter:WARN",
60        ],
61    },
62}
63
64test_module_config {
65    name: "CtsAutoFillServiceTestCases_saveui_autofillsavedialogtest",
66    base: "CtsAutoFillServiceTestCases",
67    test_suites: ["general-tests"],
68    include_filters: ["android.autofillservice.cts.saveui.AutofillSaveDialogTest"],
69}
70
71test_module_config {
72    name: "CtsAutoFillServiceTestCases_saveui_presimplesaveactivitytest",
73    base: "CtsAutoFillServiceTestCases",
74    test_suites: ["general-tests"],
75    include_filters: ["android.autofillservice.cts.saveui.PreSimpleSaveActivityTest"],
76}
77
78test_module_config {
79    name: "CtsAutoFillServiceTestCases_saveui_simplesaveactivitytest",
80    base: "CtsAutoFillServiceTestCases",
81    test_suites: ["general-tests"],
82    include_filters: ["android.autofillservice.cts.saveui.SimpleSaveActivityTest"],
83    exclude_annotations: ["android.platform.test.annotations.AppModeFull"],
84}
85
86test_module_config {
87    name: "CtsAutoFillServiceTestCases_cts_inline_ExcludeAppModeFull",
88    base: "CtsAutoFillServiceTestCases",
89    test_suites: ["general-tests"],
90    include_filters: ["android.autofillservice.cts.inline"],
91    exclude_annotations: [
92        "android.platform.test.annotations.AppModeFull",
93        "androidx.test.filters.LargeTest",
94    ],
95}
96
97test_module_config {
98    name: "CtsAutoFillServiceTestCases_dropdown_loginactivitytest",
99    base: "CtsAutoFillServiceTestCases",
100    test_suites: ["general-tests"],
101    include_filters: ["android.autofillservice.cts.dropdown.LoginActivityTest"],
102    exclude_annotations: ["android.platform.test.annotations.AppModeFull"],
103}
104
105test_module_config {
106    name: "CtsAutoFillServiceTestCases_dropdown_checkoutactivitytest",
107    base: "CtsAutoFillServiceTestCases",
108    test_suites: ["general-tests"],
109    include_filters: ["android.autofillservice.cts.dropdown.CheckoutActivityTest"],
110    exclude_annotations: ["android.platform.test.annotations.AppModeFull"],
111}
112
113test_module_config {
114    name: "CtsAutoFillServiceTestCases_cts_inline",
115    base: "CtsAutoFillServiceTestCases",
116    test_suites: ["general-tests"],
117    include_filters: ["android.autofillservice.cts.inline"],
118    exclude_annotations: ["androidx.test.filters.LargeTest"],
119}
120
121test_module_config {
122    name: "CtsAutoFillServiceTestCases_android_server_autofill_Presubmit",
123    base: "CtsAutoFillServiceTestCases",
124    test_suites: ["general-tests"],
125    include_annotations: ["android.platform.test.annotations.Presubmit"],
126}
127