Colin Cross | c65ca26 | 2019-07-24 14:58:33 -0700 | [diff] [blame] | 1 | // Copyright (C) 2018 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 | // BackupFrameworksServicesLib app just for Robolectric test target # |
| 17 | //################################################################## |
| 18 | android_app { |
| 19 | name: "BackupFrameworksServicesLib", |
| 20 | platform_apis: true, |
| 21 | |
| 22 | privileged: true, |
| 23 | |
| 24 | static_libs: [ |
| 25 | "bmgr", |
| 26 | "bu", |
| 27 | "services.backup", |
| 28 | "services.core", |
| 29 | "services.net", |
| 30 | ], |
evitayan | d713db9 | 2020-02-21 10:55:02 -0800 | [diff] [blame] | 31 | |
Anton Hansson | 0d95282d | 2020-03-12 16:56:08 +0000 | [diff] [blame] | 32 | libs: ["android.net.ipsec.ike.stubs.system"], |
Colin Cross | c65ca26 | 2019-07-24 14:58:33 -0700 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | //################################################################## |
| 36 | // BackupFrameworksServicesLib Robolectric test target. # |
| 37 | //################################################################## |
| 38 | android_robolectric_test { |
| 39 | name: "BackupFrameworksServicesRoboTests", |
| 40 | srcs: [ |
| 41 | "src/**/*.java", |
| 42 | ":FrameworksServicesRoboShadows", |
| 43 | ], |
| 44 | |
| 45 | java_resource_dirs: ["config"], |
| 46 | |
| 47 | // Include the testing libraries |
| 48 | libs: [ |
Al Sutton | cd2ed27 | 2020-01-17 11:32:49 +0000 | [diff] [blame] | 49 | "mockito-robolectric-prebuilt", |
Colin Cross | c65ca26 | 2019-07-24 14:58:33 -0700 | [diff] [blame] | 50 | "platform-test-annotations", |
| 51 | "testng", |
Al Sutton | cd2ed27 | 2020-01-17 11:32:49 +0000 | [diff] [blame] | 52 | "truth-prebuilt", |
Colin Cross | c65ca26 | 2019-07-24 14:58:33 -0700 | [diff] [blame] | 53 | ], |
| 54 | |
| 55 | instrumentation_for: "BackupFrameworksServicesLib", |
| 56 | |
| 57 | } |