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

Side by Side Diff: content/public/test/test_browser_context.cc

Issue 2777063008: Connect BackgroundFetch to the OfflineItemCollection
Patch Set: Fixed incognito check and added tests Created 3 years, 8 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/test_browser_context.h" 5 #include "content/public/test/test_browser_context.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/test/null_task_runner.h" 10 #include "base/test/null_task_runner.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 SSLHostStateDelegate* TestBrowserContext::GetSSLHostStateDelegate() { 113 SSLHostStateDelegate* TestBrowserContext::GetSSLHostStateDelegate() {
114 if (!ssl_host_state_delegate_) 114 if (!ssl_host_state_delegate_)
115 ssl_host_state_delegate_.reset(new MockSSLHostStateDelegate()); 115 ssl_host_state_delegate_.reset(new MockSSLHostStateDelegate());
116 return ssl_host_state_delegate_.get(); 116 return ssl_host_state_delegate_.get();
117 } 117 }
118 118
119 PermissionManager* TestBrowserContext::GetPermissionManager() { 119 PermissionManager* TestBrowserContext::GetPermissionManager() {
120 return permission_manager_.get(); 120 return permission_manager_.get();
121 } 121 }
122 122
123 BackgroundFetchClient* TestBrowserContext::GetBackgroundFetchClient() {
124 return nullptr;
125 }
126
123 BackgroundSyncController* TestBrowserContext::GetBackgroundSyncController() { 127 BackgroundSyncController* TestBrowserContext::GetBackgroundSyncController() {
124 if (!background_sync_controller_) 128 if (!background_sync_controller_)
125 background_sync_controller_.reset(new MockBackgroundSyncController()); 129 background_sync_controller_.reset(new MockBackgroundSyncController());
126 130
127 return background_sync_controller_.get(); 131 return background_sync_controller_.get();
128 } 132 }
129 133
130 net::URLRequestContextGetter* TestBrowserContext::CreateRequestContext( 134 net::URLRequestContextGetter* TestBrowserContext::CreateRequestContext(
131 content::ProtocolHandlerMap* protocol_handlers, 135 content::ProtocolHandlerMap* protocol_handlers,
132 content::URLRequestInterceptorScopedVector request_interceptors) { 136 content::URLRequestInterceptorScopedVector request_interceptors) {
(...skipping 14 matching lines...) Expand all
147 } 151 }
148 152
149 net::URLRequestContextGetter* 153 net::URLRequestContextGetter*
150 TestBrowserContext::CreateMediaRequestContextForStoragePartition( 154 TestBrowserContext::CreateMediaRequestContextForStoragePartition(
151 const base::FilePath& partition_path, 155 const base::FilePath& partition_path,
152 bool in_memory) { 156 bool in_memory) {
153 return NULL; 157 return NULL;
154 } 158 }
155 159
156 } // namespace content 160 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698