blob: d2f86eeabb478ee9c951bf8a9030494f32cacd01 [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 ],
29}
30
31//##################################################################
32// FrameworksServicesLib Robolectric test target. #
33//##################################################################
34android_robolectric_test {
35 name: "FrameworksServicesRoboTests",
36
37 srcs: ["src/**/*.java"],
38
39 java_resource_dirs: ["config"],
40
41 // Include the testing libraries
42 libs: [
43 "platform-test-annotations",
44 "testng",
45 ],
Alex Kershaw6fb8a022020-01-09 11:33:56 +000046 static_libs: [
47 "androidx.test.ext.truth",
48 ],
Colin Crossc65ca262019-07-24 14:58:33 -070049
50 instrumentation_for: "FrameworksServicesLib",
51}
52
53filegroup {
54 name: "FrameworksServicesRoboShadows",
55 srcs: ["src/com/android/server/testing/shadows/**/*.java"],
56}