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 static_library("content") { |
8 sources = [ | |
9 "payment_request.mojom", | |
10 ] | |
11 } | |
12 | |
13 mojom("payment_app") { | |
14 sources = [ | |
15 "payment_app.mojom", | |
16 ] | |
17 | |
18 public_deps = [ | |
19 ":payment_request", | |
20 "//url/mojo:url_mojom_gurl", | |
21 ] | |
22 } | |
23 | |
24 static_library("payment_request_impl") { | |
25 sources = [ | 8 sources = [ |
26 "payment_request.cc", | 9 "payment_request.cc", |
27 "payment_request.h", | 10 "payment_request.h", |
28 "payment_request_delegate.h", | 11 "payment_request_delegate.h", |
29 "payment_request_dialog.h", | 12 "payment_request_dialog.h", |
30 "payment_request_spec.cc", | 13 "payment_request_spec.cc", |
31 "payment_request_spec.h", | 14 "payment_request_spec.h", |
32 "payment_request_state.cc", | 15 "payment_request_state.cc", |
33 "payment_request_state.h", | 16 "payment_request_state.h", |
34 "payment_request_web_contents_manager.cc", | 17 "payment_request_web_contents_manager.cc", |
35 "payment_request_web_contents_manager.h", | 18 "payment_request_web_contents_manager.h", |
36 ] | 19 ] |
37 | 20 |
38 deps = [ | 21 deps = [ |
39 ":payment_request", | 22 ":mojom", |
40 ":payment_validation", | 23 ":utils", |
41 "//components/autofill/core/browser", | 24 "//components/autofill/core/browser", |
42 "//components/payments/core", | 25 "//components/payments/core", |
43 "//content/public/browser", | 26 "//content/public/browser", |
44 "//mojo/public/cpp/bindings", | 27 "//mojo/public/cpp/bindings", |
45 ] | 28 ] |
46 } | 29 } |
47 | 30 |
48 static_library("payment_validation") { | 31 mojom("mojom") { |
| 32 sources = [ |
| 33 "payment_request.mojom", |
| 34 ] |
| 35 } |
| 36 |
| 37 mojom("mojom_parser") { |
| 38 sources = [ |
| 39 "payment_manifest_parser.mojom", |
| 40 ] |
| 41 } |
| 42 |
| 43 mojom("mojom_payment_app") { |
| 44 sources = [ |
| 45 "payment_app.mojom", |
| 46 ] |
| 47 |
| 48 public_deps = [ |
| 49 ":mojom", |
| 50 "//url/mojo:url_mojom_gurl", |
| 51 ] |
| 52 } |
| 53 |
| 54 static_library("utils") { |
49 sources = [ | 55 sources = [ |
50 "payment_details_validation.cc", | 56 "payment_details_validation.cc", |
51 "payment_details_validation.h", | 57 "payment_details_validation.h", |
| 58 "payment_manifest_downloader.cc", |
| 59 "payment_manifest_downloader.h", |
| 60 "payment_manifest_parser_host.cc", |
| 61 "payment_manifest_parser_host.h", |
52 "payments_validators.cc", | 62 "payments_validators.cc", |
53 "payments_validators.h", | 63 "payments_validators.h", |
54 ] | 64 ] |
55 | 65 |
56 deps = [ | 66 deps = [ |
57 ":payment_request", | 67 ":mojom", |
| 68 ":mojom_parser", |
58 "//base", | 69 "//base", |
59 "//components/autofill/core/browser", | 70 "//components/autofill/core/browser", |
| 71 "//components/data_use_measurement/core", |
| 72 "//components/link_header_util", |
60 "//components/payments/core", | 73 "//components/payments/core", |
| 74 "//components/strings", |
| 75 "//content/public/browser", |
| 76 "//net", |
61 "//third_party/re2", | 77 "//third_party/re2", |
| 78 "//ui/base", |
62 "//url", | 79 "//url", |
63 ] | 80 ] |
64 | 81 |
65 public_deps = [ | 82 public_deps = [ |
66 "//third_party/icu", | 83 "//third_party/icu", |
67 "//third_party/libaddressinput", | 84 "//third_party/libaddressinput", |
68 ] | 85 ] |
69 } | 86 } |
70 | 87 |
71 source_set("unit_tests") { | 88 source_set("unit_tests") { |
72 testonly = true | 89 testonly = true |
73 sources = [ | 90 sources = [ |
| 91 "payment_manifest_downloader_unittest.cc", |
74 "payment_request_spec_unittest.cc", | 92 "payment_request_spec_unittest.cc", |
75 "payment_request_state_unittest.cc", | 93 "payment_request_state_unittest.cc", |
76 "payments_validators_unittest.cc", | 94 "payments_validators_unittest.cc", |
77 ] | 95 ] |
78 | 96 |
79 deps = [ | 97 deps = [ |
80 ":payment_request", | 98 ":content", |
81 ":payment_request_impl", | 99 ":mojom", |
82 ":payment_validation", | 100 ":utils", |
83 "//base", | 101 "//base", |
84 "//base/test:test_support", | 102 "//base/test:test_support", |
85 "//components/autofill/core/browser", | 103 "//components/autofill/core/browser", |
86 "//components/autofill/core/browser:test_support", | 104 "//components/autofill/core/browser:test_support", |
| 105 "//content/test:test_support", |
| 106 "//net:test_support", |
87 "//testing/gtest", | 107 "//testing/gtest", |
88 "//third_party/icu", | 108 "//third_party/icu", |
89 "//third_party/libaddressinput:test_support", | 109 "//third_party/libaddressinput:test_support", |
90 ] | 110 ] |
91 } | 111 } |
OLD | NEW |