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

Unified Diff: chrome/renderer/spellchecker/spellcheck_unittest.cc

Issue 12315071: Revert 184352 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/spellchecker/spellcheck_unittest.cc
===================================================================
--- chrome/renderer/spellchecker/spellcheck_unittest.cc (revision 184354)
+++ chrome/renderer/spellchecker/spellcheck_unittest.cc (working copy)
@@ -390,7 +390,7 @@
int misspelling_start;
int misspelling_length;
bool result = spell_check()->SpellCheckWord(
- base::WideToUTF16(kTestCases[i].input).c_str(),
+ WideToUTF16(kTestCases[i].input).c_str(),
static_cast<int>(input_length),
0,
&misspelling_start,
@@ -441,7 +441,7 @@
int misspelling_start;
int misspelling_length;
bool result = spell_check()->SpellCheckWord(
- base::WideToUTF16(kTestCases[i].input).c_str(),
+ WideToUTF16(kTestCases[i].input).c_str(),
static_cast<int>(input_length),
0,
&misspelling_start,
@@ -454,8 +454,8 @@
// Check if the suggested words occur.
bool suggested_word_is_present = false;
for (int j = 0; j < static_cast<int>(suggestions.size()); j++) {
- if (suggestions.at(j).compare(base::WideToUTF16(
- kTestCases[i].suggested_word)) == 0) {
+ if (suggestions.at(j).compare(WideToUTF16(kTestCases[i].suggested_word))
+ == 0) {
suggested_word_is_present = true;
break;
}
@@ -799,7 +799,7 @@
int misspelling_start = 0;
int misspelling_length = 0;
bool result = spell_check()->SpellCheckWord(
- base::WideToUTF16(kTestCases[i].input).c_str(),
+ WideToUTF16(kTestCases[i].input).c_str(),
static_cast<int>(input_length),
0,
&misspelling_start,
@@ -880,7 +880,7 @@
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) {
ReinitializeSpellCheck(kTestCases[i].language);
- string16 word(base::WideToUTF16(kTestCases[i].input));
+ string16 word(WideToUTF16(kTestCases[i].input));
int word_length = static_cast<int>(word.length());
int misspelling_start = 0;
int misspelling_length = 0;

Powered by Google App Engine
This is Rietveld 408576698