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

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

Issue 2387603003: Resume a backgrounded renderer that was purged and suspended (Closed)
Patch Set: Rebaselined 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 d987387740bcb048ec28aa744a7e642f818dfe38..26ccabba73a4e38065343115ae4b5faae4546f79 100644
--- a/content/public/test/mock_render_process_host.cc
+++ b/content/public/test/mock_render_process_host.cc
@@ -298,6 +298,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;
+}
+
mojom::Renderer* MockRenderProcessHost::GetRendererInterface() {
if (!renderer_interface_) {
renderer_interface_.reset(new mojom::RendererAssociatedPtr);

Powered by Google App Engine
This is Rietveld 408576698