| OLD | NEW |
| (Empty) |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import("//mojo/public/tools/bindings/mojom.gni") | |
| 6 | |
| 7 mojom("payment_request") { | |
| 8 sources = [ | |
| 9 "payment_request.mojom", | |
| 10 ] | |
| 11 | |
| 12 public_deps = [ | |
| 13 "//mojo/common:common_custom_types", | |
| 14 ] | |
| 15 } | |
| 16 | |
| 17 mojom("payment_app") { | |
| 18 sources = [ | |
| 19 "payment_app.mojom", | |
| 20 ] | |
| 21 | |
| 22 public_deps = [ | |
| 23 ":payment_request", | |
| 24 "//mojo/common:common_custom_types", | |
| 25 "//url/mojo:url_mojom_gurl", | |
| 26 ] | |
| 27 } | |
| 28 | |
| 29 # TODO(crbug.com/679381): Create a layered component to that we can remove the | |
| 30 # iOS check here (iOS strict DEPS checker doesn't like the //content dependency | |
| 31 # below). | |
| 32 if (!is_ios) { | |
| 33 static_library("payment_request_impl") { | |
| 34 sources = [ | |
| 35 "payment_request.cc", | |
| 36 "payment_request.h", | |
| 37 "payment_request_delegate.h", | |
| 38 "payment_request_dialog.h", | |
| 39 "payment_request_web_contents_manager.cc", | |
| 40 "payment_request_web_contents_manager.h", | |
| 41 ] | |
| 42 | |
| 43 deps = [ | |
| 44 ":payment_request", | |
| 45 ":payment_validation", | |
| 46 "//components/autofill/core/browser", | |
| 47 "//content/public/browser", | |
| 48 "//mojo/public/cpp/bindings", | |
| 49 ] | |
| 50 } | |
| 51 } | |
| 52 | |
| 53 static_library("payment_validation") { | |
| 54 sources = [ | |
| 55 "address_normalizer.cc", | |
| 56 "address_normalizer.h", | |
| 57 "currency_formatter.cc", | |
| 58 "currency_formatter.h", | |
| 59 "payment_details_validation.cc", | |
| 60 "payment_details_validation.h", | |
| 61 "payments_validators.cc", | |
| 62 "payments_validators.h", | |
| 63 ] | |
| 64 | |
| 65 deps = [ | |
| 66 ":payment_request", | |
| 67 "//base", | |
| 68 "//components/autofill/core/browser", | |
| 69 "//third_party/re2:re2", | |
| 70 "//url:url", | |
| 71 ] | |
| 72 | |
| 73 public_deps = [ | |
| 74 "//third_party/icu:icu", | |
| 75 "//third_party/libaddressinput", | |
| 76 ] | |
| 77 } | |
| 78 | |
| 79 source_set("unit_tests") { | |
| 80 testonly = true | |
| 81 sources = [ | |
| 82 "address_normalizer_unittest.cc", | |
| 83 "currency_formatter_unittest.cc", | |
| 84 "payments_validators_test.cc", | |
| 85 ] | |
| 86 | |
| 87 deps = [ | |
| 88 ":payment_validation", | |
| 89 "//base", | |
| 90 "//base/test:test_support", | |
| 91 "//components/autofill/core/browser", | |
| 92 "//testing/gtest", | |
| 93 "//third_party/icu:icu", | |
| 94 "//third_party/libaddressinput:test_support", | |
| 95 ] | |
| 96 } | |
| OLD | NEW |