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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 return false; | 254 return false; |
255 } | 255 } |
256 | 256 |
257 base::TimeDelta MockRenderProcessHost::GetChildProcessIdleTime() const { | 257 base::TimeDelta MockRenderProcessHost::GetChildProcessIdleTime() const { |
258 return base::TimeDelta::FromMilliseconds(0); | 258 return base::TimeDelta::FromMilliseconds(0); |
259 } | 259 } |
260 | 260 |
261 void MockRenderProcessHost::NotifyTimezoneChange(const std::string& zone_id) { | 261 void MockRenderProcessHost::NotifyTimezoneChange(const std::string& zone_id) { |
262 } | 262 } |
263 | 263 |
264 ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() { | 264 shell::InterfaceRegistry* MockRenderProcessHost::GetInterfaceRegistry() { |
265 return service_registry_.get(); | 265 return interface_registry_.get(); |
| 266 } |
| 267 |
| 268 shell::InterfaceProvider* MockRenderProcessHost::GetRemoteInterfaces() { |
| 269 return remote_interfaces_.get(); |
266 } | 270 } |
267 | 271 |
268 shell::Connection* MockRenderProcessHost::GetChildConnection() { | 272 shell::Connection* MockRenderProcessHost::GetChildConnection() { |
269 return nullptr; | 273 return nullptr; |
270 } | 274 } |
271 | 275 |
272 std::unique_ptr<base::SharedPersistentMemoryAllocator> | 276 std::unique_ptr<base::SharedPersistentMemoryAllocator> |
273 MockRenderProcessHost::TakeMetricsAllocator() { | 277 MockRenderProcessHost::TakeMetricsAllocator() { |
274 return nullptr; | 278 return nullptr; |
275 } | 279 } |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); | 375 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); |
372 it != processes_.end(); ++it) { | 376 it != processes_.end(); ++it) { |
373 if (*it == host) { | 377 if (*it == host) { |
374 processes_.weak_erase(it); | 378 processes_.weak_erase(it); |
375 break; | 379 break; |
376 } | 380 } |
377 } | 381 } |
378 } | 382 } |
379 | 383 |
380 } // namespace content | 384 } // namespace content |
OLD | NEW |