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

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

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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/paint/TextPainter.h" 5 #include "core/paint/TextPainter.h"
6 6
7 #include <memory>
7 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
8 #include "core/CSSValueKeywords.h" 9 #include "core/CSSValueKeywords.h"
9 #include "core/css/CSSPrimitiveValue.h" 10 #include "core/css/CSSPrimitiveValue.h"
10 #include "core/frame/Settings.h" 11 #include "core/frame/Settings.h"
11 #include "core/layout/LayoutTestHelper.h" 12 #include "core/layout/LayoutTestHelper.h"
12 #include "core/layout/api/LineLayoutText.h" 13 #include "core/layout/api/LineLayoutText.h"
13 #include "core/paint/PaintInfo.h" 14 #include "core/paint/PaintInfo.h"
14 #include "core/style/ShadowData.h" 15 #include "core/style/ShadowData.h"
15 #include "core/style/ShadowList.h" 16 #include "core/style/ShadowList.h"
16 #include "platform/graphics/paint/PaintController.h" 17 #include "platform/graphics/paint/PaintController.h"
17 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
18 #include <memory>
19 19
20 namespace blink { 20 namespace blink {
21 namespace { 21 namespace {
22 22
23 class TextPainterTest : public RenderingTest { 23 class TextPainterTest : public RenderingTest {
24 public: 24 public:
25 TextPainterTest() 25 TextPainterTest()
26 : layout_text_(nullptr), 26 : layout_text_(nullptr),
27 paint_controller_(PaintController::Create()), 27 paint_controller_(PaintController::Create()),
28 context_(*paint_controller_) {} 28 context_(*paint_controller_) {}
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 TextPainter::Style text_style = TextPainter::TextPaintingStyle( 159 TextPainter::Style text_style = TextPainter::TextPaintingStyle(
160 GetLineLayoutText().GetDocument(), GetLineLayoutText().StyleRef(), 160 GetLineLayoutText().GetDocument(), GetLineLayoutText().StyleRef(),
161 CreatePaintInfo(false /* usesTextAsClip */, true /* isPrinting */)); 161 CreatePaintInfo(false /* usesTextAsClip */, true /* isPrinting */));
162 EXPECT_EQ(Color(255, 220, 220).Dark(), text_style.fill_color); 162 EXPECT_EQ(Color(255, 220, 220).Dark(), text_style.fill_color);
163 EXPECT_EQ(Color(220, 255, 220).Dark(), text_style.stroke_color); 163 EXPECT_EQ(Color(220, 255, 220).Dark(), text_style.stroke_color);
164 EXPECT_EQ(Color(220, 220, 255).Dark(), text_style.emphasis_mark_color); 164 EXPECT_EQ(Color(220, 220, 255).Dark(), text_style.emphasis_mark_color);
165 } 165 }
166 166
167 } // namespace 167 } // namespace
168 } // namespace blink 168 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698