| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 bool MockRenderProcessHost::FastShutdownForPageCount(size_t count) { | 252 bool MockRenderProcessHost::FastShutdownForPageCount(size_t count) { |
| 253 if (GetActiveViewCount() == count) | 253 if (GetActiveViewCount() == count) |
| 254 return FastShutdownIfPossible(); | 254 return FastShutdownIfPossible(); |
| 255 return false; | 255 return false; |
| 256 } | 256 } |
| 257 | 257 |
| 258 base::TimeDelta MockRenderProcessHost::GetChildProcessIdleTime() const { | 258 base::TimeDelta MockRenderProcessHost::GetChildProcessIdleTime() const { |
| 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) { | |
| 263 } | |
| 264 | |
| 265 shell::InterfaceProvider* MockRenderProcessHost::GetRemoteInterfaces() { | 262 shell::InterfaceProvider* MockRenderProcessHost::GetRemoteInterfaces() { |
| 266 return remote_interfaces_.get(); | 263 return remote_interfaces_.get(); |
| 267 } | 264 } |
| 268 | 265 |
| 269 std::unique_ptr<base::SharedPersistentMemoryAllocator> | 266 std::unique_ptr<base::SharedPersistentMemoryAllocator> |
| 270 MockRenderProcessHost::TakeMetricsAllocator() { | 267 MockRenderProcessHost::TakeMetricsAllocator() { |
| 271 return nullptr; | 268 return nullptr; |
| 272 } | 269 } |
| 273 | 270 |
| 274 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics() | 271 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics() |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); | 369 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); |
| 373 it != processes_.end(); ++it) { | 370 it != processes_.end(); ++it) { |
| 374 if (*it == host) { | 371 if (*it == host) { |
| 375 processes_.weak_erase(it); | 372 processes_.weak_erase(it); |
| 376 break; | 373 break; |
| 377 } | 374 } |
| 378 } | 375 } |
| 379 } | 376 } |
| 380 | 377 |
| 381 } // namespace content | 378 } // namespace content |
| OLD | NEW |