# Copyright 2021 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")
import("//third_party/jni_zero/jni_zero.gni")
source_set("android") {
sources = [
"password_edit_dialog_bridge.cc",
"password_edit_dialog_bridge.h",
"password_edit_dialog_bridge_delegate.h",
]
deps = [
":jni_headers",
"//base",
"//chrome/app:generated_resources",
"//content/public/browser",
"//ui/android:android",
]
}
android_library("java") {
srcjar_deps = [ ":jni_headers" ]
sources = [
"java/src/org/chromium/chrome/browser/password_edit_dialog/AutoCompleteTextViewNoAutofill.java",
"java/src/org/chromium/chrome/browser/password_edit_dialog/NoFilterArrayAdapter.java",
"java/src/org/chromium/chrome/browser/password_edit_dialog/PasswordEditDialogBridge.java",
"java/src/org/chromium/chrome/browser/password_edit_dialog/PasswordEditDialogCoordinator.java",
"java/src/org/chromium/chrome/browser/password_edit_dialog/PasswordEditDialogMediator.java",
"java/src/org/chromium/chrome/browser/password_edit_dialog/PasswordEditDialogProperties.java",
"java/src/org/chromium/chrome/browser/password_edit_dialog/PasswordEditDialogView.java",
"java/src/org/chromium/chrome/browser/password_edit_dialog/PasswordEditDialogViewBinder.java",
"java/src/org/chromium/chrome/browser/password_edit_dialog/TextInputEditTextNoAutofill.java",
]
deps = [
":java_resources",
"//base:base_java",
"//build/android:build_java",
"//chrome/browser/flags:java",
"//chrome/browser/password_manager/android:java",
"//chrome/browser/password_manager/android:java_resources",
"//components/browser_ui/strings/android:browser_ui_strings_grd",
"//third_party/android_deps:material_design_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/jni_zero:jni_zero_java",
"//ui/android:ui_no_recycler_view_java",
]
resources_package = "org.chromium.chrome.browser.password_edit_dialog"
}
generate_jni("jni_headers") {
sources = [ "java/src/org/chromium/chrome/browser/password_edit_dialog/PasswordEditDialogBridge.java" ]
}
android_resources("java_resources") {
sources = [
"java/res/drawable/dropdown_arrow_down.xml",
"java/res/layout/password_edit_dialog.xml",
"java/res/layout/password_edit_dialog_dropdown_item.xml",
"java/res/values/dimens.xml",
]
deps = [
"//chrome/app:java_strings_grd",
"//chrome/browser/ui/android/strings:ui_strings_grd",
]
}
robolectric_library("junit") {
resources_package = "org.chromium.chrome.browser.password_edit_dialog"
sources = [ "java/src/org/chromium/chrome/browser/password_edit_dialog/PasswordEditDialogControllerTest.java" ]
deps = [
":java",
":java_resources",
"//base:base_java",
"//base:base_java_test_support",
"//base:base_junit_test_support",
"//chrome/browser/flags:java",
"//chrome/test/android:chrome_java_unit_test_support",
"//third_party/android_deps:espresso_java",
"//third_party/hamcrest:hamcrest_java",
"//third_party/hamcrest:hamcrest_library_java",
"//third_party/junit",
"//third_party/mockito:mockito_java",
"//ui/android:ui_java_test_support",
"//ui/android:ui_no_recycler_view_java",
]
}
android_library("unit_device_javatests") {
resources_package = "org.chromium.chrome.browser.password_edit_dialog"
testonly = true
sources = [
"java/src/org/chromium/chrome/browser/password_edit_dialog/PasswordEditDialogRenderTest.java",
"java/src/org/chromium/chrome/browser/password_edit_dialog/PasswordEditDialogViewTest.java",
]
deps = [
":java",
":java_resources",
"//base:base_java",
"//base:base_java_test_support",
"//chrome/browser/flags:java",
"//chrome/browser/ui/android/night_mode:java",
"//chrome/test/android:chrome_java_integration_test_support",
"//components/browser_ui/theme/android:java_resources",
"//content/public/test/android:content_java_test_support",
"//third_party/android_deps:material_design_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/hamcrest:hamcrest_library_java",
"//third_party/junit",
"//ui/android:ui_java",
"//ui/android:ui_java_test_support",
]
}