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

Unified Diff: content/common/android/address_parser_unittest.cc

Issue 121033002: Update uses of UTF conversions in content/ to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 | « content/child/socket_stream_dispatcher.cc ('k') | content/common/dom_storage/dom_storage_map_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/android/address_parser_unittest.cc
diff --git a/content/common/android/address_parser_unittest.cc b/content/common/android/address_parser_unittest.cc
index 1a8d17eeff8d1d8f1ee10329ca3eb99eb78a41c3..cefc537b79072f5bc617add57c429956e038181c 100644
--- a/content/common/android/address_parser_unittest.cc
+++ b/content/common/android/address_parser_unittest.cc
@@ -25,14 +25,14 @@ class AddressParserTest : public testing::Test {
}
std::string GetHouseNumber(const std::string& content) const {
- base::string16 content_16 = UTF8ToUTF16(content);
+ base::string16 content_16 = base::UTF8ToUTF16(content);
base::string16 result;
HouseNumberParser parser;
Word word;
if (parser.Parse(content_16.begin(), content_16.end(), &word))
result = base::string16(word.begin, word.end);
- return UTF16ToUTF8(result);
+ return base::UTF16ToUTF8(result);
}
bool ContainsHouseNumber(const std::string& content) const {
@@ -40,7 +40,7 @@ class AddressParserTest : public testing::Test {
}
bool GetState(const std::string& state, size_t* state_index) const {
- base::string16 state_16 = UTF8ToUTF16(state);
+ base::string16 state_16 = base::UTF8ToUTF16(state);
String16Tokenizer tokenizer(state_16.begin(), state_16.end(),
base::kWhitespaceUTF16);
if (!tokenizer.GetNext())
@@ -62,7 +62,7 @@ class AddressParserTest : public testing::Test {
size_t state_index;
EXPECT_TRUE(GetState(state, &state_index));
- base::string16 zip_16 = UTF8ToUTF16(zip);
+ base::string16 zip_16 = base::UTF8ToUTF16(zip);
WordList words;
TokenizeWords(zip_16, &words);
EXPECT_TRUE(words.size() == 1);
@@ -70,7 +70,7 @@ class AddressParserTest : public testing::Test {
}
bool IsLocationName(const std::string& street) const {
- base::string16 street_16 = UTF8ToUTF16(street);
+ base::string16 street_16 = base::UTF8ToUTF16(street);
WordList words;
TokenizeWords(street_16, &words);
EXPECT_TRUE(words.size() == 1);
@@ -78,12 +78,12 @@ class AddressParserTest : public testing::Test {
}
std::string FindAddress(const std::string& content) const {
- base::string16 content_16 = UTF8ToUTF16(content);
+ base::string16 content_16 = base::UTF8ToUTF16(content);
base::string16 result_16;
size_t start, end;
if (::FindAddress(content_16.begin(), content_16.end(), &start, &end))
result_16 = content_16.substr(start, end - start);
- return UTF16ToUTF8(result_16);
+ return base::UTF16ToUTF8(result_16);
}
bool ContainsAddress(const std::string& content) const {
« no previous file with comments | « content/child/socket_stream_dispatcher.cc ('k') | content/common/dom_storage/dom_storage_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698