| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 bool MockRenderProcessHost::FastShutdownForPageCount(size_t count) { | 249 bool MockRenderProcessHost::FastShutdownForPageCount(size_t count) { |
| 250 if (GetActiveViewCount() == count) | 250 if (GetActiveViewCount() == count) |
| 251 return FastShutdownIfPossible(); | 251 return FastShutdownIfPossible(); |
| 252 return false; | 252 return false; |
| 253 } | 253 } |
| 254 | 254 |
| 255 base::TimeDelta MockRenderProcessHost::GetChildProcessIdleTime() const { | 255 base::TimeDelta MockRenderProcessHost::GetChildProcessIdleTime() const { |
| 256 return base::TimeDelta::FromMilliseconds(0); | 256 return base::TimeDelta::FromMilliseconds(0); |
| 257 } | 257 } |
| 258 | 258 |
| 259 void MockRenderProcessHost::ResumeRequestsForView(int route_id) { | |
| 260 } | |
| 261 | |
| 262 void MockRenderProcessHost::NotifyTimezoneChange(const std::string& zone_id) { | 259 void MockRenderProcessHost::NotifyTimezoneChange(const std::string& zone_id) { |
| 263 } | 260 } |
| 264 | 261 |
| 265 ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() { | 262 ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() { |
| 266 return service_registry_.get(); | 263 return service_registry_.get(); |
| 267 } | 264 } |
| 268 | 265 |
| 269 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics() | 266 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics() |
| 270 const { | 267 const { |
| 271 static base::TimeTicks dummy_time = base::TimeTicks::Now(); | 268 static base::TimeTicks dummy_time = base::TimeTicks::Now(); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); | 371 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); |
| 375 it != processes_.end(); ++it) { | 372 it != processes_.end(); ++it) { |
| 376 if (*it == host) { | 373 if (*it == host) { |
| 377 processes_.weak_erase(it); | 374 processes_.weak_erase(it); |
| 378 break; | 375 break; |
| 379 } | 376 } |
| 380 } | 377 } |
| 381 } | 378 } |
| 382 | 379 |
| 383 } // namespace content | 380 } // namespace content |
| OLD | NEW |