summaryrefslogtreecommitdiff
path: root/chromium/components/payments/content/BUILD.gn
blob: c856ae90c145a7cebed475784ed91ede0331dbc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

static_library("content") {
  sources = [
    "can_make_payment_query_factory.cc",
    "can_make_payment_query_factory.h",
    "payment_request.cc",
    "payment_request.h",
    "payment_request_dialog.h",
    "payment_request_spec.cc",
    "payment_request_spec.h",
    "payment_request_state.cc",
    "payment_request_state.h",
    "payment_request_web_contents_manager.cc",
    "payment_request_web_contents_manager.h",
    "payment_response_helper.cc",
    "payment_response_helper.h",
  ]

  deps = [
    ":utils",
    "//components/autofill/core/browser",
    "//components/keyed_service/content",
    "//components/payments/core",
    "//components/prefs",
    "//components/strings:components_strings_grit",
    "//content/public/browser",
    "//mojo/public/cpp/bindings",
    "//third_party/WebKit/public:blink_headers",
    "//third_party/libphonenumber",
  ]
}

static_library("utils") {
  sources = [
    "origin_security_checker.cc",
    "origin_security_checker.h",
    "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 = [
    "//base",
    "//components/autofill/core/browser",
    "//components/data_use_measurement/core",
    "//components/link_header_util",
    "//components/payments/core",
    "//components/payments/mojom:mojom_parser",
    "//components/strings",
    "//content/public/browser",
    "//net",
    "//third_party/WebKit/public:blink_headers",
    "//third_party/re2",
    "//ui/base",
    "//url",
  ]

  public_deps = [
    "//third_party/icu",
    "//third_party/libaddressinput",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "payment_manifest_downloader_unittest.cc",
    "payment_request_spec_unittest.cc",
    "payment_request_state_unittest.cc",
    "payment_response_helper_unittest.cc",
    "payments_validators_unittest.cc",
  ]

  deps = [
    ":content",
    ":utils",
    "//base",
    "//base/test:test_support",
    "//components/autofill/core/browser",
    "//components/autofill/core/browser:test_support",
    "//components/payments/core",
    "//components/payments/core:test_support",
    "//components/strings:components_strings_grit",
    "//content/test:test_support",
    "//net:test_support",
    "//testing/gtest",
    "//third_party/WebKit/public:blink_headers",
    "//third_party/icu",
    "//third_party/libaddressinput:test_support",
  ]
}