Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 } // namespace content | |
|
Avi (use Gerrit)
2015/11/18 18:57:26
Why is this whole file not in namespace content?
lazyboy
2015/11/18 19:35:44
Moved under content namespace.
Done.
| |
| 11 | |
| 12 // Utility namespace for background sync tests. | |
| 13 namespace background_sync_test_util { | |
| 14 | |
| 15 // Enables or disables notifications coming from the NetworkChangeNotifier. | |
| 16 // (For preventing flakes in tests) | |
| 17 void SetIgnoreNetworkChangeNotifier(bool ignore); | |
| 18 | |
| 19 // Puts background sync manager into online or offline mode for tests. | |
| 20 // | |
| 21 // This eventually (asynchronously) runs on the IO thread. However you can | |
| 22 // start performing background sync operations without waiting for the IO | |
| 23 // thread task to complete, since those background sync operations also run | |
| 24 // on the IO thread. | |
| 25 void SetOnline(content::WebContents* web_contents, bool online); | |
| 26 | |
| 27 } // namespace background_sync_test_util | |
| 28 | |
| 29 #endif // CONTENT_PUBLIC_TEST_BACKGROUND_SYNC_TEST_UTILS_H_ | |
| OLD | NEW |