# 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")
source_set("public") {
deps = [
":android",
"//base",
"//chrome/browser/autofill:autofill",
"//chrome/browser/keyboard_accessory/android:public",
"//chrome/browser/password_manager/android:utils",
"//components/password_manager/content/browser:browser",
"//components/password_manager/core/browser:browser",
"//components/prefs:prefs",
"//content/public/browser",
]
sources = [
"touch_to_fill_password_generation_controller.cc",
"touch_to_fill_password_generation_controller.h",
]
}
source_set("android") {
sources = [
"touch_to_fill_password_generation_bridge.h",
"touch_to_fill_password_generation_bridge_impl.cc",
"touch_to_fill_password_generation_bridge_impl.h",
"touch_to_fill_password_generation_delegate.h",
]
deps = [
"//chrome/browser/touch_to_fill/password_manager/password_generation/android/internal:jni",
"//components/password_manager/core/common:features",
"//components/prefs:prefs",
"//content/public/browser",
"//ui/android:android",
"//ui/gfx:native_widget_types",
]
}
source_set("test_support") {
testonly = true
deps = [
":android",
"//base",
"//content/public/browser:browser",
"//testing/gmock",
"//ui/gfx:native_widget_types",
]
sources = [
"fake_touch_to_fill_password_generation_bridge.cc",
"fake_touch_to_fill_password_generation_bridge.h",
"mock_touch_to_fill_password_generation_bridge.cc",
"mock_touch_to_fill_password_generation_bridge.h",
]
}
source_set("unit_tests") {
testonly = true
deps = [
":public",
":test_support",
"//base",
"//chrome/browser/keyboard_accessory/test_utils/android",
"//chrome/browser/password_manager/android:utils",
"//chrome/test:test_support",
"//components/password_manager/content/browser:browser",
"//content/test:test_support",
]
sources = [ "touch_to_fill_password_generation_controller_unittest.cc" ]
}
android_library("test_support_java") {
testonly = true
resources_package =
"org.chromium.chrome.browser.touch_to_fill.password_generation"
sources = [ "java/src/org/chromium/chrome/browser/touch_to_fill/password_generation/TouchToFillPasswordGenerationTestHelper.java" ]
deps = [
"//base:base_java",
"//chrome/browser/touch_to_fill/password_manager/password_generation/android/internal:java_resources",
"//content/public/test/android:content_java_test_support",
"//third_party/hamcrest:hamcrest_java",
]
}