Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(714)

Side by Side Diff: content/public/test/mock_render_process_host.cc

Issue 665923002: Moves RenderProcessHostImpl::init_time() to RenderProcessHost to fix broken test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed moved method to remove explicit project name from it. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 void MockRenderProcessHost::ResumeRequestsForView(int route_id) { 216 void MockRenderProcessHost::ResumeRequestsForView(int route_id) {
217 } 217 }
218 218
219 void MockRenderProcessHost::NotifyTimezoneChange() { 219 void MockRenderProcessHost::NotifyTimezoneChange() {
220 } 220 }
221 221
222 ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() { 222 ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() {
223 return NULL; 223 return NULL;
224 } 224 }
225 225
226 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics()
227 const {
228 static base::TimeTicks dummy_time = base::TimeTicks::Now();
229 return dummy_time;
230 }
231
226 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { 232 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) {
227 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); 233 RenderProcessHostImpl::FilterURL(this, empty_allowed, url);
228 } 234 }
229 235
230 #if defined(ENABLE_WEBRTC) 236 #if defined(ENABLE_WEBRTC)
231 void MockRenderProcessHost::EnableAecDump(const base::FilePath& file) { 237 void MockRenderProcessHost::EnableAecDump(const base::FilePath& file) {
232 } 238 }
233 239
234 void MockRenderProcessHost::DisableAecDump() { 240 void MockRenderProcessHost::DisableAecDump() {
235 } 241 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 292 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
287 it != processes_.end(); ++it) { 293 it != processes_.end(); ++it) {
288 if (*it == host) { 294 if (*it == host) {
289 processes_.weak_erase(it); 295 processes_.weak_erase(it);
290 break; 296 break;
291 } 297 }
292 } 298 }
293 } 299 }
294 300
295 } // content 301 } // content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698