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

Unified Diff: components/scheduler/child/worker_scheduler_impl_unittest.cc

Issue 1058873010: Move blink scheduler implementation into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 8 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: components/scheduler/child/worker_scheduler_impl_unittest.cc
diff --git a/content/child/scheduler/worker_scheduler_impl_unittest.cc b/components/scheduler/child/worker_scheduler_impl_unittest.cc
similarity index 95%
rename from content/child/scheduler/worker_scheduler_impl_unittest.cc
rename to components/scheduler/child/worker_scheduler_impl_unittest.cc
index edeaa369bfe698b372f0802dd9ffb44d1c57040f..495e88b657cb13fe6f4769ff35c5443c6d36da67 100644
--- a/content/child/scheduler/worker_scheduler_impl_unittest.cc
+++ b/components/scheduler/child/worker_scheduler_impl_unittest.cc
@@ -2,21 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/child/scheduler/worker_scheduler_impl.h"
+#include "components/scheduler/child/worker_scheduler_impl.h"
#include "base/callback.h"
#include "base/strings/stringprintf.h"
#include "cc/test/ordered_simple_task_runner.h"
#include "cc/test/test_now_source.h"
-#include "content/child/scheduler/nestable_task_runner_for_test.h"
-#include "content/child/scheduler/scheduler_message_loop_delegate.h"
-#include "content/test/test_time_source.h"
+#include "components/scheduler/child/nestable_task_runner_for_test.h"
+#include "components/scheduler/child/scheduler_message_loop_delegate.h"
+#include "components/scheduler/child/test_time_source.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
using testing::ElementsAreArray;
-namespace content {
+namespace scheduler {
namespace {
void NopTask() {
@@ -28,15 +28,15 @@ int TimeTicksToIntMs(const base::TimeTicks& time) {
void WakeUpTask(std::vector<std::string>* timeline, cc::TestNowSource* clock) {
if (timeline) {
- timeline->push_back(base::StringPrintf(
- "run WakeUpTask @ %d", TimeTicksToIntMs(clock->Now())));
+ timeline->push_back(base::StringPrintf("run WakeUpTask @ %d",
+ TimeTicksToIntMs(clock->Now())));
}
}
void RecordTimelineTask(std::vector<std::string>* timeline,
cc::TestNowSource* clock) {
- timeline->push_back(base::StringPrintf(
- "run RecordTimelineTask @ %d", TimeTicksToIntMs(clock->Now())));
+ timeline->push_back(base::StringPrintf("run RecordTimelineTask @ %d",
+ TimeTicksToIntMs(clock->Now())));
}
void AppendToVectorTestTask(std::vector<std::string>* vector,
@@ -423,4 +423,4 @@ TEST_F(WorkerSchedulerImplTest, TestLongIdlePeriodTimeline) {
EXPECT_THAT(timeline, ElementsAreArray(expected_timeline));
}
-} // namespace content
+} // namespace scheduler
« no previous file with comments | « components/scheduler/child/worker_scheduler_impl.cc ('k') | components/scheduler/common/scheduler_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698