blob: 25ab5d36169e9972decef4e645b537da52df354e [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 ],
evitayand713db92020-02-21 10:55:02 -080029
Anton Hansson0d95282d2020-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",
46 "testng",
47 ],
Alex Kershaw6fb8a022020-01-09 11:33:56 +000048 static_libs: [
49 "androidx.test.ext.truth",
50 ],
Colin Crossc65ca262019-07-24 14:58:33 -070051
52 instrumentation_for: "FrameworksServicesLib",
53}
54
55filegroup {
56 name: "FrameworksServicesRoboShadows",
57 srcs: ["src/com/android/server/testing/shadows/**/*.java"],
58}