| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // g_browser_process if it is not NULL, so it must be NULL before proceeding. | 91 // g_browser_process if it is not NULL, so it must be NULL before proceeding. |
| 92 DCHECK_EQ(static_cast<BrowserProcess*>(NULL), g_browser_process); | 92 DCHECK_EQ(static_cast<BrowserProcess*>(NULL), g_browser_process); |
| 93 } | 93 } |
| 94 | 94 |
| 95 void TestingBrowserProcess::ResourceDispatcherHostCreated() { | 95 void TestingBrowserProcess::ResourceDispatcherHostCreated() { |
| 96 } | 96 } |
| 97 | 97 |
| 98 void TestingBrowserProcess::EndSession() { | 98 void TestingBrowserProcess::EndSession() { |
| 99 } | 99 } |
| 100 | 100 |
| 101 MetricsServicesManager* TestingBrowserProcess::GetMetricsServicesManager() { |
| 102 return NULL; |
| 103 } |
| 104 |
| 101 MetricsService* TestingBrowserProcess::metrics_service() { | 105 MetricsService* TestingBrowserProcess::metrics_service() { |
| 102 return NULL; | 106 return NULL; |
| 103 } | 107 } |
| 104 | 108 |
| 105 rappor::RapporService* TestingBrowserProcess::rappor_service() { | 109 rappor::RapporService* TestingBrowserProcess::rappor_service() { |
| 106 return NULL; | 110 return NULL; |
| 107 } | 111 } |
| 108 | 112 |
| 109 IOThread* TestingBrowserProcess::io_thread() { | 113 IOThread* TestingBrowserProcess::io_thread() { |
| 110 return io_thread_; | 114 return io_thread_; |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 | 424 |
| 421 /////////////////////////////////////////////////////////////////////////////// | 425 /////////////////////////////////////////////////////////////////////////////// |
| 422 | 426 |
| 423 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { | 427 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { |
| 424 TestingBrowserProcess::CreateInstance(); | 428 TestingBrowserProcess::CreateInstance(); |
| 425 } | 429 } |
| 426 | 430 |
| 427 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { | 431 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { |
| 428 TestingBrowserProcess::DeleteInstance(); | 432 TestingBrowserProcess::DeleteInstance(); |
| 429 } | 433 } |
| OLD | NEW |