blob: 25c80faf98e3721899691336e0c1a8ab906f63dd [file] [log] [blame]
Colin Crossfdec9ff2019-05-02 13:21:41 -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// SettingsLib Shell app just for Robolectric test target. #
17//###########################################################
18
19android_app {
20 name: "SettingsLibShell",
21 defaults: ["SettingsLibDefaults"],
22 platform_apis: true,
23
24 privileged: true,
25
26 resource_dirs: ["res"],
27}
28
29//###########################################################
30// SettingsLib Robolectric test target. #
31//###########################################################
32android_robolectric_test {
33 name: "SettingsLibRoboTests",
34 srcs: ["src/**/*.java"],
35 java_resource_dirs: ["config"],
36 instrumentation_for: "SettingsLibShell",
37 coverage_libs: ["SettingsLib"],
38 test_options: {
Colin Crossc3378672019-05-30 11:39:13 -070039 timeout: 36000,
Colin Crossfdec9ff2019-05-02 13:21:41 -070040 },
41}
42
43java_library {
44 name: "SettingsLib-robo-testutils",
45 srcs: [
46 "src/com/android/settingslib/testutils/**/*.java",
47 ],
48
49 libs: [
50 "Robolectric_all-target",
51 "truth-prebuilt",
52 ],
53}