OLD | NEW |
---|---|
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 Loading... | |
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 content::BackgroundFetchClient* TestBrowserContext::GetBackgroundFetchClient() { | |
Peter Beverloo
2017/03/29 14:32:13
drop content::
harkness
2017/03/30 12:42:36
Done.
| |
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 Loading... | |
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 |
OLD | NEW |