OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/test/test_background_sync_manager.h" | 5 #include "content/test/test_background_sync_manager.h" |
6 | 6 |
7 #include "base/thread_task_runner_handle.h" | 7 #include "base/threading/thread_task_runner_handle.h" |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "content/browser/service_worker/service_worker_context_wrapper.h" | 9 #include "content/browser/service_worker/service_worker_context_wrapper.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 TestBackgroundSyncManager::TestBackgroundSyncManager( | 15 TestBackgroundSyncManager::TestBackgroundSyncManager( |
16 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context) | 16 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context) |
17 : BackgroundSyncManager(service_worker_context) {} | 17 : BackgroundSyncManager(service_worker_context) {} |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 } | 108 } |
109 | 109 |
110 void TestBackgroundSyncManager::GetDataFromBackendContinue( | 110 void TestBackgroundSyncManager::GetDataFromBackendContinue( |
111 const std::string& key, | 111 const std::string& key, |
112 const ServiceWorkerStorage::GetUserDataForAllRegistrationsCallback& | 112 const ServiceWorkerStorage::GetUserDataForAllRegistrationsCallback& |
113 callback) { | 113 callback) { |
114 BackgroundSyncManager::GetDataFromBackend(key, callback); | 114 BackgroundSyncManager::GetDataFromBackend(key, callback); |
115 } | 115 } |
116 | 116 |
117 } // namespace content | 117 } // namespace content |
OLD | NEW |