naiveproxy/components/payments/core/BUILD.gn

242 lines
10 KiB
Plaintext
Raw Normal View History

2018-02-02 13:49:39 +03:00
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
static_library("core") {
sources = [
"autofill_payment_instrument.cc",
"autofill_payment_instrument.h",
"basic_card_response.cc",
"basic_card_response.h",
"can_make_payment_query.cc",
"can_make_payment_query.h",
"currency_formatter.cc",
"currency_formatter.h",
"features.cc",
"features.h",
"journey_logger.cc",
"journey_logger.h",
"payment_address.cc",
"payment_address.h",
"payment_currency_amount.cc",
"payment_currency_amount.h",
"payment_details.cc",
"payment_details.h",
"payment_details_modifier.cc",
"payment_details_modifier.h",
"payment_details_validation.cc",
"payment_details_validation.h",
"payment_instrument.cc",
"payment_instrument.h",
"payment_item.cc",
"payment_item.h",
"payment_manifest_downloader.cc",
"payment_manifest_downloader.h",
"payment_method_data.cc",
"payment_method_data.h",
"payment_options.cc",
"payment_options.h",
"payment_options_provider.h",
"payment_prefs.cc",
"payment_prefs.h",
"payment_request_base_delegate.h",
"payment_request_data_util.cc",
"payment_request_data_util.h",
"payment_request_delegate.h",
"payment_response.cc",
"payment_response.h",
"payment_shipping_option.cc",
"payment_shipping_option.h",
"payments_profile_comparator.cc",
"payments_profile_comparator.h",
"payments_validators.cc",
"payments_validators.h",
"strings_util.cc",
"strings_util.h",
"web_payment_request.cc",
"web_payment_request.h",
]
deps = [
"//base",
"//components/autofill/core/browser",
"//components/data_use_measurement/core",
"//components/keyed_service/core",
"//components/link_header_util",
"//components/pref_registry",
"//components/strings:components_strings_grit",
"//net",
"//services/metrics/public/cpp:metrics_cpp",
"//services/metrics/public/cpp:ukm_builders",
"//third_party/re2",
"//ui/base",
"//url",
]
public_deps = [
"//third_party/icu",
"//third_party/libaddressinput",
]
}
static_library("test_support") {
testonly = true
sources = [
"payments_test_util.cc",
"payments_test_util.h",
"test_payment_manifest_downloader.cc",
"test_payment_manifest_downloader.h",
"test_payment_request_delegate.cc",
"test_payment_request_delegate.h",
]
deps = [
":core",
"//base",
"//components/autofill/core/browser",
"//components/autofill/core/browser:test_support",
"//components/pref_registry",
"//components/prefs",
"//net:test_support",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"autofill_payment_instrument_unittest.cc",
"basic_card_response_unittest.cc",
"can_make_payment_query_unittest.cc",
"currency_formatter_unittest.cc",
"journey_logger_unittest.cc",
"payment_address_unittest.cc",
"payment_currency_amount_unittest.cc",
"payment_details_modifier_unittest.cc",
"payment_details_unittest.cc",
"payment_details_validation_unittest.cc",
"payment_item_unittest.cc",
"payment_manifest_downloader_unittest.cc",
"payment_method_data_unittest.cc",
"payment_options_unittest.cc",
"payment_request_data_util_unittest.cc",
"payment_response_unittest.cc",
"payment_shipping_option_unittest.cc",
"payments_profile_comparator_unittest.cc",
"payments_validators_unittest.cc",
"strings_util_unittest.cc",
"web_payment_request_unittest.cc",
]
deps = [
":core",
":test_support",
"//base",
"//base/test:test_support",
"//components/autofill/core/browser",
"//components/autofill/core/browser:test_support",
"//components/strings:components_strings_grit",
"//components/ukm",
"//components/ukm:test_support",
"//net:test_support",
"//services/metrics/public/cpp:ukm_builders",
"//testing/gmock",
"//testing/gtest",
"//third_party/libaddressinput:test_support",
"//ui/base",
]
}
if (is_ios) {
bundle_data("payments_test_bundle_data") {
testonly = true
sources = [
"//components/test/data/payments/abort.js",
"//components/test/data/payments/alicepay_bobpay_charliepay_and_cards.js",
"//components/test/data/payments/blob_url.js",
"//components/test/data/payments/bobpay.js",
"//components/test/data/payments/bobpay_and_basic_card_with_modifier_optional_data.js",
"//components/test/data/payments/bobpay_and_basic_card_with_modifiers.js",
"//components/test/data/payments/bobpay_and_cards.js",
"//components/test/data/payments/bobpay_ui_skip.js",
"//components/test/data/payments/bobpay_ui_skip_preload.js",
"//components/test/data/payments/can_make_payment_metrics.js",
"//components/test/data/payments/can_make_payment_query.js",
"//components/test/data/payments/can_make_payment_query_bobpay.js",
"//components/test/data/payments/can_make_payment_query_cc.js",
"//components/test/data/payments/contact_details.js",
"//components/test/data/payments/contact_details_and_free_shipping.js",
"//components/test/data/payments/debit.js",
"//components/test/data/payments/dynamic_shipping.js",
"//components/test/data/payments/email.js",
"//components/test/data/payments/email_and_free_shipping.js",
"//components/test/data/payments/email_and_phone.js",
"//components/test/data/payments/extra_shipping_options.js",
"//components/test/data/payments/fail_complete.js",
"//components/test/data/payments/free_shipping.js",
"//components/test/data/payments/initiated.js",
"//components/test/data/payments/initiated_test.html",
"//components/test/data/payments/long_id.js",
"//components/test/data/payments/metrics.js",
"//components/test/data/payments/modifier.js",
"//components/test/data/payments/multiple_show.js",
"//components/test/data/payments/name.js",
"//components/test/data/payments/name_and_free_shipping.js",
"//components/test/data/payments/no_shipping.js",
"//components/test/data/payments/payment_method_identifier.js",
"//components/test/data/payments/payment_request.html",
"//components/test/data/payments/payment_request.js",
"//components/test/data/payments/payment_request_abort_test.html",
"//components/test/data/payments/payment_request_alicepay_bobpay_charliepay_and_cards_test.html",
"//components/test/data/payments/payment_request_blob_url_test.html",
"//components/test/data/payments/payment_request_bobpay_and_basic_card_with_modifier_optional_data_test.html",
"//components/test/data/payments/payment_request_bobpay_and_basic_card_with_modifiers_test.html",
"//components/test/data/payments/payment_request_bobpay_and_cards_test.html",
"//components/test/data/payments/payment_request_bobpay_test.html",
"//components/test/data/payments/payment_request_bobpay_ui_skip_preload_test.html",
"//components/test/data/payments/payment_request_bobpay_ui_skip_test.html",
"//components/test/data/payments/payment_request_can_make_payment_metrics_test.html",
"//components/test/data/payments/payment_request_can_make_payment_query_bobpay_test.html",
"//components/test/data/payments/payment_request_can_make_payment_query_cc_test.html",
"//components/test/data/payments/payment_request_can_make_payment_query_test.html",
"//components/test/data/payments/payment_request_contact_details_and_free_shipping_test.html",
"//components/test/data/payments/payment_request_contact_details_test.html",
"//components/test/data/payments/payment_request_debit_test.html",
"//components/test/data/payments/payment_request_dynamic_shipping_test.html",
"//components/test/data/payments/payment_request_email_and_free_shipping_test.html",
"//components/test/data/payments/payment_request_email_and_phone_test.html",
"//components/test/data/payments/payment_request_email_test.html",
"//components/test/data/payments/payment_request_extra_shipping_options_test.html",
"//components/test/data/payments/payment_request_fail_complete_test.html",
"//components/test/data/payments/payment_request_free_shipping_test.html",
"//components/test/data/payments/payment_request_id.js",
"//components/test/data/payments/payment_request_id_test.html",
"//components/test/data/payments/payment_request_iframe.html",
"//components/test/data/payments/payment_request_long_id_test.html",
"//components/test/data/payments/payment_request_main.html",
"//components/test/data/payments/payment_request_metrics_test.html",
"//components/test/data/payments/payment_request_modifier_test.html",
"//components/test/data/payments/payment_request_multiple_requests.html",
"//components/test/data/payments/payment_request_multiple_show_test.html",
"//components/test/data/payments/payment_request_name_and_free_shipping_test.html",
"//components/test/data/payments/payment_request_name_test.html",
"//components/test/data/payments/payment_request_no_shipping_test.html",
"//components/test/data/payments/payment_request_payment_method_identifier_test.html",
"//components/test/data/payments/payment_request_phone_and_free_shipping_test.html",
"//components/test/data/payments/payment_request_phone_test.html",
"//components/test/data/payments/payment_request_shipping_address_change_test.html",
"//components/test/data/payments/payment_request_show_twice_test.html",
"//components/test/data/payments/phone.js",
"//components/test/data/payments/phone_and_free_shipping.js",
"//components/test/data/payments/shipping_address_change.js",
"//components/test/data/payments/show_twice.js",
"//components/test/data/payments/style.css",
"//components/test/data/payments/util.js",
]
outputs = [
"{{bundle_resources_dir}}/" +
"{{source_root_relative_dir}}/{{source_file_part}}",
]
}
}