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_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19android_robolectric_test { 20 name: "DeviceLockControllerRoboTests", 21 team: "trendy_team_android_go", 22 instrumentation_for: "DeviceLockController", 23 upstream: true, 24 java_resource_dirs: [ 25 "config", 26 ], 27 srcs: ["src/**/*.java"], 28 static_libs: [ 29 "androidx.test.core", 30 "androidx.test.rules", 31 "mockito-robolectric-prebuilt", 32 "truth", 33 "guava-android-testlib", 34 "grpc-java-lite", 35 "grpc-java-testing", 36 "flag-junit", 37 ], 38 libs: [ 39 "androidx.work_work-testing", 40 "devicelock-aconfig-flags-lib", 41 ], 42 test_suites: ["general-tests"], 43 44 strict_mode: false, 45} 46 47filegroup { 48 name: "devicelockcontroller-test-application-sources", 49 srcs: [ 50 "src/com/android/devicelockcontroller/TestDeviceLockControllerApplication.java", 51 ], 52 visibility: [ 53 "//vendor:__subpackages__", 54 ], 55} 56