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

Unified Diff: content/test/test_blink_web_unit_test_support.h

Issue 878413002: Wire the scheduler up in TestBlinkWebUnitTestSupport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Lazily create the WebSchedulerImpl and RendererScheduler if needed Created 5 years, 11 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
« no previous file with comments | « content/renderer/scheduler/web_scheduler_impl.h ('k') | content/test/test_blink_web_unit_test_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_blink_web_unit_test_support.h
diff --git a/content/test/test_blink_web_unit_test_support.h b/content/test/test_blink_web_unit_test_support.h
index 34ca9d3c109863868e2c4b15f621be45903ae825..efb5a29d764d2a321eb23a11ac41655be4fc0faf 100644
--- a/content/test/test_blink_web_unit_test_support.h
+++ b/content/test/test_blink_web_unit_test_support.h
@@ -25,6 +25,8 @@ class WebLayerTreeView;
}
namespace content {
+class RendererScheduler;
+class WebSchedulerImpl;
// An implementation of blink::WebUnitTestSupport and BlinkPlatformImpl for
// tests.
@@ -83,6 +85,7 @@ class TestBlinkWebUnitTestSupport : public blink::WebUnitTestSupport,
virtual blink::WebData readFromFile(const blink::WebString& path);
virtual bool getBlobItems(const blink::WebString& uuid,
blink::WebVector<blink::WebBlobData::Item*>* items);
+ virtual blink::WebScheduler* scheduler();
private:
MockWebBlobRegistryImpl blob_registry_;
@@ -93,6 +96,8 @@ class TestBlinkWebUnitTestSupport : public blink::WebUnitTestSupport,
scoped_ptr<WebURLLoaderMockFactory> url_loader_factory_;
cc_blink::WebCompositorSupportImpl compositor_support_;
scoped_ptr<base::StatsTable> stats_table_;
+ scoped_ptr<RendererScheduler> renderer_scheduler_;
+ scoped_ptr<WebSchedulerImpl> web_scheduler_;
#if defined(OS_WIN) || defined(OS_MACOSX)
blink::WebThemeEngine* active_theme_engine_;
« no previous file with comments | « content/renderer/scheduler/web_scheduler_impl.h ('k') | content/test/test_blink_web_unit_test_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698