Files
frameworks_base/services/robotests/Android.bp
evitayan d713db92a5 Do not statically link ike-stubs
Stub jars should not be in statically linked except for inside
other stub jars.

Bug: 145995723
Test: build, flash and reboot
Test: FrameworksIkeTests, FrameworksNetTests
Change-Id: I503616de0143cc39dd189ae689de3e8d77c345da
Merged-In: I503616de0143cc39dd189ae689de3e8d77c345da
(cherry picked from commit 5fc0bbaae7)
2020-02-25 00:40:05 -08:00

59 lines
1.7 KiB
Plaintext

// Copyright (C) 2016 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//##################################################################
// FrameworksServicesLib app just for Robolectric test target #
//##################################################################
android_app {
name: "FrameworksServicesLib",
platform_apis: true,
privileged: true,
static_libs: [
"services.core",
"services.net",
],
libs: ["ike-stubs"],
}
//##################################################################
// FrameworksServicesLib Robolectric test target. #
//##################################################################
android_robolectric_test {
name: "FrameworksServicesRoboTests",
srcs: ["src/**/*.java"],
java_resource_dirs: ["config"],
// Include the testing libraries
libs: [
"platform-test-annotations",
"testng",
],
static_libs: [
"androidx.test.ext.truth",
],
instrumentation_for: "FrameworksServicesLib",
}
filegroup {
name: "FrameworksServicesRoboShadows",
srcs: ["src/com/android/server/testing/shadows/**/*.java"],
}