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

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

Issue 2875493003: PaymentHandler: Remove PaymentAppManifest and PaymentAppOption. (Closed)
Patch Set: global-interface-listing Created 3 years, 7 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: 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 2584f344789a94953c91e6ca94bd18d2d436d260..1ce3175e55c712d10a8d155d3607a68ae5aaf137 100644
--- a/content/browser/payments/payment_app_content_unittest_base.cc
+++ b/content/browser/payments/payment_app_content_unittest_base.cc
@@ -151,42 +151,6 @@ PaymentManager* PaymentAppContentUnitTestBase::CreatePaymentManager(
return nullptr;
}
-void PaymentAppContentUnitTestBase::SetManifest(
- PaymentManager* manager,
- payments::mojom::PaymentAppManifestPtr manifest,
- PaymentManager::SetManifestCallback callback) {
- ASSERT_NE(nullptr, manager);
- manager->SetManifest(std::move(manifest), std::move(callback));
- base::RunLoop().RunUntilIdle();
-}
-
-void PaymentAppContentUnitTestBase::GetManifest(
- PaymentManager* manager,
- PaymentManager::GetManifestCallback callback) {
- ASSERT_NE(nullptr, manager);
- manager->GetManifest(std::move(callback));
- 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;
-}
-
void PaymentAppContentUnitTestBase::UnregisterServiceWorker(
const GURL& scope_url) {
// Unregister service worker.
« no previous file with comments | « content/browser/payments/payment_app_content_unittest_base.h ('k') | content/browser/payments/payment_app_context_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698