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 | |
103 MetricsService* TestingBrowserProcess::metrics_service() { | 99 MetricsService* TestingBrowserProcess::metrics_service() { |
104 return NULL; | 100 return NULL; |
105 } | 101 } |
106 | 102 |
107 rappor::RapporService* TestingBrowserProcess::rappor_service() { | 103 rappor::RapporService* TestingBrowserProcess::rappor_service() { |
108 return NULL; | 104 return NULL; |
109 } | 105 } |
110 | 106 |
111 IOThread* TestingBrowserProcess::io_thread() { | 107 IOThread* TestingBrowserProcess::io_thread() { |
112 return io_thread_; | 108 return io_thread_; |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 | 425 |
430 /////////////////////////////////////////////////////////////////////////////// | 426 /////////////////////////////////////////////////////////////////////////////// |
431 | 427 |
432 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { | 428 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { |
433 TestingBrowserProcess::CreateInstance(); | 429 TestingBrowserProcess::CreateInstance(); |
434 } | 430 } |
435 | 431 |
436 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { | 432 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { |
437 TestingBrowserProcess::DeleteInstance(); | 433 TestingBrowserProcess::DeleteInstance(); |
438 } | 434 } |
OLD | NEW |