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

Unified Diff: content/renderer/scheduler/webthread_impl_for_scheduler_unittest.cc

Issue 970473004: [content] Add support for Non nestable idle tasks the the RendererScheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix contentperftests Created 5 years, 9 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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/scheduler/webthread_impl_for_scheduler_unittest.cc
diff --git a/content/renderer/scheduler/webthread_impl_for_scheduler_unittest.cc b/content/renderer/scheduler/webthread_impl_for_scheduler_unittest.cc
index 68d3197e58521322d6b2bbb3a902b8d452589f54..f943d33008f46d9b0dfb545bcc80a072d6cfe175 100644
--- a/content/renderer/scheduler/webthread_impl_for_scheduler_unittest.cc
+++ b/content/renderer/scheduler/webthread_impl_for_scheduler_unittest.cc
@@ -6,6 +6,7 @@
#include "base/run_loop.h"
#include "content/renderer/scheduler/renderer_scheduler_impl.h"
+#include "content/renderer/scheduler/renderer_scheduler_message_loop_delegate.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/WebKit/public/platform/WebTraceLocation.h"
@@ -30,7 +31,8 @@ class MockTaskObserver : public blink::WebThread::TaskObserver {
class WebThreadImplForSchedulerTest : public testing::Test {
public:
WebThreadImplForSchedulerTest()
- : scheduler_(message_loop_.task_runner()),
+ : scheduler_(
+ RendererSchedulerMessageLoopDelegate::Create(&message_loop_)),
default_task_runner_(scheduler_.DefaultTaskRunner()),
thread_(&scheduler_) {}
« no previous file with comments | « content/renderer/scheduler/web_scheduler_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698