Chromium Code Reviews| Index: content/test/test_blink_web_unit_test_support.cc |
| diff --git a/content/test/test_blink_web_unit_test_support.cc b/content/test/test_blink_web_unit_test_support.cc |
| index b358a0e5c1d6a44f557aa10c690866beb6925f61..28e2950cfe962f69cdc975fe94b319fd48b8d611 100644 |
| --- a/content/test/test_blink_web_unit_test_support.cc |
| +++ b/content/test/test_blink_web_unit_test_support.cc |
| @@ -12,6 +12,8 @@ |
| #include "base/path_service.h" |
| #include "base/strings/utf_string_conversions.h" |
| #include "content/public/common/content_switches.h" |
| +#include "content/renderer/scheduler/renderer_scheduler.h" |
| +#include "content/renderer/scheduler/web_scheduler_impl.h" |
| #include "content/test/mock_webclipboard_impl.h" |
| #include "content/test/web_gesture_curve_mock.h" |
| #include "content/test/web_layer_tree_view_impl_for_testing.h" |
| @@ -44,7 +46,11 @@ |
| namespace content { |
| -TestBlinkWebUnitTestSupport::TestBlinkWebUnitTestSupport() { |
| +TestBlinkWebUnitTestSupport::TestBlinkWebUnitTestSupport( |
| + scoped_ptr<RendererScheduler> renderer_scheduler) |
| + : BlinkPlatformImpl(renderer_scheduler->DefaultTaskRunner()), |
| + renderer_scheduler_(renderer_scheduler.release()), |
|
no sievers
2015/01/28 18:35:22
nit: drop '.release()', should be able to construc
alex clarke (OOO till 29th)
2015/01/29 11:29:19
Unfortunately I get a compile error if I try that:
|
| + web_scheduler_(new WebSchedulerImpl(renderer_scheduler_.get())) { |
| #if defined(OS_MACOSX) |
| base::mac::ScopedNSAutoreleasePool autorelease_pool; |
| #endif |
| @@ -319,4 +325,8 @@ bool TestBlinkWebUnitTestSupport::getBlobItems( |
| return blob_registry_.GetBlobItems(uuid, items); |
| } |
| +blink::WebScheduler* TestBlinkWebUnitTestSupport::scheduler() { |
| + return web_scheduler_.get(); |
| +} |
| + |
| } // namespace content |