| 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 "content/public/test/mock_render_process_host.h" | 5 #include "content/public/test/mock_render_process_host.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 } | 262 } |
| 263 | 263 |
| 264 shell::InterfaceRegistry* MockRenderProcessHost::GetInterfaceRegistry() { | 264 shell::InterfaceRegistry* MockRenderProcessHost::GetInterfaceRegistry() { |
| 265 return interface_registry_.get(); | 265 return interface_registry_.get(); |
| 266 } | 266 } |
| 267 | 267 |
| 268 shell::InterfaceProvider* MockRenderProcessHost::GetRemoteInterfaces() { | 268 shell::InterfaceProvider* MockRenderProcessHost::GetRemoteInterfaces() { |
| 269 return remote_interfaces_.get(); | 269 return remote_interfaces_.get(); |
| 270 } | 270 } |
| 271 | 271 |
| 272 shell::Connection* MockRenderProcessHost::GetChildConnection() { | |
| 273 return nullptr; | |
| 274 } | |
| 275 | |
| 276 std::unique_ptr<base::SharedPersistentMemoryAllocator> | 272 std::unique_ptr<base::SharedPersistentMemoryAllocator> |
| 277 MockRenderProcessHost::TakeMetricsAllocator() { | 273 MockRenderProcessHost::TakeMetricsAllocator() { |
| 278 return nullptr; | 274 return nullptr; |
| 279 } | 275 } |
| 280 | 276 |
| 281 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics() | 277 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics() |
| 282 const { | 278 const { |
| 283 static base::TimeTicks dummy_time = base::TimeTicks::Now(); | 279 static base::TimeTicks dummy_time = base::TimeTicks::Now(); |
| 284 return dummy_time; | 280 return dummy_time; |
| 285 } | 281 } |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); | 371 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); |
| 376 it != processes_.end(); ++it) { | 372 it != processes_.end(); ++it) { |
| 377 if (*it == host) { | 373 if (*it == host) { |
| 378 processes_.weak_erase(it); | 374 processes_.weak_erase(it); |
| 379 break; | 375 break; |
| 380 } | 376 } |
| 381 } | 377 } |
| 382 } | 378 } |
| 383 | 379 |
| 384 } // namespace content | 380 } // namespace content |
| OLD | NEW |