OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/SmallCapsIterator.h" | 5 #include "platform/fonts/SmallCapsIterator.h" |
6 | 6 |
| 7 #include <string> |
7 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
8 #include <string> | |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 struct TestRun { | 12 struct TestRun { |
13 std::string text; | 13 std::string text; |
14 SmallCapsIterator::SmallCapsBehavior code; | 14 SmallCapsIterator::SmallCapsBehavior code; |
15 }; | 15 }; |
16 | 16 |
17 struct ExpectedRun { | 17 struct ExpectedRun { |
18 unsigned limit; | 18 unsigned limit; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 TEST_F(SmallCapsIteratorTest, Armenian) { | 107 TEST_F(SmallCapsIteratorTest, Armenian) { |
108 CHECK_RUNS({{"աբգդ", SmallCapsIterator::SmallCapsUppercaseNeeded}, | 108 CHECK_RUNS({{"աբգդ", SmallCapsIterator::SmallCapsUppercaseNeeded}, |
109 {"ԵԶԷԸ", SmallCapsIterator::SmallCapsSameCase}}); | 109 {"ԵԶԷԸ", SmallCapsIterator::SmallCapsSameCase}}); |
110 } | 110 } |
111 | 111 |
112 TEST_F(SmallCapsIteratorTest, CombiningCharacterSequence) { | 112 TEST_F(SmallCapsIteratorTest, CombiningCharacterSequence) { |
113 CHECK_RUNS({{"èü", SmallCapsIterator::SmallCapsUppercaseNeeded}}); | 113 CHECK_RUNS({{"èü", SmallCapsIterator::SmallCapsUppercaseNeeded}}); |
114 } | 114 } |
115 | 115 |
116 } // namespace blink | 116 } // namespace blink |
OLD | NEW |