OLD | NEW |
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 Loading... |
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 |
OLD | NEW |