| 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/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
| 8 #include "base/time/default_tick_clock.h" | 8 #include "base/time/default_tick_clock.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 #endif | 251 #endif |
| 252 } | 252 } |
| 253 | 253 |
| 254 message_center::MessageCenter* TestingBrowserProcess::message_center() { | 254 message_center::MessageCenter* TestingBrowserProcess::message_center() { |
| 255 return message_center::MessageCenter::Get(); | 255 return message_center::MessageCenter::Get(); |
| 256 } | 256 } |
| 257 | 257 |
| 258 IntranetRedirectDetector* TestingBrowserProcess::intranet_redirect_detector() { | 258 IntranetRedirectDetector* TestingBrowserProcess::intranet_redirect_detector() { |
| 259 return nullptr; | 259 return nullptr; |
| 260 } | 260 } |
| 261 |
| 261 void TestingBrowserProcess::CreateDevToolsHttpProtocolHandler( | 262 void TestingBrowserProcess::CreateDevToolsHttpProtocolHandler( |
| 262 const std::string& ip, | 263 const std::string& ip, |
| 263 uint16_t port) {} | 264 uint16_t port) { |
| 265 } |
| 266 |
| 267 void TestingBrowserProcess::CreateDevToolsAutoOpener() { |
| 268 } |
| 264 | 269 |
| 265 unsigned int TestingBrowserProcess::AddRefModule() { | 270 unsigned int TestingBrowserProcess::AddRefModule() { |
| 266 return ++module_ref_count_; | 271 return ++module_ref_count_; |
| 267 } | 272 } |
| 268 | 273 |
| 269 unsigned int TestingBrowserProcess::ReleaseModule() { | 274 unsigned int TestingBrowserProcess::ReleaseModule() { |
| 270 DCHECK_GT(module_ref_count_, 0U); | 275 DCHECK_GT(module_ref_count_, 0U); |
| 271 return --module_ref_count_; | 276 return --module_ref_count_; |
| 272 } | 277 } |
| 273 | 278 |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 | 465 |
| 461 /////////////////////////////////////////////////////////////////////////////// | 466 /////////////////////////////////////////////////////////////////////////////// |
| 462 | 467 |
| 463 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { | 468 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { |
| 464 TestingBrowserProcess::CreateInstance(); | 469 TestingBrowserProcess::CreateInstance(); |
| 465 } | 470 } |
| 466 | 471 |
| 467 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { | 472 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { |
| 468 TestingBrowserProcess::DeleteInstance(); | 473 TestingBrowserProcess::DeleteInstance(); |
| 469 } | 474 } |
| OLD | NEW |