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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 void TestingBrowserProcess::CreateDevToolsHttpProtocolHandler( | 261 void TestingBrowserProcess::CreateDevToolsHttpProtocolHandler( |
262 chrome::HostDesktopType host_desktop_type, | |
263 const std::string& ip, | 262 const std::string& ip, |
264 uint16_t port) {} | 263 uint16_t port) {} |
265 | 264 |
266 unsigned int TestingBrowserProcess::AddRefModule() { | 265 unsigned int TestingBrowserProcess::AddRefModule() { |
267 return ++module_ref_count_; | 266 return ++module_ref_count_; |
268 } | 267 } |
269 | 268 |
270 unsigned int TestingBrowserProcess::ReleaseModule() { | 269 unsigned int TestingBrowserProcess::ReleaseModule() { |
271 DCHECK_GT(module_ref_count_, 0U); | 270 DCHECK_GT(module_ref_count_, 0U); |
272 return --module_ref_count_; | 271 return --module_ref_count_; |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 | 460 |
462 /////////////////////////////////////////////////////////////////////////////// | 461 /////////////////////////////////////////////////////////////////////////////// |
463 | 462 |
464 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { | 463 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { |
465 TestingBrowserProcess::CreateInstance(); | 464 TestingBrowserProcess::CreateInstance(); |
466 } | 465 } |
467 | 466 |
468 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { | 467 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { |
469 TestingBrowserProcess::DeleteInstance(); | 468 TestingBrowserProcess::DeleteInstance(); |
470 } | 469 } |
OLD | NEW |