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

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

Issue 12314090: Add utf_string_conversions to base namespace. (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
diff --git a/chrome/renderer/spellchecker/spellcheck_unittest.cc b/chrome/renderer/spellchecker/spellcheck_unittest.cc
index 8a443a63b63d18cd0f1c2b69e792dfd32fca12eb..2c7eac01f4af0e3312bf37bc279dd29a8d353707 100644
--- a/chrome/renderer/spellchecker/spellcheck_unittest.cc
+++ b/chrome/renderer/spellchecker/spellcheck_unittest.cc
@@ -390,7 +390,7 @@ TEST_F(SpellCheckTest, SpellCheckStrings_EN_US) {
int misspelling_start;
int misspelling_length;
bool result = spell_check()->SpellCheckWord(
- WideToUTF16(kTestCases[i].input).c_str(),
+ base::WideToUTF16(kTestCases[i].input).c_str(),
static_cast<int>(input_length),
0,
&misspelling_start,
@@ -441,7 +441,7 @@ TEST_F(SpellCheckTest, SpellCheckSuggestions_EN_US) {
int misspelling_start;
int misspelling_length;
bool result = spell_check()->SpellCheckWord(
- WideToUTF16(kTestCases[i].input).c_str(),
+ base::WideToUTF16(kTestCases[i].input).c_str(),
static_cast<int>(input_length),
0,
&misspelling_start,
@@ -454,8 +454,8 @@ TEST_F(SpellCheckTest, SpellCheckSuggestions_EN_US) {
// 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(WideToUTF16(kTestCases[i].suggested_word))
- == 0) {
+ if (suggestions.at(j).compare(base::WideToUTF16(
+ kTestCases[i].suggested_word)) == 0) {
suggested_word_is_present = true;
break;
}
@@ -799,7 +799,7 @@ TEST_F(SpellCheckTest, SpellCheckText) {
int misspelling_start = 0;
int misspelling_length = 0;
bool result = spell_check()->SpellCheckWord(
- WideToUTF16(kTestCases[i].input).c_str(),
+ base::WideToUTF16(kTestCases[i].input).c_str(),
static_cast<int>(input_length),
0,
&misspelling_start,
@@ -880,7 +880,7 @@ TEST_F(SpellCheckTest, MisspelledWords) {
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) {
ReinitializeSpellCheck(kTestCases[i].language);
- string16 word(WideToUTF16(kTestCases[i].input));
+ string16 word(base::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