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/notifications/notification_ui_manager.h" | 9 #include "chrome/browser/notifications/notification_ui_manager.h" |
10 #include "chrome/browser/policy/browser_policy_connector.h" | 10 #include "chrome/browser/policy/browser_policy_connector.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 module_ref_count_(0), | 23 module_ref_count_(0), |
24 app_locale_("en"), | 24 app_locale_("en"), |
25 local_state_(NULL), | 25 local_state_(NULL), |
26 io_thread_(NULL) { | 26 io_thread_(NULL) { |
27 } | 27 } |
28 | 28 |
29 TestingBrowserProcess::~TestingBrowserProcess() { | 29 TestingBrowserProcess::~TestingBrowserProcess() { |
30 EXPECT_FALSE(local_state_); | 30 EXPECT_FALSE(local_state_); |
31 } | 31 } |
32 | 32 |
| 33 void TestingBrowserProcess::ResourceDispatcherHostCreated() { |
| 34 } |
| 35 |
33 void TestingBrowserProcess::EndSession() { | 36 void TestingBrowserProcess::EndSession() { |
34 } | 37 } |
35 | 38 |
36 ResourceDispatcherHost* TestingBrowserProcess::resource_dispatcher_host() { | |
37 return NULL; | |
38 } | |
39 | |
40 MetricsService* TestingBrowserProcess::metrics_service() { | 39 MetricsService* TestingBrowserProcess::metrics_service() { |
41 return NULL; | 40 return NULL; |
42 } | 41 } |
43 | 42 |
44 IOThread* TestingBrowserProcess::io_thread() { | 43 IOThread* TestingBrowserProcess::io_thread() { |
45 return io_thread_; | 44 return io_thread_; |
46 } | 45 } |
47 | 46 |
48 WatchDogThread* TestingBrowserProcess::watchdog_thread() { | 47 WatchDogThread* TestingBrowserProcess::watchdog_thread() { |
49 return NULL; | 48 return NULL; |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 } | 239 } |
241 | 240 |
242 void TestingBrowserProcess::SetIOThread(IOThread* io_thread) { | 241 void TestingBrowserProcess::SetIOThread(IOThread* io_thread) { |
243 io_thread_ = io_thread; | 242 io_thread_ = io_thread; |
244 } | 243 } |
245 | 244 |
246 void TestingBrowserProcess::SetBrowserPolicyConnector( | 245 void TestingBrowserProcess::SetBrowserPolicyConnector( |
247 policy::BrowserPolicyConnector* connector) { | 246 policy::BrowserPolicyConnector* connector) { |
248 browser_policy_connector_.reset(connector); | 247 browser_policy_connector_.reset(connector); |
249 } | 248 } |
OLD | NEW |