| # Copyright 2022 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") { |
| sources = [ |
| "touch_to_fill_payment_method_controller.h", |
| "touch_to_fill_payment_method_view.h", |
| "touch_to_fill_payment_method_view_controller.h", |
| ] |
| |
| deps = [ "//base" ] |
| } |
| |
| source_set("android") { |
| sources = [ |
| "touch_to_fill_payment_method_view_impl.cc", |
| "touch_to_fill_payment_method_view_impl.h", |
| ] |
| |
| public_deps = [ "//base" ] |
| |
| deps = [ |
| ":public", |
| "//chrome/android:chrome_jni_headers", |
| "//chrome/browser/autofill", |
| "//chrome/browser/profiles", |
| "//components/autofill/android:main_autofill_jni_headers", |
| "//components/autofill/android:payments_autofill_cc", |
| "//components/autofill/android:payments_jni_headers", |
| "//components/autofill/core/common:features", |
| "//content/public/browser", |
| "//third_party/libaddressinput:util", |
| "//ui/android", |
| ] |
| } |
| |
| source_set("test_support") { |
| testonly = true |
| sources = [ |
| "mock_touch_to_fill_payment_method_controller.cc", |
| "mock_touch_to_fill_payment_method_controller.h", |
| ] |
| |
| public_deps = [ |
| ":public", |
| "//base", |
| "//components/autofill/core/browser:test_support", |
| ] |
| |
| deps = [ |
| ":android", |
| "//testing/gmock", |
| "//testing/gtest", |
| ] |
| } |
| |
| android_library("public_java") { |
| deps = [ |
| "//chrome/browser/autofill/android:java", |
| "//chrome/browser/touch_to_fill/common/android:java", |
| "//components/browser_ui/bottomsheet/android:java", |
| "//third_party/androidx:androidx_annotation_annotation_java", |
| "//third_party/jni_zero:jni_zero_java", |
| "//ui/android:ui_java", |
| ] |
| |
| sources = [ "java/src/org/chromium/chrome/browser/touch_to_fill/payments/TouchToFillPaymentMethodComponent.java" ] |
| } |