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

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

Issue 2609103002: PaymentApp: Add PaymentAppProvider class. (Closed)
Patch Set: Remove override keyword 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
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/payments/payment_app_content_unittest_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/payments/payment_app_content_unittest_base.h
diff --git a/content/browser/payments/payment_app_content_unittest_base.h b/content/browser/payments/payment_app_content_unittest_base.h
index 3e4413a2784363f36add910a21b445f91c6ef0b7..b0d9ce9ea2a0d09dc854484355361c74057f1df2 100644
--- a/content/browser/payments/payment_app_content_unittest_base.h
+++ b/content/browser/payments/payment_app_content_unittest_base.h
@@ -18,6 +18,7 @@
namespace content {
+class BrowserContext;
class EmbeddedWorkerTestHelper;
class PaymentAppContextImpl;
class StoragePartitionImpl;
@@ -28,9 +29,7 @@ class PaymentAppContentUnitTestBase : public testing::Test {
PaymentAppContentUnitTestBase();
~PaymentAppContentUnitTestBase() override;
- PaymentAppContextImpl* payment_app_context() const {
- return payment_app_context_.get();
- }
+ BrowserContext* browser_context();
PaymentAppManager* CreatePaymentAppManager(const GURL& scope_url,
const GURL& sw_script_url);
void SetManifest(PaymentAppManager* manager,
@@ -43,10 +42,11 @@ class PaymentAppContentUnitTestBase : public testing::Test {
void UnregisterServiceWorker(const GURL& scope_url);
private:
+ StoragePartitionImpl* storage_partition();
+ PaymentAppContextImpl* payment_app_context();
+
std::unique_ptr<TestBrowserThreadBundle> thread_bundle_;
std::unique_ptr<EmbeddedWorkerTestHelper> embedded_worker_helper_;
- std::unique_ptr<StoragePartitionImpl> storage_partition_impl_;
- scoped_refptr<PaymentAppContextImpl> payment_app_context_;
std::vector<payments::mojom::PaymentAppManagerPtr> payment_app_managers_;
DISALLOW_COPY_AND_ASSIGN(PaymentAppContentUnitTestBase);
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/payments/payment_app_content_unittest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698