| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // g_browser_process if it is not NULL, so it must be NULL before proceeding. | 89 // g_browser_process if it is not NULL, so it must be NULL before proceeding. |
| 90 DCHECK_EQ(static_cast<BrowserProcess*>(NULL), g_browser_process); | 90 DCHECK_EQ(static_cast<BrowserProcess*>(NULL), g_browser_process); |
| 91 } | 91 } |
| 92 | 92 |
| 93 void TestingBrowserProcess::ResourceDispatcherHostCreated() { | 93 void TestingBrowserProcess::ResourceDispatcherHostCreated() { |
| 94 } | 94 } |
| 95 | 95 |
| 96 void TestingBrowserProcess::EndSession() { | 96 void TestingBrowserProcess::EndSession() { |
| 97 } | 97 } |
| 98 | 98 |
| 99 MetricsServicesManager* TestingBrowserProcess::GetMetricsServicesManager() { |
| 100 return NULL; |
| 101 } |
| 102 |
| 99 MetricsService* TestingBrowserProcess::metrics_service() { | 103 MetricsService* TestingBrowserProcess::metrics_service() { |
| 100 return NULL; | 104 return NULL; |
| 101 } | 105 } |
| 102 | 106 |
| 103 rappor::RapporService* TestingBrowserProcess::rappor_service() { | 107 rappor::RapporService* TestingBrowserProcess::rappor_service() { |
| 104 return NULL; | 108 return NULL; |
| 105 } | 109 } |
| 106 | 110 |
| 107 IOThread* TestingBrowserProcess::io_thread() { | 111 IOThread* TestingBrowserProcess::io_thread() { |
| 108 return io_thread_; | 112 return io_thread_; |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 | 434 |
| 431 /////////////////////////////////////////////////////////////////////////////// | 435 /////////////////////////////////////////////////////////////////////////////// |
| 432 | 436 |
| 433 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { | 437 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { |
| 434 TestingBrowserProcess::CreateInstance(); | 438 TestingBrowserProcess::CreateInstance(); |
| 435 } | 439 } |
| 436 | 440 |
| 437 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { | 441 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { |
| 438 TestingBrowserProcess::DeleteInstance(); | 442 TestingBrowserProcess::DeleteInstance(); |
| 439 } | 443 } |
| OLD | NEW |