| 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 "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/process/process_handle.h" | 9 #include "base/process/process_handle.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 void MockRenderProcessHost::OnAddSubscription(unsigned int target) { | 241 void MockRenderProcessHost::OnAddSubscription(unsigned int target) { |
| 242 } | 242 } |
| 243 | 243 |
| 244 void MockRenderProcessHost::OnRemoveSubscription(unsigned int target) { | 244 void MockRenderProcessHost::OnRemoveSubscription(unsigned int target) { |
| 245 } | 245 } |
| 246 | 246 |
| 247 void MockRenderProcessHost::SendUpdateValueState( | 247 void MockRenderProcessHost::SendUpdateValueState( |
| 248 unsigned int target, const gpu::ValueState& state) { | 248 unsigned int target, const gpu::ValueState& state) { |
| 249 } | 249 } |
| 250 | 250 |
| 251 #if defined(ENABLE_BROWSER_CDMS) |
| 252 media::BrowserCdm* MockRenderProcessHost::GetBrowserCdm(int render_frame_id, |
| 253 int cdm_id) const { |
| 254 return nullptr; |
| 255 } |
| 256 #endif |
| 257 |
| 251 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { | 258 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { |
| 252 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); | 259 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); |
| 253 } | 260 } |
| 254 | 261 |
| 255 #if defined(ENABLE_WEBRTC) | 262 #if defined(ENABLE_WEBRTC) |
| 256 void MockRenderProcessHost::EnableAecDump(const base::FilePath& file) { | 263 void MockRenderProcessHost::EnableAecDump(const base::FilePath& file) { |
| 257 } | 264 } |
| 258 | 265 |
| 259 void MockRenderProcessHost::DisableAecDump() { | 266 void MockRenderProcessHost::DisableAecDump() { |
| 260 } | 267 } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); | 318 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); |
| 312 it != processes_.end(); ++it) { | 319 it != processes_.end(); ++it) { |
| 313 if (*it == host) { | 320 if (*it == host) { |
| 314 processes_.weak_erase(it); | 321 processes_.weak_erase(it); |
| 315 break; | 322 break; |
| 316 } | 323 } |
| 317 } | 324 } |
| 318 } | 325 } |
| 319 | 326 |
| 320 } // content | 327 } // content |
| OLD | NEW |