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

Unified Diff: base/command_line_unittest.cc

Issue 373013: Use GetSwitchValueASCII. (Closed)
Patch Set: Created 11 years, 1 month 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 | « no previous file | chrome/browser/browser_init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/command_line_unittest.cc
diff --git a/base/command_line_unittest.cc b/base/command_line_unittest.cc
index 7ab8f79e5a25045f43878b9e65d538819df4db55..6544c13a12faea993c6ba61c6438575c4dbf52e1 100644
--- a/base/command_line_unittest.cc
+++ b/base/command_line_unittest.cc
@@ -51,12 +51,13 @@ TEST(CommandLineTest, CommandLineConstructor) {
EXPECT_TRUE(cl.HasSwitch("other-switches"));
EXPECT_TRUE(cl.HasSwitch("input-translation"));
- EXPECT_EQ(L"Crepe", cl.GetSwitchValue("spaetzle"));
- EXPECT_EQ(L"", cl.GetSwitchValue("Foo"));
- EXPECT_EQ(L"", cl.GetSwitchValue("bar"));
- EXPECT_EQ(L"", cl.GetSwitchValue("cruller"));
- EXPECT_EQ(L"--dog=canine --cat=feline", cl.GetSwitchValue("other-switches"));
- EXPECT_EQ(L"45--output-rotation", cl.GetSwitchValue("input-translation"));
+ EXPECT_EQ("Crepe", cl.GetSwitchValueASCII("spaetzle"));
+ EXPECT_EQ("", cl.GetSwitchValueASCII("Foo"));
+ EXPECT_EQ("", cl.GetSwitchValueASCII("bar"));
+ EXPECT_EQ("", cl.GetSwitchValueASCII("cruller"));
+ EXPECT_EQ("--dog=canine --cat=feline", cl.GetSwitchValueASCII(
+ "other-switches"));
+ EXPECT_EQ("45--output-rotation", cl.GetSwitchValueASCII("input-translation"));
std::vector<std::wstring> loose_values = cl.GetLooseValues();
ASSERT_EQ(5U, loose_values.size());
« no previous file with comments | « no previous file | chrome/browser/browser_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698