| 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 "//mojo/common:common_custom_types", | 23 "//mojo/common:common_custom_types", |
| 24 ] | 24 ] |
| 25 } | 25 } |
| 26 | 26 |
| 27 # TODO(crbug.com/679381): Create a layered component to that we can remove the |
| 28 # iOS check here (iOS strict DEPS checker doesn't like the //content dependency |
| 29 # below). |
| 30 if (!is_ios) { |
| 31 static_library("payment_request_impl") { |
| 32 sources = [ |
| 33 "payment_request.cc", |
| 34 "payment_request.h", |
| 35 "payment_request_delegate.h", |
| 36 "payment_request_web_contents_manager.cc", |
| 37 "payment_request_web_contents_manager.h", |
| 38 ] |
| 39 |
| 40 deps = [ |
| 41 ":payment_request", |
| 42 ":payment_validation", |
| 43 "//content/public/browser", |
| 44 "//mojo/public/cpp/bindings", |
| 45 ] |
| 46 } |
| 47 } |
| 48 |
| 27 static_library("payment_validation") { | 49 static_library("payment_validation") { |
| 28 sources = [ | 50 sources = [ |
| 29 "payment_details_validation.cc", | 51 "payment_details_validation.cc", |
| 30 "payment_details_validation.h", | 52 "payment_details_validation.h", |
| 31 "payments_validators.cc", | 53 "payments_validators.cc", |
| 32 "payments_validators.h", | 54 "payments_validators.h", |
| 33 ] | 55 ] |
| 34 | 56 |
| 35 deps = [ | 57 deps = [ |
| 36 ":payment_request", | 58 ":payment_request", |
| 37 "//base", | 59 "//base", |
| 38 "//third_party/re2:re2", | 60 "//third_party/re2:re2", |
| 39 "//url:url", | 61 "//url:url", |
| 40 ] | 62 ] |
| 41 } | 63 } |
| 42 | 64 |
| 43 static_library("unit_tests") { | 65 static_library("unit_tests") { |
| 44 testonly = true | 66 testonly = true |
| 45 sources = [ | 67 sources = [ |
| 46 "payments_validators_test.cc", | 68 "payments_validators_test.cc", |
| 47 ] | 69 ] |
| 48 | 70 |
| 49 deps = [ | 71 deps = [ |
| 50 ":payment_validation", | 72 ":payment_validation", |
| 51 "//testing/gtest", | 73 "//testing/gtest", |
| 52 ] | 74 ] |
| 53 } | 75 } |
| OLD | NEW |