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

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: 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/test/blink_test_environment.cc ('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..0fd1452da25a60b6d21b4adde4b0fd1ed5bdf97e 100644
--- a/content/test/test_blink_web_unit_test_support.h
+++ b/content/test/test_blink_web_unit_test_support.h
@@ -25,13 +25,16 @@ class WebLayerTreeView;
}
namespace content {
+class RendererScheduler;
+class WebSchedulerImpl;
// An implementation of blink::WebUnitTestSupport and BlinkPlatformImpl for
// tests.
class TestBlinkWebUnitTestSupport : public blink::WebUnitTestSupport,
public BlinkPlatformImpl {
public:
- TestBlinkWebUnitTestSupport();
+ // Takes ownership of |renderer_scheduler|.
+ explicit TestBlinkWebUnitTestSupport(RendererScheduler* renderer_scheduler);
Sami 2015/01/28 12:16:27 Could you make this a scoped_ptr so the ownership
alex clarke (OOO till 29th) 2015/01/28 12:36:09 Done.
virtual ~TestBlinkWebUnitTestSupport();
virtual blink::WebBlobRegistry* blobRegistry();
@@ -83,6 +86,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 +97,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/test/blink_test_environment.cc ('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