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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: content/public/test/mock_render_process_host.cc
diff --git a/content/public/test/mock_render_process_host.cc b/content/public/test/mock_render_process_host.cc
index a59ce5fb3730f522e9122a9f2d71bbb1fef5bec0..88ac738edd85ee6d8e88c2be9d0dbd95c9f4505a 100644
--- a/content/public/test/mock_render_process_host.cc
+++ b/content/public/test/mock_render_process_host.cc
@@ -222,6 +222,11 @@ ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() {
return NULL;
}
+const base::TimeTicks& MockRenderProcessHost::init_time() const {
+ static base::TimeTicks dummy_time = base::TimeTicks::Now();
+ return dummy_time;
+}
+
void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) {
RenderProcessHostImpl::FilterURL(this, empty_allowed, url);
}

Powered by Google App Engine
This is Rietveld 408576698