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

Unified Diff: content/public/test/mock_render_process_host.cc

Issue 2387603003: Resume a backgrounded renderer that was purged and suspended (Closed)
Patch Set: Add Resume Created 4 years, 3 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 6d20cc65a6f08ea4a5aaabc1da47ae90ebaabc86..3113d6e7aa45ced73811724e3254619f02ee3aa4 100644
--- a/content/public/test/mock_render_process_host.cc
+++ b/content/public/test/mock_render_process_host.cc
@@ -312,6 +312,19 @@ bool MockRenderProcessHost::IsWorkerRefCountDisabled() {
void MockRenderProcessHost::PurgeAndSuspend() {}
+void MockRenderProcessHost::Resume() {}
+
+const base::TimeTicks& MockRenderProcessHost::GetLastPurgedAndSuspendedTime()
+ const {
+ static base::TimeTicks dummy_time = base::TimeTicks::Now();
+ return dummy_time;
+}
+
+const base::TimeTicks& MockRenderProcessHost::GetLastResumedTime() 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