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

Unified Diff: third_party/WebKit/Source/platform/TimerTest.cpp

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/TimerTest.cpp
diff --git a/third_party/WebKit/Source/platform/TimerTest.cpp b/third_party/WebKit/Source/platform/TimerTest.cpp
index 29b17cb81bc8b260912af172f4e4013e2de7d6f9..4fb4aa195ce7762da6b7d1242fe5e1aae81a2533 100644
--- a/third_party/WebKit/Source/platform/TimerTest.cpp
+++ b/third_party/WebKit/Source/platform/TimerTest.cpp
@@ -297,9 +297,10 @@ TEST_F(TimerTest, StartRepeatingTask) {
EXPECT_FLOAT_EQ(1.0, runTime);
runUntilDeadline(m_startTime + 5.5);
- EXPECT_THAT(m_runTimes, ElementsAre(m_startTime + 1.0, m_startTime + 2.0,
- m_startTime + 3.0, m_startTime + 4.0,
- m_startTime + 5.0));
+ EXPECT_THAT(
+ m_runTimes,
+ ElementsAre(m_startTime + 1.0, m_startTime + 2.0, m_startTime + 3.0,
+ m_startTime + 4.0, m_startTime + 5.0));
}
TEST_F(TimerTest, StartRepeatingTask_ThenCancel) {
@@ -333,8 +334,9 @@ TEST_F(TimerTest, StartRepeatingTask_ThenPostOneShot) {
timer.startOneShot(0, BLINK_FROM_HERE);
m_platform->runUntilIdle();
- EXPECT_THAT(m_runTimes, ElementsAre(m_startTime + 1.0, m_startTime + 2.0,
- m_startTime + 2.5));
+ EXPECT_THAT(
+ m_runTimes,
+ ElementsAre(m_startTime + 1.0, m_startTime + 2.0, m_startTime + 2.5));
}
TEST_F(TimerTest, IsActive_NeverPosted) {
@@ -689,11 +691,13 @@ TEST_F(TimerTest, MoveToNewTaskRunnerRepeating) {
m_platform->runForPeriodSeconds(2);
- EXPECT_THAT(m_runTimes, ElementsAre(startTime + 1.0, startTime + 2.0,
- startTime + 3.0, startTime + 4.0));
+ EXPECT_THAT(m_runTimes,
+ ElementsAre(startTime + 1.0, startTime + 2.0, startTime + 3.0,
+ startTime + 4.0));
- EXPECT_THAT(runOrder, ElementsAre(webTaskRunner1, webTaskRunner1,
- webTaskRunner2, webTaskRunner2));
+ EXPECT_THAT(runOrder,
+ ElementsAre(webTaskRunner1, webTaskRunner1, webTaskRunner2,
+ webTaskRunner2));
EXPECT_TRUE(taskRunner1->IsEmpty());
EXPECT_FALSE(taskRunner2->IsEmpty());
« no previous file with comments | « third_party/WebKit/Source/platform/SharedBufferTest.cpp ('k') | third_party/WebKit/Source/platform/WebTaskRunner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698