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.runner", 38 "androidx.test.espresso.core", 39 "androidx.test.espresso.contrib", 40 "androidx.test.ext.truth", 41 "frameworks-base-testutils", 42 "mockito-target-extended-minus-junit4", 43 "platform-test-annotations", 44 "ravenwood-junit", 45 "services.core", 46 "service-permission.stubs.system_server", 47 "servicestests-core-utils", 48 "servicestests-utils-mockito-extended", 49 "truth", 50 ], 51 52 libs: [ 53 "android.test.mock.stubs.system", 54 "android.test.base.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 "framework", 77 "ravenwood-runtime", 78 "ravenwood-utils", 79 "services", 80 ], 81 libs: [ 82 "android.test.base.stubs.system", 83 "android.test.runner.stubs.system", 84 ], 85 srcs: [ 86 "src/com/android/server/inputmethod/**/ClientControllerTest.java", 87 ], 88 auto_gen_config: true, 89} 90 91android_test { 92 name: "FrameworksImeTests", 93 defaults: [ 94 "modules-utils-testable-device-config-defaults", 95 ], 96 97 srcs: [ 98 "src/com/android/inputmethodservice/**/*.java", 99 ], 100 101 manifest: "src/com/android/inputmethodservice/AndroidManifest.xml", 102 test_config: "src/com/android/inputmethodservice/AndroidTest.xml", 103 104 static_libs: [ 105 "androidx.test.core", 106 "androidx.test.runner", 107 "androidx.test.espresso.core", 108 "androidx.test.espresso.contrib", 109 "androidx.test.ext.truth", 110 "frameworks-base-testutils", 111 "mockito-target-extended-minus-junit4", 112 "platform-test-annotations", 113 "ravenwood-junit", 114 "services.core", 115 "service-permission.stubs.system_server", 116 "servicestests-core-utils", 117 "servicestests-utils-mockito-extended", 118 "truth", 119 "SimpleImeTestingLib", 120 "SimpleImeImsLib", 121 ], 122 123 libs: [ 124 "android.test.mock.stubs.system", 125 "android.test.base.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