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

Unified Diff: chrome/common/extensions/command_unittest.cc

Issue 176843022: Move UTF16ToASCII, remove WideToASCII. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/common/extensions/command_unittest.cc
diff --git a/chrome/common/extensions/command_unittest.cc b/chrome/common/extensions/command_unittest.cc
index 0b3c3922c83943c64ee09d708a39c4f851022200..b36a86addf1f09e562b4281303acea3e484e4b2b 100644
--- a/chrome/common/extensions/command_unittest.cc
+++ b/chrome/common/extensions/command_unittest.cc
@@ -137,7 +137,7 @@ TEST(CommandTest, ExtensionCommandParsing) {
EXPECT_EQ(kTests[i].expected_result, result);
if (result) {
EXPECT_STREQ(kTests[i].description,
- UTF16ToASCII(command.description()).c_str());
+ base::UTF16ToASCII(command.description()).c_str());
EXPECT_STREQ(kTests[i].command_name, command.command_name().c_str());
EXPECT_EQ(kTests[i].accelerator, command.accelerator());
}
@@ -157,7 +157,7 @@ TEST(CommandTest, ExtensionCommandParsing) {
EXPECT_EQ(kTests[i].expected_result, result);
if (result) {
EXPECT_STREQ(kTests[i].description,
- UTF16ToASCII(command.description()).c_str());
+ base::UTF16ToASCII(command.description()).c_str());
EXPECT_STREQ(kTests[i].command_name, command.command_name().c_str());
EXPECT_EQ(kTests[i].accelerator, command.accelerator());
}
@@ -185,7 +185,7 @@ TEST(CommandTest, ExtensionCommandParsingFallback) {
base::string16 error;
EXPECT_TRUE(command.Parse(input.get(), command_name, 0, &error));
EXPECT_STREQ(description.c_str(),
- UTF16ToASCII(command.description()).c_str());
+ base::UTF16ToASCII(command.description()).c_str());
EXPECT_STREQ(command_name.c_str(), command.command_name().c_str());
#if defined(OS_WIN)
« no previous file with comments | « chrome/common/extensions/api/commands/commands_manifest_unittest.cc ('k') | chrome/common/extensions/extension_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698