blob: 70fa0c37f86fe916a045f93923bd550253564e1a [file] [log] [blame]
// Copyright (C) 2022 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//############################################
// Nearby Robolectric test target. #
//############################################
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
android_robolectric_test {
name: "NearbyRoboTests",
srcs: ["src/**/*.java"],
instrumentation_for: "NearbyFakeTestApp",
java_resource_dirs: ["config"],
libs: [
"android-support-annotations",
"services.core",
],
static_libs: [
"androidx.test.core",
"androidx.core_core",
"androidx.annotation_annotation",
"androidx.legacy_legacy-support-v4",
"androidx.recyclerview_recyclerview",
"androidx.preference_preference",
"androidx.appcompat_appcompat",
"androidx.lifecycle_lifecycle-runtime",
"androidx.mediarouter_mediarouter-nodeps",
"error_prone_annotations",
"service-nearby-pre-jarjar",
"truth-prebuilt",
"robolectric_android-all-stub",
],
test_options: {
// timeout in seconds.
timeout: 36000,
},
upstream: true,
}