# Copyright 2020 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") {
deps = [
":java_resources",
"//base:base_java",
"//base/version_info/android:version_constants_java",
"//chrome/browser/flags:java",
"//chrome/browser/password_manager/android:java",
"//chrome/browser/password_manager/android:java_resources",
"//chrome/browser/password_manager/android:password_manager_resource_provider_java",
"//chrome/browser/preferences:java",
"//chrome/browser/profiles/android:java",
"//chrome/browser/settings:factory_java",
"//chrome/browser/signin/services/android:java",
"//chrome/browser/sync/android:java",
"//chrome/browser/ui/android/signin:java",
"//components/browser_ui/bottomsheet/android:java",
"//components/browser_ui/settings/android:java",
"//components/browser_ui/widget/android:java",
"//components/password_manager/core/browser:password_manager_java_enums",
"//components/prefs/android:java",
"//components/signin/public/android:java",
"//components/sync/android:sync_java",
"//components/user_prefs/android:java",
"//content/public/android:content_java",
"//third_party/android_deps/utils:java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_appcompat_appcompat_java",
"//third_party/androidx:androidx_appcompat_appcompat_resources_java",
"//third_party/androidx:androidx_fragment_fragment_java",
"//third_party/jni_zero:jni_zero_java",
"//ui/android:ui_java",
]
srcjar_deps = [
"//chrome/browser/password_manager/android/buildflags:buildflags_srcjar",
]
sources = [
"java/src/org/chromium/chrome/browser/pwd_migration/ExportDeletionDialogFragment.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PasswordMigrationWarningCoordinator.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PasswordMigrationWarningIntroFragment.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PasswordMigrationWarningMediator.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PasswordMigrationWarningOnClickHandler.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PasswordMigrationWarningOptionsFragment.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PasswordMigrationWarningProperties.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PasswordMigrationWarningUtil.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PasswordMigrationWarningView.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PasswordMigrationWarningViewBinder.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PostPasswordMigrationSheetCoordinator.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PostPasswordMigrationSheetCoordinatorFactory.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PostPasswordMigrationSheetMediator.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PostPasswordMigrationSheetProperties.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PostPasswordMigrationSheetView.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PostPasswordMigrationSheetViewBinder.java",
"java/src/org/chromium/chrome/browser/pwd_migration/ScrollablePasswordMigrationWarningContent.java",
]
resources_package = "org.chromium.chrome.browser.pwd_migration"
}
robolectric_library("junit") {
testonly = true
sources = [
"java/src/org/chromium/chrome/browser/pwd_migration/PasswordMigrationWarningMediatorTest.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PostPasswordMigrationSheetCoordinatorFactoryTest.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PostPasswordMigrationSheetMediatorTest.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PostPasswordMigrationSheetModuleTest.java",
]
deps = [
":java",
"//base:base_java",
"//base:base_java_test_support",
"//base:base_junit_test_support",
"//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/browser/sync/android:java",
"//chrome/browser/ui/android/signin:java",
"//chrome/test/android:chrome_java_integration_test_support",
"//chrome/test/android:chrome_java_test_support_common",
"//components/browser_ui/bottomsheet/android:java",
"//components/browser_ui/bottomsheet/android/test:java",
"//components/password_manager/core/browser:password_manager_java_enums",
"//components/prefs/android:java",
"//components/signin/public/android:java",
"//components/signin/public/android:signin_java_test_support",
"//components/sync/android:sync_java",
"//components/user_prefs/android:java",
"//content/public/android:content_java",
"//third_party/androidx:androidx_fragment_fragment_java",
"//third_party/androidx:androidx_test_espresso_espresso_core_java",
"//third_party/hamcrest:hamcrest_library_java",
"//third_party/jni_zero:jni_zero_java",
"//third_party/junit:junit",
"//third_party/mockito:mockito_java",
"//ui/android:ui_java",
]
srcjar_deps = [
"//chrome/browser/password_manager/android/buildflags:buildflags_srcjar",
]
}
android_library("javatests") {
testonly = true
resources_package = "org.chromium.chrome.browser.pwd_migration"
# Consult izuzic@ before adding more tests to this target.
# This target will exist only temporary.
sources = [
"java/src/org/chromium/chrome/browser/pwd_migration/PasswordMigrationWarningRenderTest.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PasswordMigrationWarningViewTest.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PostPasswordMigrationSheetRenderTest.java",
"java/src/org/chromium/chrome/browser/pwd_migration/PostPasswordMigrationSheetViewTest.java",
]
deps = [
":java",
":java_resources",
"//base:base_java",
"//base:base_java_test_support",
"//chrome/android:chrome_java",
"//chrome/browser/flags:java",
"//chrome/browser/password_manager/android:java",
"//chrome/browser/password_manager/android:java_resources",
"//chrome/browser/profiles/android:java",
"//chrome/browser/signin/services/android:java",
"//chrome/browser/ui/android/night_mode:night_mode_java_test_support",
"//chrome/test/android:chrome_java_integration_test_support",
"//chrome/test/android:chrome_java_test_support_common",
"//components/browser_ui/bottomsheet/android:java",
"//components/browser_ui/bottomsheet/android:manager_java",
"//components/browser_ui/bottomsheet/android/test: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_fragment_fragment_java",
"//third_party/androidx:androidx_test_core_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/hamcrest:hamcrest_java",
"//third_party/hamcrest:hamcrest_library_java",
"//third_party/junit:junit",
"//third_party/mockito:mockito_java",
"//ui/android:ui_java",
"//ui/android:ui_java_test_support",
]
}
android_resources("java_resources") {
deps = [
"//components/browser_ui/widget/android:java_resources",
"//ui/android:ui_java_resources",
]
sources = [
"java/res/layout/post_pwd_migration_sheet.xml",
"java/res/layout/pwd_migration_warning.xml",
"java/res/layout/pwd_migration_warning_intro_fragment.xml",
"java/res/layout/pwd_migration_warning_options.xml",
"java/res/values/dimens.xml",
]
}