# 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")
import("//third_party/jni_zero/jni_zero.gni")
generate_jni("jni") {
sources = [
"java/src/org/chromium/chrome/browser/touch_to_fill/payments/TouchToFillPaymentMethodControllerBridge.java",
"java/src/org/chromium/chrome/browser/touch_to_fill/payments/TouchToFillPaymentMethodViewBridge.java",
]
}
android_library("java") {
deps = [
":java_resources",
"//base:base_java",
"//build/android:build_java",
"//chrome/android:chrome_app_java_resources",
"//chrome/browser/autofill/android:java",
"//chrome/browser/flags:java",
"//chrome/browser/profiles/android:java",
"//chrome/browser/touch_to_fill/autofill/android:public_java",
"//chrome/browser/touch_to_fill/common/android:java",
"//chrome/browser/touch_to_fill/common/android:java_resources",
"//chrome/browser/touch_to_fill/password_manager/android/internal:java",
"//components/browser_ui/bottomsheet/android:java",
"//components/payments/content/android:java",
"//components/payments/content/android:minimal_java_resources",
"//content/public/android:content_full_java",
"//third_party/android_deps:guava_android_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_appcompat_appcompat_resources_java",
"//third_party/androidx:androidx_core_core_java",
"//third_party/androidx:androidx_recyclerview_recyclerview_java",
"//third_party/jni_zero:jni_zero_java",
"//ui/android:ui_java",
"//ui/android:ui_java_resources",
"//url:gurl_java",
]
srcjar_deps = [ ":jni" ]
sources = [
"java/src/org/chromium/chrome/browser/touch_to_fill/payments/TouchToFillPaymentMethodControllerBridge.java",
"java/src/org/chromium/chrome/browser/touch_to_fill/payments/TouchToFillPaymentMethodCoordinator.java",
"java/src/org/chromium/chrome/browser/touch_to_fill/payments/TouchToFillPaymentMethodMediator.java",
"java/src/org/chromium/chrome/browser/touch_to_fill/payments/TouchToFillPaymentMethodProperties.java",
"java/src/org/chromium/chrome/browser/touch_to_fill/payments/TouchToFillPaymentMethodView.java",
"java/src/org/chromium/chrome/browser/touch_to_fill/payments/TouchToFillPaymentMethodViewBinder.java",
"java/src/org/chromium/chrome/browser/touch_to_fill/payments/TouchToFillPaymentMethodViewBridge.java",
]
resources_package = "org.chromium.chrome.browser.touch_to_fill.payments"
}
android_resources("java_resources") {
sources = [
"java/res/layout/touch_to_fill_credit_card_sheet_item.xml",
"java/res/layout/touch_to_fill_iban_sheet_item.xml",
"java/res/layout/touch_to_fill_payment_method_footer_item.xml",
"java/res/layout/touch_to_fill_payment_method_header_item.xml",
"java/res/values/dimens.xml",
]
}
robolectric_library("junit") {
testonly = true
resources_package = "org.chromium.chrome.browser.touch_to_fill.payments"
sources = [ "java/src/org/chromium/chrome/browser/touch_to_fill/payments/TouchToFillPaymentMethodControllerRobolectricTest.java" ]
deps = [
":java",
":java_resources",
"//base:base_java",
"//base:base_java_test_support",
"//base:base_junit_test_support",
"//chrome/browser/autofill/android:java",
"//chrome/browser/autofill/test:test_support_java",
"//chrome/browser/profiles/android:java",
"//chrome/browser/touch_to_fill/autofill/android:public_java",
"//chrome/browser/touch_to_fill/common/android:java",
"//chrome/browser/touch_to_fill/common/android:java_resources",
"//chrome/test/android:chrome_java_unit_test_support",
"//components/autofill/android:autofill_features_java",
"//components/browser_ui/bottomsheet/android:java",
"//components/payments/content/android:java",
"//components/payments/content/android:payments_java_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("javatests") {
testonly = true
resources_package = "org.chromium.chrome.browser.touch_to_fill.payments"
sources = [
"java/src/org/chromium/chrome/browser/touch_to_fill/payments/TouchToFillPaymentMethodRenderTest.java",
"java/src/org/chromium/chrome/browser/touch_to_fill/payments/TouchToFillPaymentMethodViewTest.java",
]
deps = [
":java",
":java_resources",
"//base:base_java",
"//base:base_java_test_support",
"//chrome/android:chrome_app_java_resources",
"//chrome/android:chrome_java",
"//chrome/browser/autofill/android:java",
"//chrome/browser/autofill/test:test_support_java",
"//chrome/browser/flags:java",
"//chrome/browser/touch_to_fill/autofill/android:public_java",
"//chrome/browser/touch_to_fill/common/android:java",
"//chrome/browser/touch_to_fill/common/android:java_resources",
"//chrome/browser/ui/android/night_mode:night_mode_java_test_support",
"//chrome/browser/util:java",
"//chrome/test/android:chrome_java_integration_test_support",
"//components/autofill/android:autofill_java_resources",
"//components/autofill/android:autofill_payments_java_resources",
"//components/autofill/android:main_autofill_java",
"//components/browser_ui/bottomsheet/android:java",
"//components/browser_ui/bottomsheet/android:java_resources",
"//components/browser_ui/bottomsheet/android:manager_java",
"//components/browser_ui/bottomsheet/android/test:java",
"//components/strings:components_strings_grd",
"//content/public/test/android:content_java_test_support",
"//third_party/android_deps:espresso_java",
"//third_party/androidx:androidx_recyclerview_recyclerview_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/accessibility:ax_base_java",
"//ui/android:ui_java_test_support",
"//ui/android:ui_no_recycler_view_java",
]
}