Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(450)

Unified Diff: components/payments/BUILD.gn

Issue 2645813006: Download web payment manifests. (Closed)
Patch Set: WIP Downloader tests - do not review Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/payments/BUILD.gn
diff --git a/components/payments/BUILD.gn b/components/payments/BUILD.gn
index a0bff0681aeebdeb398d804437957ac2ce1c4e93..fa424985a7c1c716922faa525a193f150c44160f 100644
--- a/components/payments/BUILD.gn
+++ b/components/payments/BUILD.gn
@@ -42,7 +42,7 @@ if (!is_ios) {
deps = [
":payment_request",
- ":payment_validation",
+ ":payment_utils",
"//components/autofill/core/browser",
"//content/public/browser",
"//mojo/public/cpp/bindings",
@@ -50,12 +50,14 @@ if (!is_ios) {
}
}
-static_library("payment_validation") {
+static_library("payment_utils") {
sources = [
"currency_formatter.cc",
"currency_formatter.h",
"payment_details_validation.cc",
"payment_details_validation.h",
+ "payment_manifest_downloader.cc",
+ "payment_manifest_downloader.h",
"payments_validators.cc",
"payments_validators.h",
]
@@ -63,6 +65,8 @@ static_library("payment_validation") {
deps = [
":payment_request",
"//base",
+ "//components/link_header_util",
+ "//net",
"//third_party/re2:re2",
"//url:url",
]
@@ -76,12 +80,14 @@ source_set("unit_tests") {
testonly = true
sources = [
"currency_formatter_unittest.cc",
+ "payment_manifest_downloader_test.cc",
"payments_validators_test.cc",
]
deps = [
- ":payment_validation",
+ ":payment_utils",
"//base",
+ "//testing/gmock",
"//testing/gtest",
"//third_party/icu:icu",
]

Powered by Google App Engine
This is Rietveld 408576698