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

Side by Side Diff: third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp

Issue 2817663002: Rewrite references to "wtf/" to "platform/wtf/" in core/paint. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/paint/FirstMeaningfulPaintDetector.h" 5 #include "core/paint/FirstMeaningfulPaintDetector.h"
6 6
7 #include "core/paint/PaintTiming.h" 7 #include "core/paint/PaintTiming.h"
8 #include "core/testing/DummyPageHolder.h" 8 #include "core/testing/DummyPageHolder.h"
9 #include "platform/testing/TestingPlatformSupport.h" 9 #include "platform/testing/TestingPlatformSupport.h"
10 #include "platform/wtf/text/StringBuilder.h"
10 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
11 #include "wtf/text/StringBuilder.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class FirstMeaningfulPaintDetectorTest : public testing::Test { 15 class FirstMeaningfulPaintDetectorTest : public testing::Test {
16 protected: 16 protected:
17 void SetUp() override { 17 void SetUp() override {
18 platform_->AdvanceClockSeconds(1); 18 platform_->AdvanceClockSeconds(1);
19 dummy_page_holder_ = DummyPageHolder::Create(IntSize(800, 600)); 19 dummy_page_holder_ = DummyPageHolder::Create(IntSize(800, 600));
20 } 20 }
21 21
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 platform_->RunForPeriodSeconds(kNetwork2QuietWindowSeconds - 0.1); 243 platform_->RunForPeriodSeconds(kNetwork2QuietWindowSeconds - 0.1);
244 EXPECT_TRUE(IsNetwork2QuietTimerActive()); 244 EXPECT_TRUE(IsNetwork2QuietTimerActive());
245 EXPECT_FALSE(HadNetwork2Quiet()); 245 EXPECT_FALSE(HadNetwork2Quiet());
246 246
247 SetActiveConnections(1); // This should not reset the 2-quiet timer. 247 SetActiveConnections(1); // This should not reset the 2-quiet timer.
248 platform_->RunForPeriodSeconds(0.1001); 248 platform_->RunForPeriodSeconds(0.1001);
249 EXPECT_TRUE(HadNetwork2Quiet()); 249 EXPECT_TRUE(HadNetwork2Quiet());
250 } 250 }
251 251
252 } // namespace blink 252 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698