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

Unified Diff: third_party/WebKit/Source/platform/scheduler/child/idle_helper_unittest.cc

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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/Source/platform/scheduler/child/idle_helper_unittest.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/child/idle_helper_unittest.cc b/third_party/WebKit/Source/platform/scheduler/child/idle_helper_unittest.cc
index 558fb6b95d7e0ef6501244364ad3a6c187c89b26..1ed4dc69093bc7a39eb9e97e44118d0bdd2d4bac 100644
--- a/third_party/WebKit/Source/platform/scheduler/child/idle_helper_unittest.cc
+++ b/third_party/WebKit/Source/platform/scheduler/child/idle_helper_unittest.cc
@@ -93,9 +93,10 @@ void RepostingUpdateClockIdleTestTask(
base::TimeTicks deadline) {
if ((*run_count + 1) < max_idle_task_reposts) {
idle_task_runner->PostIdleTask(
- FROM_HERE, base::Bind(&RepostingUpdateClockIdleTestTask,
- base::Unretained(idle_task_runner), run_count,
- clock, advance_time, deadlines));
+ FROM_HERE,
+ base::Bind(&RepostingUpdateClockIdleTestTask,
+ base::Unretained(idle_task_runner), run_count, clock,
+ advance_time, deadlines));
}
deadlines->push_back(deadline);
(*run_count)++;
@@ -107,8 +108,9 @@ void RepeatingTask(base::SingleThreadTaskRunner* task_runner,
base::TimeDelta delay) {
if (num_repeats > 1) {
task_runner->PostDelayedTask(
- FROM_HERE, base::Bind(&RepeatingTask, base::Unretained(task_runner),
- num_repeats - 1, delay),
+ FROM_HERE,
+ base::Bind(&RepeatingTask, base::Unretained(task_runner),
+ num_repeats - 1, delay),
delay);
}
}
@@ -280,8 +282,9 @@ class BaseIdleHelperTest : public testing::Test {
}
void CheckIdlePeriodStateIs(const char* expected) {
- EXPECT_STREQ(expected, IdleHelper::IdlePeriodStateToString(
- idle_helper_->SchedulerIdlePeriodState()));
+ EXPECT_STREQ(expected,
+ IdleHelper::IdlePeriodStateToString(
+ idle_helper_->SchedulerIdlePeriodState()));
}
const scoped_refptr<TaskQueue>& idle_queue() const {
@@ -526,9 +529,10 @@ TEST_F(IdleHelperWithMessageLoopTest,
clock_->NowTicks() + base::TimeDelta::FromMilliseconds(10));
RunUntilIdle();
// Note we expect task 3 to run last because it's non-nestable.
- EXPECT_THAT(order, testing::ElementsAre(std::string("1"), std::string("2"),
- std::string("4"), std::string("5"),
- std::string("3")));
+ EXPECT_THAT(
+ order,
+ testing::ElementsAre(std::string("1"), std::string("2"), std::string("4"),
+ std::string("5"), std::string("3")));
}
TEST_F(IdleHelperTestWithIdlePeriodObserver, TestLongIdlePeriod) {
@@ -959,8 +963,9 @@ TEST_F(IdleHelperWithQuiescencePeriodTest,
// In this scenario EnableLongIdlePeriod deems us not to be quiescent 5x in
// a row.
base::TimeTicks expected_deadline =
- clock_->NowTicks() + base::TimeDelta::FromMilliseconds(
- 5 * kQuiescenceDelayMs + kLongIdlePeriodMs);
+ clock_->NowTicks() +
+ base::TimeDelta::FromMilliseconds(5 * kQuiescenceDelayMs +
+ kLongIdlePeriodMs);
base::TimeTicks deadline_in_task;
idle_task_runner_->PostIdleTask(
FROM_HERE, base::Bind(&IdleTestTask, &run_count, &deadline_in_task));

Powered by Google App Engine
This is Rietveld 408576698