Index: third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc |
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc b/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc |
index 79cef1c6244f84d61a0c8960f4472ce81d3869ff..050b0f3b544fa77d7993d2f49c1dd062cfc4a356 100644 |
--- a/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc |
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc |
@@ -558,8 +558,9 @@ TEST_F(TaskQueueThrottlerTest, EnableAndDisableTimeBudgetPool) { |
mock_task_runner_->RunUntilIdle(); |
- EXPECT_THAT(run_times, ElementsAre(base::TimeTicks() + |
- base::TimeDelta::FromMilliseconds(1000))); |
+ EXPECT_THAT( |
+ run_times, |
+ ElementsAre(base::TimeTicks() + base::TimeDelta::FromMilliseconds(1000))); |
run_times.clear(); |
LazyNow lazy_now(clock_.get()); |
@@ -573,8 +574,9 @@ TEST_F(TaskQueueThrottlerTest, EnableAndDisableTimeBudgetPool) { |
mock_task_runner_->RunUntilIdle(); |
- EXPECT_THAT(run_times, ElementsAre(base::TimeTicks() + |
- base::TimeDelta::FromMilliseconds(2000))); |
+ EXPECT_THAT( |
+ run_times, |
+ ElementsAre(base::TimeTicks() + base::TimeDelta::FromMilliseconds(2000))); |
run_times.clear(); |
lazy_now = LazyNow(clock_.get()); |
@@ -589,8 +591,9 @@ TEST_F(TaskQueueThrottlerTest, EnableAndDisableTimeBudgetPool) { |
mock_task_runner_->RunUntilIdle(); |
- EXPECT_THAT(run_times, ElementsAre(base::TimeTicks() + |
- base::TimeDelta::FromMilliseconds(4000))); |
+ EXPECT_THAT( |
+ run_times, |
+ ElementsAre(base::TimeTicks() + base::TimeDelta::FromMilliseconds(4000))); |
run_times.clear(); |
task_queue_throttler_->DecreaseThrottleRefCount(timer_queue_.get()); |
@@ -787,8 +790,9 @@ TEST_F(TaskQueueThrottlerTest, EnableAndDisableThrottling) { |
mock_task_runner_->RunUntilTime(base::TimeTicks() + |
base::TimeDelta::FromMilliseconds(500)); |
- EXPECT_THAT(run_times, ElementsAre(base::TimeTicks() + |
- base::TimeDelta::FromMilliseconds(300))); |
+ EXPECT_THAT( |
+ run_times, |
+ ElementsAre(base::TimeTicks() + base::TimeDelta::FromMilliseconds(300))); |
run_times.clear(); |
// Schedule a task at 900ms. It should proceed as normal. |
@@ -827,8 +831,9 @@ TEST_F(TaskQueueThrottlerTest, EnableAndDisableThrottling) { |
mock_task_runner_->RunUntilIdle(); |
- EXPECT_THAT(run_times, ElementsAre(base::TimeTicks() + |
- base::TimeDelta::FromMilliseconds(2000))); |
+ EXPECT_THAT( |
+ run_times, |
+ ElementsAre(base::TimeTicks() + base::TimeDelta::FromMilliseconds(2000))); |
} |
namespace { |
@@ -948,8 +953,9 @@ TEST_F(TaskQueueThrottlerTest, EnableAndDisableThrottlingAndTimeBudgets) { |
mock_task_runner_->RunUntilIdle(); |
- EXPECT_THAT(run_times, ElementsAre(base::TimeTicks() + |
- base::TimeDelta::FromMilliseconds(300))); |
+ EXPECT_THAT( |
+ run_times, |
+ ElementsAre(base::TimeTicks() + base::TimeDelta::FromMilliseconds(300))); |
} |
TEST_F(TaskQueueThrottlerTest, AddQueueToBudgetPoolWhenThrottlingDisabled) { |
@@ -975,8 +981,9 @@ TEST_F(TaskQueueThrottlerTest, AddQueueToBudgetPoolWhenThrottlingDisabled) { |
mock_task_runner_->RunUntilIdle(); |
- EXPECT_THAT(run_times, ElementsAre(base::TimeTicks() + |
- base::TimeDelta::FromMilliseconds(300))); |
+ EXPECT_THAT( |
+ run_times, |
+ ElementsAre(base::TimeTicks() + base::TimeDelta::FromMilliseconds(300))); |
} |
TEST_F(TaskQueueThrottlerTest, DisabledQueueThenEnabledQueue) { |
@@ -1003,8 +1010,9 @@ TEST_F(TaskQueueThrottlerTest, DisabledQueueThenEnabledQueue) { |
mock_task_runner_->RunUntilIdle(); |
- EXPECT_THAT(run_times, ElementsAre(base::TimeTicks() + |
- base::TimeDelta::FromMilliseconds(1000))); |
+ EXPECT_THAT( |
+ run_times, |
+ ElementsAre(base::TimeTicks() + base::TimeDelta::FromMilliseconds(1000))); |
voter->SetQueueEnabled(true); |
mock_task_runner_->RunUntilIdle(); |