| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/public/test/background_sync_test_util.h" | 5 #include "content/public/test/background_sync_test_util.h" |
| 6 | 6 |
| 7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
| 8 #include "base/task_runner_util.h" | 8 #include "base/task_runner_util.h" |
| 9 #include "content/browser/background_sync/background_sync_manager.h" | 9 #include "content/browser/background_sync/background_sync_manager.h" |
| 10 #include "content/browser/background_sync/background_sync_network_observer.h" | 10 #include "content/browser/background_sync/background_sync_network_observer.h" |
| 11 #include "content/browser/background_sync/background_sync_registration_handle.h" | |
| 12 #include "content/public/browser/background_sync_context.h" | 11 #include "content/public/browser/background_sync_context.h" |
| 13 #include "content/public/browser/browser_context.h" | 12 #include "content/public/browser/browser_context.h" |
| 14 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
| 15 #include "content/public/browser/storage_partition.h" | 14 #include "content/public/browser/storage_partition.h" |
| 16 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
| 17 #include "net/base/network_change_notifier.h" | 16 #include "net/base/network_change_notifier.h" |
| 18 | 17 |
| 19 namespace content { | 18 namespace content { |
| 20 namespace background_sync_test_util { | 19 namespace background_sync_test_util { |
| 21 | 20 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 base::Bind(&SetOnlineOnIOThread, | 56 base::Bind(&SetOnlineOnIOThread, |
| 58 base::Unretained(GetStoragePartition(web_contents) | 57 base::Unretained(GetStoragePartition(web_contents) |
| 59 ->GetBackgroundSyncContext()), | 58 ->GetBackgroundSyncContext()), |
| 60 online)); | 59 online)); |
| 61 base::RunLoop().RunUntilIdle(); | 60 base::RunLoop().RunUntilIdle(); |
| 62 } | 61 } |
| 63 | 62 |
| 64 } // namespace background_sync_test_util | 63 } // namespace background_sync_test_util |
| 65 | 64 |
| 66 } // namespace content | 65 } // namespace content |
| OLD | NEW |