blob: 3756c3bf7704a618f18fc1564f3bd3849bd06951 [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"],
Fan Zhang99decdd2019-06-20 16:31:28 -070035 static_libs: [
36 "SettingsLib-robo-testutils",
37 ],
Colin Crossfdec9ff2019-05-02 13:21:41 -070038 java_resource_dirs: ["config"],
39 instrumentation_for: "SettingsLibShell",
40 coverage_libs: ["SettingsLib"],
41 test_options: {
Colin Crossc3378672019-05-30 11:39:13 -070042 timeout: 36000,
Colin Crossfdec9ff2019-05-02 13:21:41 -070043 },
44}
45
46java_library {
47 name: "SettingsLib-robo-testutils",
48 srcs: [
Fan Zhang99decdd2019-06-20 16:31:28 -070049 "testutils/com/android/settingslib/testutils/**/*.java",
Colin Crossfdec9ff2019-05-02 13:21:41 -070050 ],
51
52 libs: [
53 "Robolectric_all-target",
54 "truth-prebuilt",
55 ],
56}