| 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 void MockRenderProcessHost::ForceReleaseWorkerRefCounts() { | 305 void MockRenderProcessHost::ForceReleaseWorkerRefCounts() { |
| 306 worker_ref_count_ = 0; | 306 worker_ref_count_ = 0; |
| 307 } | 307 } |
| 308 | 308 |
| 309 bool MockRenderProcessHost::IsWorkerRefCountDisabled() { | 309 bool MockRenderProcessHost::IsWorkerRefCountDisabled() { |
| 310 return false; | 310 return false; |
| 311 } | 311 } |
| 312 | 312 |
| 313 void MockRenderProcessHost::PurgeAndSuspend() {} | 313 void MockRenderProcessHost::PurgeAndSuspend() {} |
| 314 | 314 |
| 315 void MockRenderProcessHost::Resume() {} |
| 316 |
| 317 const base::TimeTicks& MockRenderProcessHost::GetLastPurgedAndSuspendedTime() |
| 318 const { |
| 319 static base::TimeTicks dummy_time = base::TimeTicks::Now(); |
| 320 return dummy_time; |
| 321 } |
| 322 |
| 323 const base::TimeTicks& MockRenderProcessHost::GetLastResumedTime() const { |
| 324 static base::TimeTicks dummy_time = base::TimeTicks::Now(); |
| 325 return dummy_time; |
| 326 } |
| 327 |
| 315 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { | 328 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { |
| 316 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); | 329 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); |
| 317 } | 330 } |
| 318 | 331 |
| 319 #if defined(ENABLE_WEBRTC) | 332 #if defined(ENABLE_WEBRTC) |
| 320 void MockRenderProcessHost::EnableAudioDebugRecordings( | 333 void MockRenderProcessHost::EnableAudioDebugRecordings( |
| 321 const base::FilePath& file) { | 334 const base::FilePath& file) { |
| 322 } | 335 } |
| 323 | 336 |
| 324 void MockRenderProcessHost::DisableAudioDebugRecordings() {} | 337 void MockRenderProcessHost::DisableAudioDebugRecordings() {} |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); | 398 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); |
| 386 it != processes_.end(); ++it) { | 399 it != processes_.end(); ++it) { |
| 387 if (*it == host) { | 400 if (*it == host) { |
| 388 processes_.weak_erase(it); | 401 processes_.weak_erase(it); |
| 389 break; | 402 break; |
| 390 } | 403 } |
| 391 } | 404 } |
| 392 } | 405 } |
| 393 | 406 |
| 394 } // namespace content | 407 } // namespace content |
| OLD | NEW |