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

Unified Diff: content/browser/payments/payment_app_content_unittest_base.cc

Issue 2585303002: PaymentApp: Fix params order of EXPECT/ASSERTs in unit tests. (Closed)
Patch Set: PaymentApp: Fix params order of EXPECT/ASSERTs in unit tests. Created 4 years 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: content/browser/payments/payment_app_content_unittest_base.cc
diff --git a/content/browser/payments/payment_app_content_unittest_base.cc b/content/browser/payments/payment_app_content_unittest_base.cc
index c0c581b2a53fc7a0a986169515d1d6a9a031d220..4d95eee40ef74e803f468d03d14a8a76df25d5e7 100644
--- a/content/browser/payments/payment_app_content_unittest_base.cc
+++ b/content/browser/payments/payment_app_content_unittest_base.cc
@@ -115,4 +115,23 @@ void PaymentAppContentUnitTestBase::GetManifest(
base::RunLoop().RunUntilIdle();
}
+payments::mojom::PaymentAppManifestPtr
+PaymentAppContentUnitTestBase::CreatePaymentAppManifestForTest(
+ const std::string& name) {
+ payments::mojom::PaymentAppOptionPtr option =
+ payments::mojom::PaymentAppOption::New();
+ option->name = "Visa ****";
+ option->id = "payment-app-id";
+ option->icon = std::string("payment-app-icon");
+ option->enabled_methods.push_back("visa");
+
+ payments::mojom::PaymentAppManifestPtr manifest =
+ payments::mojom::PaymentAppManifest::New();
+ manifest->icon = std::string("payment-app-icon");
+ manifest->name = name;
+ manifest->options.push_back(std::move(option));
+
+ return manifest;
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698