| 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 "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/google/google_url_tracker.h" | 8 #include "chrome/browser/google/google_url_tracker.h" |
| 9 #include "chrome/browser/metrics/metrics_service.h" |
| 9 #include "chrome/browser/notifications/notification_ui_manager.h" | 10 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 10 #include "chrome/browser/policy/browser_policy_connector.h" | 11 #include "chrome/browser/policy/browser_policy_connector.h" |
| 11 #include "chrome/browser/policy/policy_service_stub.h" | 12 #include "chrome/browser/policy/policy_service_stub.h" |
| 12 #include "chrome/browser/prefs/pref_service.h" | 13 #include "chrome/browser/prefs/pref_service.h" |
| 13 #include "chrome/browser/prerender/prerender_tracker.h" | 14 #include "chrome/browser/prerender/prerender_tracker.h" |
| 14 #include "chrome/browser/printing/background_printing_manager.h" | 15 #include "chrome/browser/printing/background_printing_manager.h" |
| 15 #include "chrome/browser/printing/print_preview_tab_controller.h" | 16 #include "chrome/browser/printing/print_preview_tab_controller.h" |
| 16 #include "chrome/browser/profiles/profile_manager.h" | 17 #include "chrome/browser/profiles/profile_manager.h" |
| 17 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 18 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
| 18 #include "content/public/browser/notification_service.h" | 19 #include "content/public/browser/notification_service.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 32 EXPECT_FALSE(local_state_); | 33 EXPECT_FALSE(local_state_); |
| 33 } | 34 } |
| 34 | 35 |
| 35 void TestingBrowserProcess::ResourceDispatcherHostCreated() { | 36 void TestingBrowserProcess::ResourceDispatcherHostCreated() { |
| 36 } | 37 } |
| 37 | 38 |
| 38 void TestingBrowserProcess::EndSession() { | 39 void TestingBrowserProcess::EndSession() { |
| 39 } | 40 } |
| 40 | 41 |
| 41 MetricsService* TestingBrowserProcess::metrics_service() { | 42 MetricsService* TestingBrowserProcess::metrics_service() { |
| 42 return NULL; | 43 return metrics_service_.get(); |
| 43 } | 44 } |
| 44 | 45 |
| 45 IOThread* TestingBrowserProcess::io_thread() { | 46 IOThread* TestingBrowserProcess::io_thread() { |
| 46 return io_thread_; | 47 return io_thread_; |
| 47 } | 48 } |
| 48 | 49 |
| 49 WatchDogThread* TestingBrowserProcess::watchdog_thread() { | 50 WatchDogThread* TestingBrowserProcess::watchdog_thread() { |
| 50 return NULL; | 51 return NULL; |
| 51 } | 52 } |
| 52 | 53 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 | 249 |
| 249 void TestingBrowserProcess::SetBrowserPolicyConnector( | 250 void TestingBrowserProcess::SetBrowserPolicyConnector( |
| 250 policy::BrowserPolicyConnector* connector) { | 251 policy::BrowserPolicyConnector* connector) { |
| 251 browser_policy_connector_.reset(connector); | 252 browser_policy_connector_.reset(connector); |
| 252 } | 253 } |
| 253 | 254 |
| 254 void TestingBrowserProcess::SetSafeBrowsingService( | 255 void TestingBrowserProcess::SetSafeBrowsingService( |
| 255 SafeBrowsingService* sb_service) { | 256 SafeBrowsingService* sb_service) { |
| 256 sb_service_ = sb_service; | 257 sb_service_ = sb_service; |
| 257 } | 258 } |
| 259 |
| 260 void TestingBrowserProcess::SetMetricsService(MetricsService* service) { |
| 261 metrics_service_.reset(service); |
| 262 } |
| OLD | NEW |