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//##################################################################
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    libs: ["android.net.ipsec.ike.stubs.system"],
33}
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: [
49        "platform-test-annotations",
50        "testng",
51    ],
52
53    instrumentation_for: "BackupFrameworksServicesLib",
54
55}
56