# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
android_library("java") {
sources = [
"java/src/org/chromium/chrome/browser/ui/device_lock/DeviceLockCoordinator.java",
"java/src/org/chromium/chrome/browser/ui/device_lock/DeviceLockMediator.java",
"java/src/org/chromium/chrome/browser/ui/device_lock/DeviceLockProperties.java",
"java/src/org/chromium/chrome/browser/ui/device_lock/DeviceLockUtils.java",
"java/src/org/chromium/chrome/browser/ui/device_lock/DeviceLockView.java",
"java/src/org/chromium/chrome/browser/ui/device_lock/DeviceLockViewBinder.java",
"java/src/org/chromium/chrome/browser/ui/device_lock/MissingDeviceLockCoordinator.java",
"java/src/org/chromium/chrome/browser/ui/device_lock/MissingDeviceLockLauncher.java",
"java/src/org/chromium/chrome/browser/ui/device_lock/MissingDeviceLockMediator.java",
"java/src/org/chromium/chrome/browser/ui/device_lock/MissingDeviceLockProperties.java",
"java/src/org/chromium/chrome/browser/ui/device_lock/MissingDeviceLockView.java",
"java/src/org/chromium/chrome/browser/ui/device_lock/MissingDeviceLockViewBinder.java",
]
deps = [
":java_resources",
"//base:base_java",
"//chrome/browser/android/lifecycle:java",
"//chrome/browser/autofill/android:java",
"//chrome/browser/device_reauth/android:java",
"//chrome/browser/flags:java",
"//chrome/browser/password_manager/android:java",
"//chrome/browser/preferences:java",
"//chrome/browser/profiles/android:java",
"//chrome/browser/signin/services/android:java",
"//components/browser_ui/device_lock/android:java",
"//components/browser_ui/widget/android:java",
"//components/device_reauth:device_reauth_java_enums",
"//components/signin/public/android:java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_appcompat_appcompat_resources_java",
"//ui/android:ui_java",
]
resources_package = "org.chromium.chrome.browser.ui.device_lock"
}
android_library("javatests") {
testonly = true
resources_package = "org.chromium.chrome.browser.ui.device_lock"
sources = [
"javatests/src/org/chromium/chrome/browser/ui/device_lock/DeviceLockCoordinatorTest.java",
"javatests/src/org/chromium/chrome/browser/ui/device_lock/DeviceLockViewBinderTest.java",
"javatests/src/org/chromium/chrome/browser/ui/device_lock/MissingDeviceLockCoordinatorTest.java",
"javatests/src/org/chromium/chrome/browser/ui/device_lock/MissingDeviceLockLauncherTest.java",
"javatests/src/org/chromium/chrome/browser/ui/device_lock/MissingDeviceLockViewBinderTest.java",
]
deps = [
":java",
":java_resources",
"//base:base_java",
"//base:base_java_test_support",
"//chrome/android:chrome_java",
"//chrome/browser/autofill/android:java",
"//chrome/browser/device_reauth/android:java",
"//chrome/browser/flags:java",
"//chrome/browser/password_manager/android:java",
"//chrome/browser/preferences:java",
"//chrome/browser/profiles/android:java",
"//chrome/browser/signin/services/android:java",
"//chrome/test/android:chrome_java_unit_test_support",
"//components/browser_ui/device_lock/android:java",
"//components/browser_ui/widget/android:java",
"//components/signin/public/android:java",
"//content/public/test/android:content_java_test_support",
"//third_party/android_deps:espresso_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_test_monitor_java",
"//third_party/androidx:androidx_test_rules_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/hamcrest:hamcrest_java",
"//third_party/junit",
"//third_party/mockito:mockito_java",
"//ui/android:ui_full_java",
"//ui/android:ui_java_test_support",
]
}
robolectric_library("junit") {
resources_package = "org.chromium.chrome.browser.ui.device_lock"
sources = [
"junit/src/org/chromium/chrome/browser/ui/device_lock/DeviceLockMediatorUnitTest.java",
"junit/src/org/chromium/chrome/browser/ui/device_lock/MissingDeviceLockMediatorUnitTest.java",
]
deps = [
":java",
":java_resources",
"//base:base_java",
"//base:base_java_test_support",
"//base:base_junit_test_support",
"//chrome/android:chrome_java",
"//chrome/browser/device_reauth/android:java",
"//chrome/browser/flags:java",
"//chrome/browser/preferences:java",
"//chrome/test/android:chrome_java_test_support_common",
"//components/browser_ui/device_lock/android:java",
"//components/signin/public/android:java",
"//content/public/android:content_full_java",
"//content/public/test/android:content_java_test_support",
"//third_party/androidx:androidx_constraintlayout_constraintlayout_java",
"//third_party/androidx:androidx_lifecycle_lifecycle_common_java",
"//third_party/androidx:androidx_test_core_java",
"//third_party/androidx:androidx_test_ext_junit_java",
"//third_party/androidx:androidx_test_monitor_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/junit:junit",
"//third_party/mockito:mockito_java",
"//ui/android:ui_java_test_support",
"//ui/android:ui_no_recycler_view_java",
]
}
android_resources("java_resources") {
sources = [
"java/res/drawable/device_lock_alert_illustration.xml",
"java/res/drawable/missing_device_lock_illustration.xml",
"java/res/drawable/rounded_corner_card.xml",
"java/res/layout/device_lock_view.xml",
"java/res/layout/missing_device_lock_view.xml",
"java/res/values-night/colors.xml",
"java/res/values/colors.xml",
]
deps = [
"//chrome/browser/ui/android/strings:ui_strings_grd",
"//components/browser_ui/strings/android:browser_ui_strings_grd",
"//components/browser_ui/styles/android:java_resources",
"//ui/android:ui_java_resources",
]
}