summaryrefslogtreecommitdiffstats
path: root/base/command_line_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/command_line_unittest.cc')
-rw-r--r--base/command_line_unittest.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/base/command_line_unittest.cc b/base/command_line_unittest.cc
index 7ab8f79..6544c13 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());