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

Unified Diff: content/browser/background_sync/background_sync_service_impl_unittest.cc

Issue 1445603003: Extension SW - add test for ServiceWorkerRegistration.sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move background_sync_test_util to content namespace Created 5 years, 1 month 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_sync/background_sync_manager_unittest.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/background_sync/background_sync_service_impl_unittest.cc
diff --git a/content/browser/background_sync/background_sync_service_impl_unittest.cc b/content/browser/background_sync/background_sync_service_impl_unittest.cc
index 916c4cb4ad79b2accce719bfe868d5dc7a5c9439..c43937e57d5ab788c85221f04d6eb7349d74f221 100644
--- a/content/browser/background_sync/background_sync_service_impl_unittest.cc
+++ b/content/browser/background_sync/background_sync_service_impl_unittest.cc
@@ -15,6 +15,7 @@
#include "content/browser/service_worker/embedded_worker_test_helper.h"
#include "content/browser/service_worker/service_worker_context_wrapper.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/test/background_sync_test_util.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "mojo/public/cpp/bindings/interface_ptr.h"
#include "net/base/network_change_notifier.h"
@@ -108,7 +109,7 @@ class BackgroundSyncServiceImplTest : public testing::Test {
void SetUp() override {
// Don't let the tests be confused by the real-world device connectivity
- BackgroundSyncNetworkObserver::SetIgnoreNetworkChangeNotifierForTests(true);
+ background_sync_test_util::SetIgnoreNetworkChangeNotifier(true);
CreateTestHelper();
CreateBackgroundSyncContext();
@@ -125,8 +126,7 @@ class BackgroundSyncServiceImplTest : public testing::Test {
background_sync_context_ = nullptr;
// Restore the network observer functionality for subsequent tests
- BackgroundSyncNetworkObserver::SetIgnoreNetworkChangeNotifierForTests(
- false);
+ background_sync_test_util::SetIgnoreNetworkChangeNotifier(false);
}
// SetUp helper methods
« no previous file with comments | « content/browser/background_sync/background_sync_manager_unittest.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698