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

Side by Side Diff: base/i18n/break_iterator_unittest.cc

Issue 1542323002: Switch to standard integer types in base/i18n/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: header Created 4 years, 12 months 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
« no previous file with comments | « base/i18n/break_iterator.cc ('k') | base/i18n/build_utf8_validator_tables.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « base/i18n/break_iterator.cc ('k') | base/i18n/build_utf8_validator_tables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698