blob: 32587accf1607edd9c1f715303850ef140beb0ed [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//##################################################################
18android_app {
19 name: "BackupFrameworksServicesLib",
20 platform_apis: true,
21
22 privileged: true,
23
24 static_libs: [
25 "bmgr",
26 "bu",
27 "services.backup",
28 "services.core",
29 "services.net",
30 ],
evitayand713db92020-02-21 10:55:02 -080031
Anton Hansson0d95282d2020-03-12 16:56:08 +000032 libs: ["android.net.ipsec.ike.stubs.system"],
Colin Crossc65ca262019-07-24 14:58:33 -070033}
34
35//##################################################################
36// BackupFrameworksServicesLib Robolectric test target. #
37//##################################################################
38android_robolectric_test {
39 name: "BackupFrameworksServicesRoboTests",
40 srcs: [
41 "src/**/*.java",
42 ":FrameworksServicesRoboShadows",
43 ],
44
45 java_resource_dirs: ["config"],
46
47 // Include the testing libraries
48 libs: [
Al Suttoncd2ed272020-01-17 11:32:49 +000049 "mockito-robolectric-prebuilt",
Colin Crossc65ca262019-07-24 14:58:33 -070050 "platform-test-annotations",
51 "testng",
Al Suttoncd2ed272020-01-17 11:32:49 +000052 "truth-prebuilt",
Colin Crossc65ca262019-07-24 14:58:33 -070053 ],
54
55 instrumentation_for: "BackupFrameworksServicesLib",
56
57}