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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 return false; | 237 return false; |
238 } | 238 } |
239 | 239 |
240 base::TimeDelta MockRenderProcessHost::GetChildProcessIdleTime() const { | 240 base::TimeDelta MockRenderProcessHost::GetChildProcessIdleTime() const { |
241 return base::TimeDelta::FromMilliseconds(0); | 241 return base::TimeDelta::FromMilliseconds(0); |
242 } | 242 } |
243 | 243 |
244 void MockRenderProcessHost::ResumeRequestsForView(int route_id) { | 244 void MockRenderProcessHost::ResumeRequestsForView(int route_id) { |
245 } | 245 } |
246 | 246 |
247 void MockRenderProcessHost::NotifyTimezoneChange() { | 247 void MockRenderProcessHost::NotifyTimezoneChange(const std::string& zone_id) { |
248 } | 248 } |
249 | 249 |
250 ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() { | 250 ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() { |
251 return NULL; | 251 return NULL; |
252 } | 252 } |
253 | 253 |
254 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics() | 254 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics() |
255 const { | 255 const { |
256 static base::TimeTicks dummy_time = base::TimeTicks::Now(); | 256 static base::TimeTicks dummy_time = base::TimeTicks::Now(); |
257 return dummy_time; | 257 return dummy_time; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); | 341 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); |
342 it != processes_.end(); ++it) { | 342 it != processes_.end(); ++it) { |
343 if (*it == host) { | 343 if (*it == host) { |
344 processes_.weak_erase(it); | 344 processes_.weak_erase(it); |
345 break; | 345 break; |
346 } | 346 } |
347 } | 347 } |
348 } | 348 } |
349 | 349 |
350 } // content | 350 } // content |
OLD | NEW |