OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/net/spdy_config_service_manager.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/prefs/pref_service.h" | 12 #include "chrome/browser/prefs/pref_service.h" |
12 #include "chrome/browser/prerender/prerender_tracker.h" | 13 #include "chrome/browser/prerender/prerender_tracker.h" |
13 #include "chrome/browser/printing/background_printing_manager.h" | 14 #include "chrome/browser/printing/background_printing_manager.h" |
14 #include "chrome/browser/profiles/profile_manager.h" | 15 #include "chrome/browser/profiles/profile_manager.h" |
15 #include "content/browser/debugger/devtools_manager.h" | 16 #include "content/browser/debugger/devtools_manager.h" |
16 #include "net/url_request/url_request_context_getter.h" | 17 #include "net/url_request/url_request_context_getter.h" |
17 #include "ui/base/clipboard/clipboard.h" | 18 #include "ui/base/clipboard/clipboard.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 } | 72 } |
72 | 73 |
73 void TestingBrowserProcess::SetProfileManager(ProfileManager* profile_manager) { | 74 void TestingBrowserProcess::SetProfileManager(ProfileManager* profile_manager) { |
74 profile_manager_.reset(profile_manager); | 75 profile_manager_.reset(profile_manager); |
75 } | 76 } |
76 | 77 |
77 PrefService* TestingBrowserProcess::local_state() { | 78 PrefService* TestingBrowserProcess::local_state() { |
78 return local_state_; | 79 return local_state_; |
79 } | 80 } |
80 | 81 |
| 82 SpdyConfigServiceManager* TestingBrowserProcess::spdy_config_service_manager() { |
| 83 return NULL; |
| 84 } |
| 85 |
81 policy::BrowserPolicyConnector* | 86 policy::BrowserPolicyConnector* |
82 TestingBrowserProcess::browser_policy_connector() { | 87 TestingBrowserProcess::browser_policy_connector() { |
83 #if defined(ENABLE_CONFIGURATION_POLICY) | 88 #if defined(ENABLE_CONFIGURATION_POLICY) |
84 if (!browser_policy_connector_.get()) { | 89 if (!browser_policy_connector_.get()) { |
85 browser_policy_connector_.reset( | 90 browser_policy_connector_.reset( |
86 policy::BrowserPolicyConnector::CreateForTests()); | 91 policy::BrowserPolicyConnector::CreateForTests()); |
87 } | 92 } |
88 #endif | 93 #endif |
89 return browser_policy_connector_.get(); | 94 return browser_policy_connector_.get(); |
90 } | 95 } |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 google_url_tracker_.reset(google_url_tracker); | 269 google_url_tracker_.reset(google_url_tracker); |
265 } | 270 } |
266 | 271 |
267 void TestingBrowserProcess::SetIOThread(IOThread* io_thread) { | 272 void TestingBrowserProcess::SetIOThread(IOThread* io_thread) { |
268 io_thread_ = io_thread; | 273 io_thread_ = io_thread; |
269 } | 274 } |
270 | 275 |
271 void TestingBrowserProcess::SetDevToolsManager(DevToolsManager* manager) { | 276 void TestingBrowserProcess::SetDevToolsManager(DevToolsManager* manager) { |
272 devtools_manager_.reset(manager); | 277 devtools_manager_.reset(manager); |
273 } | 278 } |
OLD | NEW |