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

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

Issue 2560293002: PaymentApp: Introduce PaymentAppDatabase class. (Closed)
Patch Set: PaymentApp: Introduce PaymentAppDatabase class. 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_manager_unittest.cc
diff --git a/content/browser/payments/payment_app_manager_unittest.cc b/content/browser/payments/payment_app_manager_unittest.cc
index d29d395cee097c470bd026ca239f66565289143e..6f03f02ea28ae86671539f889b4e709f24f88636 100644
--- a/content/browser/payments/payment_app_manager_unittest.cc
+++ b/content/browser/payments/payment_app_manager_unittest.cc
@@ -62,12 +62,11 @@ class PaymentAppManagerTest : public testing::Test {
embedded_worker_helper_->browser_context(), base::FilePath(),
nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr)) {
-
embedded_worker_helper_->context_wrapper()->set_storage_partition(
storage_partition_impl_.get());
- payment_app_context_ =
- new PaymentAppContext(embedded_worker_helper_->context_wrapper());
+ payment_app_context_ = new PaymentAppContextImpl();
+ payment_app_context_->Init(embedded_worker_helper_->context_wrapper());
bool called = false;
embedded_worker_helper_->context()->RegisterServiceWorker(
@@ -109,7 +108,7 @@ class PaymentAppManagerTest : public testing::Test {
std::unique_ptr<EmbeddedWorkerTestHelper> embedded_worker_helper_;
std::unique_ptr<StoragePartitionImpl> storage_partition_impl_;
int64_t sw_registration_id_;
- scoped_refptr<PaymentAppContext> payment_app_context_;
+ scoped_refptr<PaymentAppContextImpl> payment_app_context_;
payments::mojom::PaymentAppManagerPtr service_;
// Owned by payment_app_context_.
« no previous file with comments | « content/browser/payments/payment_app_manager.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698