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 |