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

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

Issue 3447008: base: Finish moving the SplitString functions from string_util.h to string_split.h (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: chromeos fixes Created 10 years, 3 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 | « chrome/installer/util/version.cc ('k') | chrome/renderer/webplugin_delegate_proxy.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/format_macros.h" 8 #include "base/format_macros.h"
9 #include "base/string_split.h"
9 #include "base/string_util.h" 10 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
11 #include "chrome/renderer/spellchecker/spellcheck_worditerator.h" 12 #include "chrome/renderer/spellchecker/spellcheck_worditerator.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 14
14 namespace { 15 namespace {
15 16
16 struct TestCase { 17 struct TestCase {
17 const char* language; 18 const char* language;
18 bool allow_contraction; 19 bool allow_contraction;
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 156
156 // When SpellcheckWordIterator uses an inconsistent ICU ruleset, the following 157 // When SpellcheckWordIterator uses an inconsistent ICU ruleset, the following
157 // iterator.GetNextWord() call gets stuck in an infinite loop. Therefore, this 158 // iterator.GetNextWord() call gets stuck in an infinite loop. Therefore, this
158 // test succeeds if this call returns without timeouts. 159 // test succeeds if this call returns without timeouts.
159 string16 actual_word; 160 string16 actual_word;
160 int actual_start, actual_end; 161 int actual_start, actual_end;
161 EXPECT_FALSE(iterator.GetNextWord(&actual_word, &actual_start, &actual_end)); 162 EXPECT_FALSE(iterator.GetNextWord(&actual_word, &actual_start, &actual_end));
162 EXPECT_EQ(0, actual_start); 163 EXPECT_EQ(0, actual_start);
163 EXPECT_EQ(0, actual_end); 164 EXPECT_EQ(0, actual_end);
164 } 165 }
OLDNEW
« no previous file with comments | « chrome/installer/util/version.cc ('k') | chrome/renderer/webplugin_delegate_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698