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