| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 return base::TimeDelta::FromMilliseconds(0); | 259 return base::TimeDelta::FromMilliseconds(0); |
| 260 } | 260 } |
| 261 | 261 |
| 262 void MockRenderProcessHost::NotifyTimezoneChange(const std::string& zone_id) { | 262 void MockRenderProcessHost::NotifyTimezoneChange(const std::string& zone_id) { |
| 263 } | 263 } |
| 264 | 264 |
| 265 shell::InterfaceProvider* MockRenderProcessHost::GetRemoteInterfaces() { | 265 shell::InterfaceProvider* MockRenderProcessHost::GetRemoteInterfaces() { |
| 266 return remote_interfaces_.get(); | 266 return remote_interfaces_.get(); |
| 267 } | 267 } |
| 268 | 268 |
| 269 mojom::RouteProvider* MockRenderProcessHost::GetRemoteRouteProvider() { |
| 270 NOTREACHED(); |
| 271 return nullptr; |
| 272 } |
| 273 |
| 269 std::unique_ptr<base::SharedPersistentMemoryAllocator> | 274 std::unique_ptr<base::SharedPersistentMemoryAllocator> |
| 270 MockRenderProcessHost::TakeMetricsAllocator() { | 275 MockRenderProcessHost::TakeMetricsAllocator() { |
| 271 return nullptr; | 276 return nullptr; |
| 272 } | 277 } |
| 273 | 278 |
| 274 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics() | 279 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics() |
| 275 const { | 280 const { |
| 276 static base::TimeTicks dummy_time = base::TimeTicks::Now(); | 281 static base::TimeTicks dummy_time = base::TimeTicks::Now(); |
| 277 return dummy_time; | 282 return dummy_time; |
| 278 } | 283 } |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); | 385 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); |
| 381 it != processes_.end(); ++it) { | 386 it != processes_.end(); ++it) { |
| 382 if (*it == host) { | 387 if (*it == host) { |
| 383 processes_.weak_erase(it); | 388 processes_.weak_erase(it); |
| 384 break; | 389 break; |
| 385 } | 390 } |
| 386 } | 391 } |
| 387 } | 392 } |
| 388 | 393 |
| 389 } // namespace content | 394 } // namespace content |
| OLD | NEW |