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

Unified Diff: Source/testing/runner/MockSpellCheck.cpp

Issue 105143014: Add base:: to string16 in Source/testing/runner/. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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
« no previous file with comments | « Source/testing/runner/MockSpellCheck.h ('k') | Source/testing/runner/SpellCheckClient.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/testing/runner/MockSpellCheck.cpp
diff --git a/Source/testing/runner/MockSpellCheck.cpp b/Source/testing/runner/MockSpellCheck.cpp
index 5b71c67e8aa51ca255f27ef0268f6b8b3937e8cb..397eebb1c1dd7db7485f3b624fe98b0e5a46d086 100644
--- a/Source/testing/runner/MockSpellCheck.cpp
+++ b/Source/testing/runner/MockSpellCheck.cpp
@@ -68,9 +68,9 @@ bool MockSpellCheck::spellCheckWord(const WebString& text, int* misspelledOffset
*misspelledOffset = 0;
*misspelledLength = 0;
- // Convert to a string16 because we store string16 instances in
+ // Convert to a base::string16 because we store base::string16 instances in
// m_misspelledWords and WebString has no find().
- string16 stringText = text;
+ base::string16 stringText = text;
int skippedLength = 0;
while (!stringText.empty()) {
@@ -81,13 +81,13 @@ bool MockSpellCheck::spellCheckWord(const WebString& text, int* misspelledOffset
// (This is a simple version of our SpellCheckWordIterator class.)
// If the given string doesn't include any ASCII characters, we can treat the
// string as valid one.
- string16::iterator firstChar = find_if(stringText.begin(), stringText.end(), isASCIIAlpha);
+ base::string16::iterator firstChar = find_if(stringText.begin(), stringText.end(), isASCIIAlpha);
if (firstChar == stringText.end())
return true;
int wordOffset = distance(stringText.begin(), firstChar);
int maxWordLength = static_cast<int>(stringText.length()) - wordOffset;
int wordLength;
- string16 word;
+ base::string16 word;
// Look up our misspelled-word table to check if the extracted word is a
// known misspelled word, and return the offset and the length of the
@@ -107,7 +107,7 @@ bool MockSpellCheck::spellCheckWord(const WebString& text, int* misspelledOffset
if (*misspelledLength > 0)
break;
- string16::iterator lastChar = find_if(stringText.begin() + wordOffset, stringText.end(), isNotASCIIAlpha);
+ base::string16::iterator lastChar = find_if(stringText.begin() + wordOffset, stringText.end(), isNotASCIIAlpha);
if (lastChar == stringText.end())
wordLength = static_cast<int>(stringText.length()) - wordOffset;
else
@@ -196,7 +196,7 @@ bool MockSpellCheck::initializeIfNeeded()
m_misspelledWords.clear();
for (size_t i = 0; i < arraysize(misspelledWords); ++i)
- m_misspelledWords.push_back(string16(misspelledWords[i], misspelledWords[i] + strlen(misspelledWords[i])));
+ m_misspelledWords.push_back(base::string16(misspelledWords[i], misspelledWords[i] + strlen(misspelledWords[i])));
// Mark as initialized to prevent this object from being initialized twice
// or more.
« no previous file with comments | « Source/testing/runner/MockSpellCheck.h ('k') | Source/testing/runner/SpellCheckClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698