1// Copyright (C) 2018 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 15//################################################################## 16// BackupFrameworksServicesLib app just for Robolectric test target # 17//################################################################## 18package { 19 // See: http://go/android-license-faq 20 // A large-scale-change added 'default_applicable_licenses' to import 21 // all of the 'license_kinds' from "frameworks_base_license" 22 // to get the below license kinds: 23 // SPDX-license-identifier-Apache-2.0 24 default_applicable_licenses: ["frameworks_base_license"], 25} 26 27android_app { 28 name: "BackupFrameworksServicesLib", 29 platform_apis: true, 30 31 privileged: true, 32 33 static_libs: [ 34 "bmgr", 35 "bu", 36 "services.backup", 37 "services.core", 38 "services.net", 39 "service-permission.stubs.system_server", 40 ], 41 42 libs: ["android.net.ipsec.ike.stubs.system"], 43} 44 45//################################################################## 46// BackupFrameworksServicesLib Robolectric test target. # 47//################################################################## 48android_robolectric_test { 49 name: "BackupFrameworksServicesRoboTests", 50 srcs: [ 51 "src/**/*.java", 52 ":FrameworksServicesRoboShadows", 53 ], 54 55 java_resource_dirs: ["config"], 56 57 // Include the testing libraries 58 libs: [ 59 "mockito-robolectric-prebuilt", 60 "Settings-robo-testutils", 61 "SettingsLib-robo-testutils", 62 "platform-test-annotations", 63 "testng", 64 "truth", 65 ], 66 67 instrumentation_for: "BackupFrameworksServicesLib", 68 69 upstream: true, 70 71 strict_mode: false, 72 73} 74