blob: b5d27de590c2bfdc89808150098479c7c2930299 [file]
// Copyright (C) 2024 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_team: "trendy_team_autofill",
default_applicable_licenses: ["Android-Apache-2.0"],
}
android_test {
name: "CtsAutoFillServiceTestCases",
defaults: ["cts_defaults"],
static_libs: [
"android.view.flags-aconfig-java",
"androidx.annotation_annotation",
"androidx.autofill_autofill",
"androidx.test.ext.junit",
"androidx.credentials_credentials",
"compatibility-device-util-axt",
"ctsdeviceutillegacy-axt",
"ctstestrunner-axt",
"flag-junit",
"truth",
"androidx.test.uiautomator_uiautomator",
"androidx.test.espresso.core",
"CtsMockInputMethodLib",
// TODO: remove once Android migrates to JUnit 4.12,
// which provides assertThrows
"testng",
"cts-wm-util",
"TestParameterInjector",
],
srcs: ["src/**/*.java"],
// Tag this module as a cts test artifact
test_suites: [
"cts",
"gts",
"general-tests",
],
sdk_version: "test_current",
data: [
":TestAutofillServiceApp",
":TestAutofillServiceWithoutIntentFilter",
":CtsMockInputMethod",
],
per_testcase_directory: true,
errorprone: {
javacflags: [
"-Xep:BareDotMetacharacter:WARN",
],
},
}
test_module_config {
name: "CtsAutoFillServiceTestCases_saveui_autofillsavedialogtest",
base: "CtsAutoFillServiceTestCases",
test_suites: ["general-tests"],
include_filters: ["android.autofillservice.cts.saveui.AutofillSaveDialogTest"],
}
test_module_config {
name: "CtsAutoFillServiceTestCases_saveui_presimplesaveactivitytest",
base: "CtsAutoFillServiceTestCases",
test_suites: ["general-tests"],
include_filters: ["android.autofillservice.cts.saveui.PreSimpleSaveActivityTest"],
}
test_module_config {
name: "CtsAutoFillServiceTestCases_saveui_simplesaveactivitytest",
base: "CtsAutoFillServiceTestCases",
test_suites: ["general-tests"],
include_filters: ["android.autofillservice.cts.saveui.SimpleSaveActivityTest"],
exclude_annotations: ["android.platform.test.annotations.AppModeFull"],
}
test_module_config {
name: "CtsAutoFillServiceTestCases_cts_inline_ExcludeAppModeFull",
base: "CtsAutoFillServiceTestCases",
test_suites: ["general-tests"],
include_filters: ["android.autofillservice.cts.inline"],
exclude_annotations: [
"android.platform.test.annotations.AppModeFull",
"androidx.test.filters.LargeTest",
],
}
test_module_config {
name: "CtsAutoFillServiceTestCases_dropdown_loginactivitytest",
base: "CtsAutoFillServiceTestCases",
test_suites: ["general-tests"],
include_filters: ["android.autofillservice.cts.dropdown.LoginActivityTest"],
exclude_annotations: ["android.platform.test.annotations.AppModeFull"],
}
test_module_config {
name: "CtsAutoFillServiceTestCases_dropdown_checkoutactivitytest",
base: "CtsAutoFillServiceTestCases",
test_suites: ["general-tests"],
include_filters: ["android.autofillservice.cts.dropdown.CheckoutActivityTest"],
exclude_annotations: ["android.platform.test.annotations.AppModeFull"],
}
test_module_config {
name: "CtsAutoFillServiceTestCases_cts_inline",
base: "CtsAutoFillServiceTestCases",
test_suites: ["general-tests"],
include_filters: ["android.autofillservice.cts.inline"],
exclude_annotations: ["androidx.test.filters.LargeTest"],
}
test_module_config {
name: "CtsAutoFillServiceTestCases_android_server_autofill_Presubmit",
base: "CtsAutoFillServiceTestCases",
test_suites: ["general-tests"],
include_annotations: ["android.platform.test.annotations.Presubmit"],
}