| 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 |
| 17 static_library("payment_validation") { |
| 18 sources = [ |
| 19 "payment_details_validation.cc", |
| 20 "payment_details_validation.h", |
| 21 "payments_validators.cc", |
| 22 "payments_validators.h", |
| 23 ] |
| 24 |
| 25 deps = [ |
| 26 ":payment_request", |
| 27 "//base", |
| 28 "//third_party/re2:re2", |
| 29 "//url:url", |
| 30 ] |
| 31 } |
| 32 |
| 33 static_library("unit_tests") { |
| 34 testonly = true |
| 35 sources = [ |
| 36 "payments_validators_test.cc", |
| 37 ] |
| 38 |
| 39 deps = [ |
| 40 ":payment_validation", |
| 41 "//testing/gtest", |
| 42 ] |
| 43 } |
| OLD | NEW |