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

Unified Diff: third_party/WebKit/public/platform/scheduler/test/renderer_scheduler_test_support.h

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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
Index: third_party/WebKit/public/platform/scheduler/test/renderer_scheduler_test_support.h
diff --git a/third_party/WebKit/public/platform/scheduler/test/renderer_scheduler_test_support.h b/third_party/WebKit/public/platform/scheduler/test/renderer_scheduler_test_support.h
new file mode 100644
index 0000000000000000000000000000000000000000..6e99ee31538bfa22ec9afaa5f1750925e3708aeb
--- /dev/null
+++ b/third_party/WebKit/public/platform/scheduler/test/renderer_scheduler_test_support.h
@@ -0,0 +1,24 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_TEST_RENDERER_SCHEDULER_TEST_SUPPORT_H_
+#define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_TEST_RENDERER_SCHEDULER_TEST_SUPPORT_H_
+
+#include "base/bind.h"
+#include "base/memory/ptr_util.h"
+
+namespace blink {
+namespace scheduler {
+
+class RendererScheduler;
+
+std::unique_ptr<RendererScheduler> CreateRendererSchedulerForTests();
+
+void RunIdleTasksForTesting(RendererScheduler* scheduler,
+ const base::Closure& callback);
+
+} // namespace scheduler
+} // namespace blink
+
+#endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_TEST_RENDERER_SCHEDULER_TEST_SUPPORT_H_

Powered by Google App Engine
This is Rietveld 408576698