From c4e52f0d8fa148f543d3e7b2562164e9bf5605aa Mon Sep 17 00:00:00 2001 From: "tony@chromium.org" Date: Fri, 6 Nov 2009 19:55:16 +0000 Subject: Use GetSwitchValueASCII. BUG=24672 TEST=None Original patch by Thiago Farina at http://codereview.chromium.org/296004 Review URL: http://codereview.chromium.org/373013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31269 0039d316-1c4b-4281-b951-d872f2087c98 --- base/command_line_unittest.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'base') 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 loose_values = cl.GetLooseValues(); ASSERT_EQ(5U, loose_values.size()); -- cgit v1.1