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 ], 40 41 libs: ["android.net.ipsec.ike.stubs.system"], 42} 43 44//################################################################## 45// BackupFrameworksServicesLib Robolectric test target. # 46//################################################################## 47android_robolectric_test { 48 name: "BackupFrameworksServicesRoboTests", 49 srcs: [ 50 "src/**/*.java", 51 ":FrameworksServicesRoboShadows", 52 ], 53 54 java_resource_dirs: ["config"], 55 56 // Include the testing libraries 57 libs: [ 58 "mockito-robolectric-prebuilt", 59 "platform-test-annotations", 60 "testng", 61 "truth-prebuilt", 62 ], 63 64 instrumentation_for: "BackupFrameworksServicesLib", 65 66} 67