1// 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 libs: ["android.net.ipsec.ike.stubs.system"], 31} 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 ], 48 static_libs: [ 49 "androidx.test.ext.truth", 50 ], 51 52 instrumentation_for: "FrameworksServicesLib", 53} 54 55filegroup { 56 name: "FrameworksServicesRoboShadows", 57 srcs: ["src/com/android/server/testing/shadows/**/*.java"], 58} 59