| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/i18n/break_iterator.h" | 5 #include "base/i18n/break_iterator.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
| 7 #include "base/strings/string_piece.h" | 10 #include "base/strings/string_piece.h" |
| 8 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 14 |
| 12 namespace base { | 15 namespace base { |
| 13 namespace i18n { | 16 namespace i18n { |
| 14 | 17 |
| 15 TEST(BreakIteratorTest, BreakWordEmpty) { | 18 TEST(BreakIteratorTest, BreakWordEmpty) { |
| 16 string16 empty; | 19 string16 empty; |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 EXPECT_EQ(base::UTF8ToUTF16("."), iter.GetString()); | 452 EXPECT_EQ(base::UTF8ToUTF16("."), iter.GetString()); |
| 450 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_SKIPPABLE_WORD); | 453 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_SKIPPABLE_WORD); |
| 451 EXPECT_TRUE(iter.Advance()); | 454 EXPECT_TRUE(iter.Advance()); |
| 452 EXPECT_EQ(base::UTF8ToUTF16("."), iter.GetString()); | 455 EXPECT_EQ(base::UTF8ToUTF16("."), iter.GetString()); |
| 453 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_SKIPPABLE_WORD); | 456 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_SKIPPABLE_WORD); |
| 454 EXPECT_FALSE(iter.Advance()); | 457 EXPECT_FALSE(iter.Advance()); |
| 455 } | 458 } |
| 456 | 459 |
| 457 } // namespace i18n | 460 } // namespace i18n |
| 458 } // namespace base | 461 } // namespace base |
| OLD | NEW |