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

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

Issue 1479003002: Remove Simple Text Path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 1 month 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/HarfBuzzShaper.h" 5 #include "platform/fonts/shaping/HarfBuzzShaper.h"
6 6
7 #include "platform/fonts/Font.h" 7 #include "platform/fonts/Font.h"
8 #include "platform/fonts/FontCache.h" 8 #include "platform/fonts/FontCache.h"
9 #include "platform/fonts/GlyphPage.h"
10 #include "platform/fonts/shaping/ShapeResultTestInfo.h" 9 #include "platform/fonts/shaping/ShapeResultTestInfo.h"
11 #include "platform/text/TextRun.h" 10 #include "platform/text/TextRun.h"
12 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
13 #include "wtf/Vector.h" 12 #include "wtf/Vector.h"
14 #include <unicode/uscript.h> 13 #include <unicode/uscript.h>
15 14
16 namespace blink { 15 namespace blink {
17 16
18 class HarfBuzzShaperTest : public ::testing::Test { 17 class HarfBuzzShaperTest : public ::testing::Test {
19 protected: 18 protected:
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 189
191 ASSERT_EQ(1u, testInfo(result)->numberOfRunsForTesting()); 190 ASSERT_EQ(1u, testInfo(result)->numberOfRunsForTesting());
192 ASSERT_TRUE( 191 ASSERT_TRUE(
193 testInfo(result)->runInfoForTesting(0, startIndex, numGlyphs, script)); 192 testInfo(result)->runInfoForTesting(0, startIndex, numGlyphs, script));
194 EXPECT_EQ(0u, startIndex); 193 EXPECT_EQ(0u, startIndex);
195 EXPECT_EQ(3u, numGlyphs); 194 EXPECT_EQ(3u, numGlyphs);
196 EXPECT_EQ(HB_SCRIPT_ARABIC, script); 195 EXPECT_EQ(HB_SCRIPT_ARABIC, script);
197 } 196 }
198 197
199 } // namespace blink 198 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698