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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/shaping/CachingWordShaperTest.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 (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "platform/fonts/shaping/CachingWordShaper.h" 5 #include "platform/fonts/shaping/CachingWordShaper.h"
6 6
7 #include <memory>
7 #include "platform/fonts/CharacterRange.h" 8 #include "platform/fonts/CharacterRange.h"
8 #include "platform/fonts/FontCache.h" 9 #include "platform/fonts/FontCache.h"
9 #include "platform/fonts/GlyphBuffer.h" 10 #include "platform/fonts/GlyphBuffer.h"
10 #include "platform/fonts/shaping/CachingWordShapeIterator.h" 11 #include "platform/fonts/shaping/CachingWordShapeIterator.h"
11 #include "platform/fonts/shaping/ShapeResultTestInfo.h" 12 #include "platform/fonts/shaping/ShapeResultTestInfo.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 #include "wtf/PtrUtil.h" 14 #include "wtf/PtrUtil.h"
14 #include <memory>
15 15
16 namespace blink { 16 namespace blink {
17 17
18 class CachingWordShaperTest : public ::testing::Test { 18 class CachingWordShaperTest : public ::testing::Test {
19 protected: 19 protected:
20 void SetUp() override { 20 void SetUp() override {
21 fontDescription.setComputedSize(12.0); 21 fontDescription.setComputedSize(12.0);
22 fontDescription.setLocale(LayoutLocale::get("en")); 22 fontDescription.setLocale(LayoutLocale::get("en"));
23 ASSERT_EQ(USCRIPT_LATIN, fontDescription.script()); 23 ASSERT_EQ(USCRIPT_LATIN, fontDescription.script());
24 fontDescription.setGenericFamily(FontDescription::StandardFamily); 24 fontDescription.setGenericFamily(FontDescription::StandardFamily);
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 // The total width of periods and spaces should be longer than the width of 468 // The total width of periods and spaces should be longer than the width of
469 // periods alone. 469 // periods alone.
470 ASSERT_GT(periodsAndSpacesWidth, periodsWidth); 470 ASSERT_GT(periodsAndSpacesWidth, periodsWidth);
471 471
472 // The glyph bounds of periods and spaces should be longer than the glyph 472 // The glyph bounds of periods and spaces should be longer than the glyph
473 // bounds of periods alone. 473 // bounds of periods alone.
474 ASSERT_GT(periodsAndSpacesGlyphBounds.width(), periodsGlyphBounds.width()); 474 ASSERT_GT(periodsAndSpacesGlyphBounds.width(), periodsGlyphBounds.width());
475 } 475 }
476 476
477 } // namespace blink 477 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698