1// Copyright (C) 2017 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_input_method_framework",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20android_test {
21    name: "CtsInputMethodTestCases",
22    defaults: ["cts_defaults"],
23    // Tag this module as a cts test artifact
24    test_suites: [
25        "cts",
26        "general-tests",
27    ],
28    compile_multilib: "both",
29    libs: ["android.test.runner"],
30    static_libs: [
31        "androidx.test.ext.junit",
32        "androidx.test.rules",
33        "androidx.test.uiautomator_uiautomator",
34        "compatibility-device-util-axt",
35        "cts-inputmethod-util",
36        "cts-mock-a11y-ime-client",
37        "ctstestrunner-axt",
38        "CtsMockInputMethodLib",
39        "CtsInputMethodStandaloneTestLib",
40        "CtsMockSpellCheckerLib",
41        "CtsLegacyImeClientTestLib",
42        "CtsMockInputMethodWithSubtypesLib",
43        "testng",
44        "kotlin-test",
45        "cts-wm-util",
46        "cts_window-extensions",
47        "statsdprotonano",
48        "android.view.inputmethod.flags-aconfig-java",
49        "com.android.text.flags-aconfig-java",
50        "flag-junit",
51        "ravenwood-junit",
52    ],
53    srcs: [
54        "src/**/*.java",
55        "src/**/*.kt",
56        "src/**/I*.aidl",
57    ],
58    aidl: {
59        local_include_dirs: ["src"],
60    },
61    sdk_version: "test_current",
62    data: [
63        ":CtsMockSpellChecker",
64        ":CtsHiddenFromPickerIme",
65        ":CtsMockA11yInputMethod",
66        ":CtsMockInputMethod",
67        ":CtsMockInputMethod2",
68        ":CtsSpellCheckingIme",
69        ":CtsInputMethodStandaloneTestApp",
70        ":CtsMockLargeResourceInputMethod",
71        ":CtsMockInputMethodWithSubtypes",
72        ":CtsInputMethodTestLauncher",
73        ":TestIme",
74    ],
75    per_testcase_directory: true,
76}
77
78android_ravenwood_test {
79    name: "CtsInputMethodTestCasesRavenwood",
80    static_libs: [
81        "androidx.annotation_annotation",
82        "androidx.test.rules",
83        "compatibility-device-util-axt",
84    ],
85    srcs: [
86        "src/android/view/inputmethod/cts/InputBindingTest.java",
87    ],
88    auto_gen_config: true,
89}
90