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

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

Issue 664963002: content: Add RendererScheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comments Created 6 years, 1 month 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
« no previous file with comments | « content/public/test/render_view_test.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/render_view_test.cc
diff --git a/content/public/test/render_view_test.cc b/content/public/test/render_view_test.cc
index f8f00883209885e0b9cd735ee3076c5d58efb7b0..5a86b05998a65ca0ddadab9de47bea1c22ecc391 100644
--- a/content/public/test/render_view_test.cc
+++ b/content/public/test/render_view_test.cc
@@ -21,6 +21,7 @@
#include "content/renderer/render_view_impl.h"
#include "content/renderer/renderer_blink_platform_impl.h"
#include "content/renderer/renderer_main_platform_delegate.h"
+#include "content/renderer/scheduler/renderer_scheduler.h"
#include "content/test/mock_render_process.h"
#include "content/test/test_content_client.h"
#include "third_party/WebKit/public/platform/WebScreenInfo.h"
@@ -60,6 +61,9 @@ namespace content {
class RendererBlinkPlatformImplNoSandboxImpl
: public RendererBlinkPlatformImpl {
public:
+ RendererBlinkPlatformImplNoSandboxImpl(RendererScheduler* scheduler)
+ : RendererBlinkPlatformImpl(scheduler) {}
+
virtual blink::WebSandboxSupport* sandboxSupport() {
return NULL;
}
@@ -67,7 +71,9 @@ class RendererBlinkPlatformImplNoSandboxImpl
RenderViewTest::RendererBlinkPlatformImplNoSandbox::
RendererBlinkPlatformImplNoSandbox() {
- blink_platform_impl_.reset(new RendererBlinkPlatformImplNoSandboxImpl());
+ renderer_scheduler_ = RendererScheduler::Create();
+ blink_platform_impl_.reset(
+ new RendererBlinkPlatformImplNoSandboxImpl(renderer_scheduler_.get()));
}
RenderViewTest::RendererBlinkPlatformImplNoSandbox::
« no previous file with comments | « content/public/test/render_view_test.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698