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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() { | 227 ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() { |
228 return NULL; | 228 return NULL; |
229 } | 229 } |
230 | 230 |
231 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics() | 231 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics() |
232 const { | 232 const { |
233 static base::TimeTicks dummy_time = base::TimeTicks::Now(); | 233 static base::TimeTicks dummy_time = base::TimeTicks::Now(); |
234 return dummy_time; | 234 return dummy_time; |
235 } | 235 } |
236 | 236 |
| 237 bool MockRenderProcessHost::SubscribeUniformEnabled() const { |
| 238 return false; |
| 239 } |
| 240 |
| 241 void MockRenderProcessHost::OnAddSubscription(unsigned int target) { |
| 242 } |
| 243 |
| 244 void MockRenderProcessHost::OnRemoveSubscription(unsigned int target) { |
| 245 } |
| 246 |
| 247 void MockRenderProcessHost::SendUpdateValueState( |
| 248 unsigned int target, const gpu::ValueState& state) { |
| 249 } |
| 250 |
237 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { | 251 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { |
238 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); | 252 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); |
239 } | 253 } |
240 | 254 |
241 #if defined(ENABLE_WEBRTC) | 255 #if defined(ENABLE_WEBRTC) |
242 void MockRenderProcessHost::EnableAecDump(const base::FilePath& file) { | 256 void MockRenderProcessHost::EnableAecDump(const base::FilePath& file) { |
243 } | 257 } |
244 | 258 |
245 void MockRenderProcessHost::DisableAecDump() { | 259 void MockRenderProcessHost::DisableAecDump() { |
246 } | 260 } |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); | 311 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); |
298 it != processes_.end(); ++it) { | 312 it != processes_.end(); ++it) { |
299 if (*it == host) { | 313 if (*it == host) { |
300 processes_.weak_erase(it); | 314 processes_.weak_erase(it); |
301 break; | 315 break; |
302 } | 316 } |
303 } | 317 } |
304 } | 318 } |
305 | 319 |
306 } // content | 320 } // content |
OLD | NEW |