diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 19:55:16 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 19:55:16 +0000 |
commit | c4e52f0d8fa148f543d3e7b2562164e9bf5605aa (patch) | |
tree | 86a455dd54d4542026ff3059ac939dc809a09b26 /base | |
parent | 2fd94bbeefa87a83a96c65ff998add7d7fb0f908 (diff) | |
download | chromium_src-c4e52f0d8fa148f543d3e7b2562164e9bf5605aa.zip chromium_src-c4e52f0d8fa148f543d3e7b2562164e9bf5605aa.tar.gz chromium_src-c4e52f0d8fa148f543d3e7b2562164e9bf5605aa.tar.bz2 |
Use GetSwitchValueASCII.
BUG=24672
TEST=None
Original patch by Thiago Farina <thiago.farina@gmail.com> 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
Diffstat (limited to 'base')
-rw-r--r-- | base/command_line_unittest.cc | 13 |
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()); |