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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/shaping/ShapingLineBreakerTest.cpp

Issue 2795413003: Rewrite references to "wtf/" to "platform/wtf/" in platform/fonts. (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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 "platform/fonts/shaping/ShapingLineBreaker.h" 5 #include "platform/fonts/shaping/ShapingLineBreaker.h"
6 6
7 #include <unicode/uscript.h> 7 #include <unicode/uscript.h>
8 #include "platform/fonts/Font.h" 8 #include "platform/fonts/Font.h"
9 #include "platform/fonts/FontCache.h" 9 #include "platform/fonts/FontCache.h"
10 #include "platform/fonts/shaping/ShapeResultInlineHeaders.h" 10 #include "platform/fonts/shaping/ShapeResultInlineHeaders.h"
11 #include "platform/fonts/shaping/ShapeResultTestInfo.h" 11 #include "platform/fonts/shaping/ShapeResultTestInfo.h"
12 #include "platform/text/TextBreakIterator.h" 12 #include "platform/text/TextBreakIterator.h"
13 #include "platform/text/TextRun.h" 13 #include "platform/text/TextRun.h"
14 #include "platform/wtf/Vector.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 #include "wtf/Vector.h"
16 16
17 namespace blink { 17 namespace blink {
18 18
19 class ShapingLineBreakerTest : public ::testing::Test { 19 class ShapingLineBreakerTest : public ::testing::Test {
20 protected: 20 protected:
21 void SetUp() override { 21 void SetUp() override {
22 fontDescription.setComputedSize(12.0); 22 fontDescription.setComputedSize(12.0);
23 font = Font(fontDescription); 23 font = Font(fontDescription);
24 font.update(nullptr); 24 font.update(nullptr);
25 } 25 }
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 173
174 HarfBuzzShaper shaper(mixedString, 8); 174 HarfBuzzShaper shaper(mixedString, 8);
175 RefPtr<ShapeResult> result = shaper.shape(&font, direction); 175 RefPtr<ShapeResult> result = shaper.shape(&font, direction);
176 176
177 ShapingLineBreaker breaker(&shaper, &font, result.get(), locale, breakType); 177 ShapingLineBreaker breaker(&shaper, &font, result.get(), locale, breakType);
178 unsigned breakOffset = 0; 178 unsigned breakOffset = 0;
179 breaker.shapeLine(3, result->snappedWidth() / LayoutUnit(2), &breakOffset); 179 breaker.shapeLine(3, result->snappedWidth() / LayoutUnit(2), &breakOffset);
180 } 180 }
181 181
182 } // namespace blink 182 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698