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

Side by Side Diff: chrome/test/base/testing_browser_process.cc

Issue 10386223: Renaming poorly named classes and adding missing unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undo rename of Dispatcher Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/base/testing_browser_process.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/test/base/testing_browser_process.h" 5 #include "chrome/test/base/testing_browser_process.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "chrome/browser/notifications/notification_ui_manager.h" 8 #include "chrome/browser/notifications/notification_ui_manager.h"
9 #include "chrome/browser/policy/browser_policy_connector.h" 9 #include "chrome/browser/policy/browser_policy_connector.h"
10 #include "chrome/browser/policy/policy_service_impl.h" 10 #include "chrome/browser/policy/policy_service_impl.h"
11 #include "chrome/browser/policy/policy_service_stub.h" 11 #include "chrome/browser/policy/policy_service_stub.h"
12 #include "chrome/browser/prefs/pref_service.h" 12 #include "chrome/browser/prefs/pref_service.h"
13 #include "chrome/browser/prerender/prerender_tracker.h" 13 #include "chrome/browser/prerender/prerender_render_view_tracker.h"
14 #include "chrome/browser/printing/background_printing_manager.h" 14 #include "chrome/browser/printing/background_printing_manager.h"
15 #include "chrome/browser/printing/print_preview_tab_controller.h" 15 #include "chrome/browser/printing/print_preview_tab_controller.h"
16 #include "chrome/browser/profiles/profile_manager.h" 16 #include "chrome/browser/profiles/profile_manager.h"
17 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 17 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
18 #include "content/public/browser/notification_service.h" 18 #include "content/public/browser/notification_service.h"
19 #include "net/url_request/url_request_context_getter.h" 19 #include "net/url_request/url_request_context_getter.h"
20 #include "ui/base/clipboard/clipboard.h" 20 #include "ui/base/clipboard/clipboard.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 22
23 TestingBrowserProcess::TestingBrowserProcess() 23 TestingBrowserProcess::TestingBrowserProcess()
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 } 226 }
227 227
228 bool TestingBrowserProcess::plugin_finder_disabled() const { 228 bool TestingBrowserProcess::plugin_finder_disabled() const {
229 return false; 229 return false;
230 } 230 }
231 231
232 ChromeNetLog* TestingBrowserProcess::net_log() { 232 ChromeNetLog* TestingBrowserProcess::net_log() {
233 return NULL; 233 return NULL;
234 } 234 }
235 235
236 prerender::PrerenderTracker* TestingBrowserProcess::prerender_tracker() { 236 prerender::PrerenderRenderViewTracker*
237 if (!prerender_tracker_.get()) 237 TestingBrowserProcess::prerender_render_view_tracker() {
238 prerender_tracker_.reset(new prerender::PrerenderTracker()); 238 if (!prerender_render_view_tracker_.get()) {
239 return prerender_tracker_.get(); 239 prerender_render_view_tracker_.reset(
240 new prerender::PrerenderRenderViewTracker());
241 }
242 return prerender_render_view_tracker_.get();
240 } 243 }
241 244
242 ComponentUpdateService* TestingBrowserProcess::component_updater() { 245 ComponentUpdateService* TestingBrowserProcess::component_updater() {
243 return NULL; 246 return NULL;
244 } 247 }
245 248
246 CRLSetFetcher* TestingBrowserProcess::crl_set_fetcher() { 249 CRLSetFetcher* TestingBrowserProcess::crl_set_fetcher() {
247 return NULL; 250 return NULL;
248 } 251 }
249 252
250 void TestingBrowserProcess::SetLocalState(PrefService* local_state) { 253 void TestingBrowserProcess::SetLocalState(PrefService* local_state) {
251 if (!local_state && notification_ui_manager_.get()) 254 if (!local_state && notification_ui_manager_.get())
252 notification_ui_manager_.reset(); // Used local_state_. 255 notification_ui_manager_.reset(); // Used local_state_.
253 local_state_ = local_state; 256 local_state_ = local_state;
254 } 257 }
255 258
256 void TestingBrowserProcess::SetIOThread(IOThread* io_thread) { 259 void TestingBrowserProcess::SetIOThread(IOThread* io_thread) {
257 io_thread_ = io_thread; 260 io_thread_ = io_thread;
258 } 261 }
259 262
260 void TestingBrowserProcess::SetBrowserPolicyConnector( 263 void TestingBrowserProcess::SetBrowserPolicyConnector(
261 policy::BrowserPolicyConnector* connector) { 264 policy::BrowserPolicyConnector* connector) {
262 browser_policy_connector_.reset(connector); 265 browser_policy_connector_.reset(connector);
263 } 266 }
264 267
265 void TestingBrowserProcess::SetSafeBrowsingService( 268 void TestingBrowserProcess::SetSafeBrowsingService(
266 SafeBrowsingService* sb_service) { 269 SafeBrowsingService* sb_service) {
267 sb_service_ = sb_service; 270 sb_service_ = sb_service;
268 } 271 }
OLDNEW
« no previous file with comments | « chrome/test/base/testing_browser_process.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698