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 | //################################################################## |
Bob Badour | 051ef78 | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 18 | package { |
| 19 | // See: http://go/android-license-faq |
| 20 | // A large-scale-change added 'default_applicable_licenses' to import |
| 21 | // all of the 'license_kinds' from "frameworks_base_license" |
| 22 | // to get the below license kinds: |
| 23 | // SPDX-license-identifier-Apache-2.0 |
| 24 | default_applicable_licenses: ["frameworks_base_license"], |
| 25 | } |
| 26 | |
Colin Cross | c65ca26 | 2019-07-24 14:58:33 -0700 | [diff] [blame] | 27 | android_app { |
| 28 | name: "BackupFrameworksServicesLib", |
| 29 | platform_apis: true, |
| 30 | |
| 31 | privileged: true, |
| 32 | |
| 33 | static_libs: [ |
| 34 | "bmgr", |
| 35 | "bu", |
| 36 | "services.backup", |
| 37 | "services.core", |
| 38 | "services.net", |
| 39 | ], |
evitayan | d713db9 | 2020-02-21 10:55:02 -0800 | [diff] [blame] | 40 | |
Anton Hansson | 0d95282d | 2020-03-12 16:56:08 +0000 | [diff] [blame] | 41 | libs: ["android.net.ipsec.ike.stubs.system"], |
Colin Cross | c65ca26 | 2019-07-24 14:58:33 -0700 | [diff] [blame] | 42 | } |
| 43 | |
| 44 | //################################################################## |
| 45 | // BackupFrameworksServicesLib Robolectric test target. # |
| 46 | //################################################################## |
| 47 | android_robolectric_test { |
| 48 | name: "BackupFrameworksServicesRoboTests", |
| 49 | srcs: [ |
| 50 | "src/**/*.java", |
| 51 | ":FrameworksServicesRoboShadows", |
| 52 | ], |
| 53 | |
| 54 | java_resource_dirs: ["config"], |
| 55 | |
| 56 | // Include the testing libraries |
| 57 | libs: [ |
Al Sutton | cd2ed27 | 2020-01-17 11:32:49 +0000 | [diff] [blame] | 58 | "mockito-robolectric-prebuilt", |
Rex Hoffman | a1acb7d | 2023-12-22 06:40:52 +0000 | [diff] [blame^] | 59 | "Settings-robo-testutils", |
| 60 | "SettingsLib-robo-testutils", |
Colin Cross | c65ca26 | 2019-07-24 14:58:33 -0700 | [diff] [blame] | 61 | "platform-test-annotations", |
| 62 | "testng", |
Krzysztof KosiĆski | bbe98fe3 | 2023-10-06 20:25:28 +0000 | [diff] [blame] | 63 | "truth", |
Colin Cross | c65ca26 | 2019-07-24 14:58:33 -0700 | [diff] [blame] | 64 | ], |
| 65 | |
| 66 | instrumentation_for: "BackupFrameworksServicesLib", |
| 67 | |
Rex Hoffman | a1acb7d | 2023-12-22 06:40:52 +0000 | [diff] [blame^] | 68 | upstream: true, |
| 69 | |
Colin Cross | c65ca26 | 2019-07-24 14:58:33 -0700 | [diff] [blame] | 70 | } |