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

Side by Side Diff: content/public/test/background_sync_test_util.h

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 unified diff | Download patch
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/test/background_sync_test_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_TEST_BACKGROUND_SYNC_TEST_UTILS_H_
6 #define CONTENT_PUBLIC_TEST_BACKGROUND_SYNC_TEST_UTILS_H_
7
8 namespace content {
9 class WebContents;
10
11 // Utility namespace for background sync tests.
12 namespace background_sync_test_util {
13
14 // Enables or disables notifications coming from the NetworkChangeNotifier.
15 // (For preventing flakes in tests)
16 void SetIgnoreNetworkChangeNotifier(bool ignore);
17
18 // Puts background sync manager into online or offline mode for tests.
19 //
20 // This eventually (asynchronously) runs on the IO thread. However you can
21 // start performing background sync operations without waiting for the IO
22 // thread task to complete, since those background sync operations also run
23 // on the IO thread.
24 void SetOnline(WebContents* web_contents, bool online);
25
26 } // namespace background_sync_test_util
27
28 } // namespace content
29
30 #endif // CONTENT_PUBLIC_TEST_BACKGROUND_SYNC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/test/background_sync_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698