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); |