| 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/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
| 8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "base/time/default_tick_clock.h" | 9 #include "base/time/default_tick_clock.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 message_center::MessageCenter* TestingBrowserProcess::message_center() { | 245 message_center::MessageCenter* TestingBrowserProcess::message_center() { |
| 246 return message_center::MessageCenter::Get(); | 246 return message_center::MessageCenter::Get(); |
| 247 } | 247 } |
| 248 | 248 |
| 249 IntranetRedirectDetector* TestingBrowserProcess::intranet_redirect_detector() { | 249 IntranetRedirectDetector* TestingBrowserProcess::intranet_redirect_detector() { |
| 250 return NULL; | 250 return NULL; |
| 251 } | 251 } |
| 252 void TestingBrowserProcess::CreateDevToolsHttpProtocolHandler( | 252 void TestingBrowserProcess::CreateDevToolsHttpProtocolHandler( |
| 253 chrome::HostDesktopType host_desktop_type, | 253 chrome::HostDesktopType host_desktop_type, |
| 254 const std::string& ip, | 254 const std::string& ip, |
| 255 int port) { | 255 uint16 port) { |
| 256 } | 256 } |
| 257 | 257 |
| 258 unsigned int TestingBrowserProcess::AddRefModule() { | 258 unsigned int TestingBrowserProcess::AddRefModule() { |
| 259 return ++module_ref_count_; | 259 return ++module_ref_count_; |
| 260 } | 260 } |
| 261 | 261 |
| 262 unsigned int TestingBrowserProcess::ReleaseModule() { | 262 unsigned int TestingBrowserProcess::ReleaseModule() { |
| 263 DCHECK_GT(module_ref_count_, 0U); | 263 DCHECK_GT(module_ref_count_, 0U); |
| 264 return --module_ref_count_; | 264 return --module_ref_count_; |
| 265 } | 265 } |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 | 441 |
| 442 /////////////////////////////////////////////////////////////////////////////// | 442 /////////////////////////////////////////////////////////////////////////////// |
| 443 | 443 |
| 444 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { | 444 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { |
| 445 TestingBrowserProcess::CreateInstance(); | 445 TestingBrowserProcess::CreateInstance(); |
| 446 } | 446 } |
| 447 | 447 |
| 448 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { | 448 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { |
| 449 TestingBrowserProcess::DeleteInstance(); | 449 TestingBrowserProcess::DeleteInstance(); |
| 450 } | 450 } |
| OLD | NEW |