blob: 566e61e1a14f24d0c123fef72617f24ec8e86079 [file] [log] [blame]
Colin Crossc65ca262019-07-24 14:58:33 -07001// Copyright (C) 2016 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// FrameworksServicesLib app just for Robolectric test target #
17//##################################################################
18
19android_app {
20 name: "FrameworksServicesLib",
21 platform_apis: true,
22
23 privileged: true,
24
25 static_libs: [
26 "services.core",
27 "services.net",
28 ],
evitayan5fc0bba2020-02-21 10:55:02 -080029
Anton Hansson9b330012020-03-12 16:56:08 +000030 libs: ["android.net.ipsec.ike.stubs.system"],
Colin Crossc65ca262019-07-24 14:58:33 -070031}
32
33//##################################################################
34// FrameworksServicesLib Robolectric test target. #
35//##################################################################
36android_robolectric_test {
37 name: "FrameworksServicesRoboTests",
38
39 srcs: ["src/**/*.java"],
40
41 java_resource_dirs: ["config"],
42
43 // Include the testing libraries
44 libs: [
45 "platform-test-annotations",
Anton Hanssonb2fb9632020-07-22 15:38:10 +010046 "services.backup",
Colin Crossc65ca262019-07-24 14:58:33 -070047 "testng",
48 ],
49
50 instrumentation_for: "FrameworksServicesLib",
51}
52
53filegroup {
54 name: "FrameworksServicesRoboShadows",
55 srcs: ["src/com/android/server/testing/shadows/**/*.java"],
56}