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

Side by Side Diff: third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp

Issue 2809363002: Rewrite references to "wtf/" to "platform/wtf/" in core/layout. (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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/layout/ImageQualityController.h" 5 #include "core/layout/ImageQualityController.h"
6 6
7 #include <memory>
7 #include "core/layout/LayoutImage.h" 8 #include "core/layout/LayoutImage.h"
8 #include "core/layout/LayoutTestHelper.h" 9 #include "core/layout/LayoutTestHelper.h"
9 #include "platform/graphics/GraphicsContext.h" 10 #include "platform/graphics/GraphicsContext.h"
10 #include "platform/graphics/paint/PaintController.h" 11 #include "platform/graphics/paint/PaintController.h"
11 #include "platform/scheduler/test/fake_web_task_runner.h" 12 #include "platform/scheduler/test/fake_web_task_runner.h"
13 #include "platform/wtf/PtrUtil.h"
12 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
13 #include "wtf/PtrUtil.h"
14 #include <memory>
15 15
16 namespace blink { 16 namespace blink {
17 17
18 class ImageQualityControllerTest : public RenderingTest { 18 class ImageQualityControllerTest : public RenderingTest {
19 protected: 19 protected:
20 ImageQualityController* Controller() { return controller_; } 20 ImageQualityController* Controller() { return controller_; }
21 21
22 private: 22 private:
23 void SetUp() override { 23 void SetUp() override {
24 controller_ = ImageQualityController::GetImageQualityController(); 24 controller_ = ImageQualityController::GetImageQualityController();
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 *img, test_image.Get(), test_image.Get(), 343 *img, test_image.Get(), test_image.Get(),
344 LayoutSize(4, 4), next_time)); 344 LayoutSize(4, 4), next_time));
345 // Now the timer has restarted, leading to a larger fire interval. 345 // Now the timer has restarted, leading to a larger fire interval.
346 EXPECT_EQ(ImageQualityController::kCLowQualityTimeThreshold, 346 EXPECT_EQ(ImageQualityController::kCLowQualityTimeThreshold,
347 mock_timer->NextFireInterval()); 347 mock_timer->NextFireInterval());
348 } 348 }
349 349
350 #endif 350 #endif
351 351
352 } // namespace blink 352 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698