1// 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 static_libs: [ 36 "SettingsLib-robo-testutils", 37 ], 38 java_resource_dirs: ["config"], 39 instrumentation_for: "SettingsLibShell", 40 coverage_libs: ["SettingsLib"], 41 test_options: { 42 timeout: 36000, 43 }, 44} 45 46java_library { 47 name: "SettingsLib-robo-testutils", 48 srcs: [ 49 "testutils/com/android/settingslib/testutils/**/*.java", 50 ], 51 52 libs: [ 53 "Robolectric_all-target", 54 "truth-prebuilt", 55 ], 56} 57