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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // g_browser_process if it is not null, so it must be null before proceeding. | 95 // g_browser_process if it is not null, so it must be null before proceeding. |
96 DCHECK_EQ(static_cast<BrowserProcess*>(nullptr), g_browser_process); | 96 DCHECK_EQ(static_cast<BrowserProcess*>(nullptr), g_browser_process); |
97 } | 97 } |
98 | 98 |
99 void TestingBrowserProcess::ResourceDispatcherHostCreated() { | 99 void TestingBrowserProcess::ResourceDispatcherHostCreated() { |
100 } | 100 } |
101 | 101 |
102 void TestingBrowserProcess::EndSession() { | 102 void TestingBrowserProcess::EndSession() { |
103 } | 103 } |
104 | 104 |
105 MetricsServicesManager* TestingBrowserProcess::GetMetricsServicesManager() { | 105 metrics_services_manager::MetricsServicesManager* |
| 106 TestingBrowserProcess::GetMetricsServicesManager() { |
106 return nullptr; | 107 return nullptr; |
107 } | 108 } |
108 | 109 |
109 metrics::MetricsService* TestingBrowserProcess::metrics_service() { | 110 metrics::MetricsService* TestingBrowserProcess::metrics_service() { |
110 return nullptr; | 111 return nullptr; |
111 } | 112 } |
112 | 113 |
113 rappor::RapporService* TestingBrowserProcess::rappor_service() { | 114 rappor::RapporService* TestingBrowserProcess::rappor_service() { |
114 return nullptr; | 115 return nullptr; |
115 } | 116 } |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 | 455 |
455 /////////////////////////////////////////////////////////////////////////////// | 456 /////////////////////////////////////////////////////////////////////////////// |
456 | 457 |
457 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { | 458 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { |
458 TestingBrowserProcess::CreateInstance(); | 459 TestingBrowserProcess::CreateInstance(); |
459 } | 460 } |
460 | 461 |
461 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { | 462 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { |
462 TestingBrowserProcess::DeleteInstance(); | 463 TestingBrowserProcess::DeleteInstance(); |
463 } | 464 } |
OLD | NEW |