| Index: components/payments/content/BUILD.gn
|
| diff --git a/components/payments/content/BUILD.gn b/components/payments/content/BUILD.gn
|
| index bc33a0f821d7edb38cf18300593cd7cc690fdc5b..7fd84def140469121f1d5e5e1f26402f120e2b0d 100644
|
| --- a/components/payments/content/BUILD.gn
|
| +++ b/components/payments/content/BUILD.gn
|
| @@ -4,24 +4,7 @@
|
|
|
| import("//mojo/public/tools/bindings/mojom.gni")
|
|
|
| -mojom("payment_request") {
|
| - sources = [
|
| - "payment_request.mojom",
|
| - ]
|
| -}
|
| -
|
| -mojom("payment_app") {
|
| - sources = [
|
| - "payment_app.mojom",
|
| - ]
|
| -
|
| - public_deps = [
|
| - ":payment_request",
|
| - "//url/mojo:url_mojom_gurl",
|
| - ]
|
| -}
|
| -
|
| -static_library("payment_request_impl") {
|
| +static_library("content") {
|
| sources = [
|
| "payment_request.cc",
|
| "payment_request.h",
|
| @@ -36,8 +19,8 @@ static_library("payment_request_impl") {
|
| ]
|
|
|
| deps = [
|
| - ":payment_request",
|
| - ":payment_validation",
|
| + ":mojom",
|
| + ":utils",
|
| "//components/autofill/core/browser",
|
| "//components/payments/core",
|
| "//content/public/browser",
|
| @@ -45,20 +28,54 @@ static_library("payment_request_impl") {
|
| ]
|
| }
|
|
|
| -static_library("payment_validation") {
|
| +mojom("mojom") {
|
| + sources = [
|
| + "payment_request.mojom",
|
| + ]
|
| +}
|
| +
|
| +mojom("mojom_parser") {
|
| + sources = [
|
| + "payment_manifest_parser.mojom",
|
| + ]
|
| +}
|
| +
|
| +mojom("mojom_payment_app") {
|
| + sources = [
|
| + "payment_app.mojom",
|
| + ]
|
| +
|
| + public_deps = [
|
| + ":mojom",
|
| + "//url/mojo:url_mojom_gurl",
|
| + ]
|
| +}
|
| +
|
| +static_library("utils") {
|
| sources = [
|
| "payment_details_validation.cc",
|
| "payment_details_validation.h",
|
| + "payment_manifest_downloader.cc",
|
| + "payment_manifest_downloader.h",
|
| + "payment_manifest_parser_host.cc",
|
| + "payment_manifest_parser_host.h",
|
| "payments_validators.cc",
|
| "payments_validators.h",
|
| ]
|
|
|
| deps = [
|
| - ":payment_request",
|
| + ":mojom",
|
| + ":mojom_parser",
|
| "//base",
|
| "//components/autofill/core/browser",
|
| + "//components/data_use_measurement/core",
|
| + "//components/link_header_util",
|
| "//components/payments/core",
|
| + "//components/strings",
|
| + "//content/public/browser",
|
| + "//net",
|
| "//third_party/re2",
|
| + "//ui/base",
|
| "//url",
|
| ]
|
|
|
| @@ -71,19 +88,22 @@ static_library("payment_validation") {
|
| source_set("unit_tests") {
|
| testonly = true
|
| sources = [
|
| + "payment_manifest_downloader_unittest.cc",
|
| "payment_request_spec_unittest.cc",
|
| "payment_request_state_unittest.cc",
|
| "payments_validators_unittest.cc",
|
| ]
|
|
|
| deps = [
|
| - ":payment_request",
|
| - ":payment_request_impl",
|
| - ":payment_validation",
|
| + ":content",
|
| + ":mojom",
|
| + ":utils",
|
| "//base",
|
| "//base/test:test_support",
|
| "//components/autofill/core/browser",
|
| "//components/autofill/core/browser:test_support",
|
| + "//content/test:test_support",
|
| + "//net:test_support",
|
| "//testing/gtest",
|
| "//third_party/icu",
|
| "//third_party/libaddressinput:test_support",
|
|
|