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", 54 "android.test.base", 55 "android.test.runner", 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", 83 "android.test.runner", 84 ], 85 srcs: [ 86 "src/com/android/server/inputmethod/**/ClientControllerTest.java", 87 "src/com/android/server/inputmethod/**/UserDataRepositoryTest.java", 88 ], 89 auto_gen_config: true, 90} 91 92android_test { 93 name: "FrameworksImeTests", 94 defaults: [ 95 "modules-utils-testable-device-config-defaults", 96 ], 97 98 srcs: [ 99 "src/com/android/inputmethodservice/**/*.java", 100 ], 101 102 manifest: "src/com/android/inputmethodservice/AndroidManifest.xml", 103 test_config: "src/com/android/inputmethodservice/AndroidTest.xml", 104 105 static_libs: [ 106 "androidx.test.core", 107 "androidx.test.runner", 108 "androidx.test.espresso.core", 109 "androidx.test.espresso.contrib", 110 "androidx.test.ext.truth", 111 "frameworks-base-testutils", 112 "mockito-target-extended-minus-junit4", 113 "platform-test-annotations", 114 "ravenwood-junit", 115 "services.core", 116 "service-permission.stubs.system_server", 117 "servicestests-core-utils", 118 "servicestests-utils-mockito-extended", 119 "truth", 120 "SimpleImeTestingLib", 121 "SimpleImeImsLib", 122 ], 123 124 libs: [ 125 "android.test.mock", 126 "android.test.base", 127 "android.test.runner", 128 ], 129 130 data: [ 131 ":SimpleTestIme", 132 ], 133 134 certificate: "platform", 135 platform_apis: true, 136 test_suites: ["device-tests"], 137 138 optimize: { 139 enabled: false, 140 }, 141} 142