blob: fba2cad90f00a7dd75ca8b9ab67b07a97ac380a0 [file] [log] [blame]
Colin Crossc65ca262019-07-24 14:58:33 -07001// 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//##################################################################
Bob Badour051ef782021-02-12 17:07:05 -080018package {
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
Colin Crossc65ca262019-07-24 14:58:33 -070027android_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 ],
evitayand713db92020-02-21 10:55:02 -080040
Anton Hansson0d95282d2020-03-12 16:56:08 +000041 libs: ["android.net.ipsec.ike.stubs.system"],
Colin Crossc65ca262019-07-24 14:58:33 -070042}
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: [
Al Suttoncd2ed272020-01-17 11:32:49 +000058 "mockito-robolectric-prebuilt",
Rex Hoffmana1acb7d2023-12-22 06:40:52 +000059 "Settings-robo-testutils",
60 "SettingsLib-robo-testutils",
Colin Crossc65ca262019-07-24 14:58:33 -070061 "platform-test-annotations",
62 "testng",
Krzysztof KosiƄskibbe98fe32023-10-06 20:25:28 +000063 "truth",
Colin Crossc65ca262019-07-24 14:58:33 -070064 ],
65
66 instrumentation_for: "BackupFrameworksServicesLib",
67
Rex Hoffmana1acb7d2023-12-22 06:40:52 +000068 upstream: true,
69
Colin Crossc65ca262019-07-24 14:58:33 -070070}