OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> |
| 6 |
5 #include <string> | 7 #include <string> |
6 #include <vector> | 8 #include <vector> |
7 | 9 |
8 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
9 #include "base/i18n/break_iterator.h" | 11 #include "base/i18n/break_iterator.h" |
| 12 #include "base/macros.h" |
10 #include "base/strings/string_split.h" | 13 #include "base/strings/string_split.h" |
11 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
12 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
13 #include "chrome/renderer/spellchecker/spellcheck_worditerator.h" | 16 #include "chrome/renderer/spellchecker/spellcheck_worditerator.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
15 | 18 |
16 using base::i18n::BreakIterator; | 19 using base::i18n::BreakIterator; |
17 | 20 |
18 namespace { | 21 namespace { |
19 | 22 |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 EXPECT_EQ(base::UTF8ToUTF16("."), iter.GetString()); | 491 EXPECT_EQ(base::UTF8ToUTF16("."), iter.GetString()); |
489 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_SKIPPABLE_WORD); | 492 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_SKIPPABLE_WORD); |
490 EXPECT_TRUE(iter.Advance()); | 493 EXPECT_TRUE(iter.Advance()); |
491 EXPECT_EQ(base::UTF8ToUTF16(" "), iter.GetString()); | 494 EXPECT_EQ(base::UTF8ToUTF16(" "), iter.GetString()); |
492 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_SKIPPABLE_WORD); | 495 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_SKIPPABLE_WORD); |
493 EXPECT_TRUE(iter.Advance()); | 496 EXPECT_TRUE(iter.Advance()); |
494 EXPECT_EQ(base::UTF8ToUTF16(","), iter.GetString()); | 497 EXPECT_EQ(base::UTF8ToUTF16(","), iter.GetString()); |
495 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_SKIPPABLE_WORD); | 498 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_SKIPPABLE_WORD); |
496 EXPECT_FALSE(iter.Advance()); | 499 EXPECT_FALSE(iter.Advance()); |
497 } | 500 } |
OLD | NEW |