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

Unified Diff: content/browser/background_fetch/background_fetch_test_base.h

Issue 2782553007: Implement the new polling system in the BackgroundFetchJobController (Closed)
Patch Set: Implement the new polling system in the BFJobController Created 3 years, 9 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/background_fetch/background_fetch_request_info.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/background_fetch/background_fetch_test_base.h
diff --git a/content/browser/background_fetch/background_fetch_test_base.h b/content/browser/background_fetch/background_fetch_test_base.h
index 88cb48aaabbf1d6e542b5270b13b82b25989c0e0..0deb518152ce045f2a1cda5341b87419472234d5 100644
--- a/content/browser/background_fetch/background_fetch_test_base.h
+++ b/content/browser/background_fetch/background_fetch_test_base.h
@@ -12,6 +12,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "content/browser/background_fetch/background_fetch_embedded_worker_test_helper.h"
+#include "content/public/test/test_browser_context.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/origin.h"
@@ -47,11 +48,15 @@ class BackgroundFetchTestBase : public ::testing::Test {
return &embedded_worker_test_helper_;
}
+ // Returns the browser context that should be used for the tests.
+ BrowserContext* browser_context() { return &browser_context_; }
+
// Returns the origin that should be used for Background Fetch tests.
const url::Origin& origin() const { return origin_; }
private:
TestBrowserThreadBundle thread_bundle_;
+ TestBrowserContext browser_context_;
BackgroundFetchEmbeddedWorkerTestHelper embedded_worker_test_helper_;
« no previous file with comments | « content/browser/background_fetch/background_fetch_request_info.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698