| 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 return true; | 241 return true; |
| 242 } | 242 } |
| 243 | 243 |
| 244 IPC::ChannelProxy* MockRenderProcessHost::GetChannel() { | 244 IPC::ChannelProxy* MockRenderProcessHost::GetChannel() { |
| 245 return NULL; | 245 return NULL; |
| 246 } | 246 } |
| 247 | 247 |
| 248 void MockRenderProcessHost::AddFilter(BrowserMessageFilter* filter) { | 248 void MockRenderProcessHost::AddFilter(BrowserMessageFilter* filter) { |
| 249 } | 249 } |
| 250 | 250 |
| 251 void MockRenderProcessHost::AddOwnedInterface( | |
| 252 std::unique_ptr<OwnedInterface> impl) {} | |
| 253 | |
| 254 bool MockRenderProcessHost::FastShutdownForPageCount(size_t count) { | 251 bool MockRenderProcessHost::FastShutdownForPageCount(size_t count) { |
| 255 if (GetActiveViewCount() == count) | 252 if (GetActiveViewCount() == count) |
| 256 return FastShutdownIfPossible(); | 253 return FastShutdownIfPossible(); |
| 257 return false; | 254 return false; |
| 258 } | 255 } |
| 259 | 256 |
| 260 base::TimeDelta MockRenderProcessHost::GetChildProcessIdleTime() const { | 257 base::TimeDelta MockRenderProcessHost::GetChildProcessIdleTime() const { |
| 261 return base::TimeDelta::FromMilliseconds(0); | 258 return base::TimeDelta::FromMilliseconds(0); |
| 262 } | 259 } |
| 263 | 260 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); | 375 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); |
| 379 it != processes_.end(); ++it) { | 376 it != processes_.end(); ++it) { |
| 380 if (*it == host) { | 377 if (*it == host) { |
| 381 processes_.weak_erase(it); | 378 processes_.weak_erase(it); |
| 382 break; | 379 break; |
| 383 } | 380 } |
| 384 } | 381 } |
| 385 } | 382 } |
| 386 | 383 |
| 387 } // namespace content | 384 } // namespace content |
| OLD | NEW |