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

Side by Side Diff: third_party/WebKit/Source/core/html/canvas/CanvasFontCacheTest.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) 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 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/html/canvas/CanvasFontCache.h" 5 #include "core/html/canvas/CanvasFontCache.h"
6 6
7 #include <memory>
7 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
8 #include "core/frame/FrameView.h" 9 #include "core/frame/FrameView.h"
9 #include "core/html/canvas/CanvasContextCreationAttributes.h" 10 #include "core/html/canvas/CanvasContextCreationAttributes.h"
10 #include "core/html/canvas/CanvasRenderingContext.h" 11 #include "core/html/canvas/CanvasRenderingContext.h"
11 #include "core/loader/EmptyClients.h" 12 #include "core/loader/EmptyClients.h"
12 #include "core/testing/DummyPageHolder.h" 13 #include "core/testing/DummyPageHolder.h"
13 #include "platform/graphics/UnacceleratedImageBufferSurface.h" 14 #include "platform/graphics/UnacceleratedImageBufferSurface.h"
14 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
15 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
16 #include <memory>
17 17
18 using ::testing::Mock; 18 using ::testing::Mock;
19 19
20 namespace blink { 20 namespace blink {
21 21
22 class CanvasFontCacheTest : public ::testing::Test { 22 class CanvasFontCacheTest : public ::testing::Test {
23 protected: 23 protected:
24 CanvasFontCacheTest(); 24 CanvasFontCacheTest();
25 void SetUp() override; 25 void SetUp() override;
26 26
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 EXPECT_FALSE(cache()->isInCache("15px sans-serif")); 92 EXPECT_FALSE(cache()->isInCache("15px sans-serif"));
93 93
94 page().page().setVisibilityState(PageVisibilityStateVisible, false); 94 page().page().setVisibilityState(PageVisibilityStateVisible, false);
95 context2d()->setFont("15px sans-serif"); 95 context2d()->setFont("15px sans-serif");
96 context2d()->setFont("10px sans-serif"); 96 context2d()->setFont("10px sans-serif");
97 EXPECT_TRUE(cache()->isInCache("10px sans-serif")); 97 EXPECT_TRUE(cache()->isInCache("10px sans-serif"));
98 EXPECT_TRUE(cache()->isInCache("15px sans-serif")); 98 EXPECT_TRUE(cache()->isInCache("15px sans-serif"));
99 } 99 }
100 100
101 } // namespace blink 101 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698