1// Copyright (C) 2022 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 // See: http://go/android-license-faq 18 // A large-scale-change added 'default_applicable_licenses' to import 19 // all of the 'license_kinds' from "frameworks_base_license" 20 // to get the below license kinds: 21 // SPDX-license-identifier-Apache-2.0 22 default_applicable_licenses: ["frameworks_base_license"], 23} 24 25android_test { 26 name: "FrameworksInputMethodSystemServerTests", 27 defaults: [ 28 "modules-utils-testable-device-config-defaults", 29 ], 30 31 srcs: [ 32 "src/com/android/server/inputmethod/**/*.java", 33 ], 34 35 static_libs: [ 36 "androidx.test.core", 37 "androidx.test.espresso.contrib", 38 "androidx.test.espresso.core", 39 "androidx.test.ext.truth", 40 "androidx.test.runner", 41 "frameworks-base-testutils", 42 "mockito-target-extended-minus-junit4", 43 "platform-test-annotations", 44 "ravenwood-junit", 45 "service-permission.stubs.system_server", 46 "services.core", 47 "servicestests-core-utils", 48 "servicestests-utils-mockito-extended", 49 "truth", 50 ], 51 52 libs: [ 53 "android.test.base.stubs.system", 54 "android.test.mock.stubs.system", 55 "android.test.runner.stubs.system", 56 ], 57 58 data: [ 59 ":SimpleTestIme", 60 ], 61 62 certificate: "platform", 63 platform_apis: true, 64 test_suites: ["device-tests"], 65 66 optimize: { 67 enabled: false, 68 }, 69} 70 71android_ravenwood_test { 72 name: "FrameworksInputMethodSystemServerTestsRavenwood", 73 static_libs: [ 74 "androidx.annotation_annotation", 75 "androidx.test.rules", 76 "services.core", 77 ], 78 libs: [ 79 "android.test.base.stubs.system", 80 "android.test.runner.stubs.system", 81 ], 82 srcs: [ 83 "src/com/android/server/inputmethod/**/ClientControllerTest.java", 84 ], 85 auto_gen_config: true, 86 team: "trendy_team_ravenwood", 87} 88 89android_test { 90 name: "FrameworksImeTests", 91 defaults: [ 92 "modules-utils-testable-device-config-defaults", 93 ], 94 95 srcs: [ 96 "src/com/android/inputmethodservice/**/*.java", 97 ], 98 99 manifest: "src/com/android/inputmethodservice/AndroidManifest.xml", 100 test_config: "src/com/android/inputmethodservice/AndroidTest.xml", 101 102 static_libs: [ 103 "SimpleImeImsLib", 104 "SimpleImeTestingLib", 105 "androidx.test.core", 106 "androidx.test.espresso.contrib", 107 "androidx.test.espresso.core", 108 "androidx.test.ext.truth", 109 "androidx.test.runner", 110 "cts-input-lib", 111 "cts-wm-util", 112 "frameworks-base-testutils", 113 "mockito-target-extended-minus-junit4", 114 "platform-test-annotations", 115 "ravenwood-junit", 116 "service-permission.stubs.system_server", 117 "services.core", 118 "servicestests-core-utils", 119 "servicestests-utils-mockito-extended", 120 "truth", 121 ], 122 123 libs: [ 124 "android.test.base.stubs.system", 125 "android.test.mock.stubs.system", 126 "android.test.runner.stubs.system", 127 ], 128 129 data: [ 130 ":SimpleTestIme", 131 ], 132 133 certificate: "platform", 134 platform_apis: true, 135 test_suites: ["device-tests"], 136 137 optimize: { 138 enabled: false, 139 }, 140} 141 142test_module_config { 143 name: "FrameworksInputMethodSystemServerTests_server_inputmethod", 144 base: "FrameworksInputMethodSystemServerTests", 145 test_suites: ["device-tests"], 146 include_filters: ["com.android.server.inputmethod"], 147} 148 149test_module_config { 150 name: "FrameworksImeTests_android_inputmethodservice", 151 base: "FrameworksImeTests", 152 test_suites: ["device-tests"], 153 include_filters: ["com.android.inputmethodservice"], 154} 155