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

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

Issue 2387603003: Resume a backgrounded renderer that was purged and suspended (Closed)
Patch Set: Use constexpr base::TimeDelta Created 4 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 b17d748c5fc150a5c5e91261008a92418a71564e..4c988f3b4e7250937fce4190a9a81c79b0d27f30 100644
--- a/content/public/test/mock_render_process_host.cc
+++ b/content/public/test/mock_render_process_host.cc
@@ -301,6 +301,20 @@ 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::GetLastResumedInBackgroundTime()
+ 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