1/* 2 * Copyright (C) 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package { 18 default_team: "trendy_team_android_core_experiments", 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22android_test { 23 name: "FlagJUnitTests", 24 plugins: ["auto_annotation_plugin"], 25 srcs: ["src/**/*.java"], 26 exclude_srcs: ["src/**/host/*.java"], 27 sdk_version: "test_current", 28 static_libs: [ 29 "androidx.test.rules", 30 "auto_value_annotations", 31 "flag-junit", 32 "junit", 33 "platform-test-annotations", 34 ], 35 test_config: "FlagJUnitTests.xml", 36 test_suites: [ 37 "general-tests", 38 ], 39} 40 41java_test_host { 42 name: "FlagJUnitHostTests", 43 srcs: ["src/**/*.java"], 44 exclude_srcs: ["src/**/DeviceFlagsValueProviderTest.java"], 45 plugins: ["auto_annotation_plugin"], 46 static_libs: [ 47 "auto_value_annotations", 48 "flag-junit-host", 49 "junit", 50 "mockito-host", 51 "objenesis", 52 "platform-test-annotations", 53 ], 54 libs: [ 55 "tradefed", 56 ], 57 test_options: { 58 unit_test: true, 59 }, 60} 61