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

Side by Side Diff: chrome/renderer/spellchecker/spellcheck_worditerator_unittest.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_worditerator.cc ('k') | chrome/renderer/translate/translate_helper_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698