blob: ef0ca66610c9f149b533a80c875ac71013a3ece8 [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 ],
31}
32
33//##################################################################
34// BackupFrameworksServicesLib Robolectric test target. #
35//##################################################################
36android_robolectric_test {
37 name: "BackupFrameworksServicesRoboTests",
38 srcs: [
39 "src/**/*.java",
40 ":FrameworksServicesRoboShadows",
41 ],
42
43 java_resource_dirs: ["config"],
44
45 // Include the testing libraries
46 libs: [
Al Suttoncd2ed272020-01-17 11:32:49 +000047 "mockito-robolectric-prebuilt",
Colin Crossc65ca262019-07-24 14:58:33 -070048 "platform-test-annotations",
49 "testng",
Al Suttoncd2ed272020-01-17 11:32:49 +000050 "truth-prebuilt",
Colin Crossc65ca262019-07-24 14:58:33 -070051 ],
52
53 instrumentation_for: "BackupFrameworksServicesLib",
54
55}