summaryrefslogtreecommitdiffstats
path: root/base/command_line_unittest.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 05:59:57 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 05:59:57 +0000
commit05076ba206e040b31fdb41a39cc10a2ecc4adf9d (patch)
tree58c20da4c63a0384c2241b5ddd676a6b7bddf927 /base/command_line_unittest.cc
parent4c4aae74e9f32f7ff06226b3d5e2fd1723127913 (diff)
downloadchromium_src-05076ba206e040b31fdb41a39cc10a2ecc4adf9d.zip
chromium_src-05076ba206e040b31fdb41a39cc10a2ecc4adf9d.tar.gz
chromium_src-05076ba206e040b31fdb41a39cc10a2ecc4adf9d.tar.bz2
Convert a bunch of easy AppendSwitchWithValue to *ASCII.
For this patch, I skipped over any instance where it wasn't a nearly trivial change. Review URL: http://codereview.chromium.org/3069014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54285 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/command_line_unittest.cc')
-rw-r--r--base/command_line_unittest.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/base/command_line_unittest.cc b/base/command_line_unittest.cc
index c3fb04c..e44f240 100644
--- a/base/command_line_unittest.cc
+++ b/base/command_line_unittest.cc
@@ -101,24 +101,24 @@ TEST(CommandLineTest, EmptyString) {
TEST(CommandLineTest, AppendSwitches) {
std::string switch1 = "switch1";
std::string switch2 = "switch2";
- std::wstring value = L"value";
+ std::string value = "value";
std::string switch3 = "switch3";
- std::wstring value3 = L"a value with spaces";
+ std::string value3 = "a value with spaces";
std::string switch4 = "switch4";
- std::wstring value4 = L"\"a value with quotes\"";
+ std::string value4 = "\"a value with quotes\"";
CommandLine cl(FilePath(FILE_PATH_LITERAL("Program")));
cl.AppendSwitch(switch1);
- cl.AppendSwitchWithValue(switch2, value);
- cl.AppendSwitchWithValue(switch3, value3);
- cl.AppendSwitchWithValue(switch4, value4);
+ cl.AppendSwitchASCII(switch2, value);
+ cl.AppendSwitchASCII(switch3, value3);
+ cl.AppendSwitchASCII(switch4, value4);
EXPECT_TRUE(cl.HasSwitch(switch1));
EXPECT_TRUE(cl.HasSwitch(switch2));
- EXPECT_EQ(value, cl.GetSwitchValue(switch2));
+ EXPECT_EQ(value, cl.GetSwitchValueASCII(switch2));
EXPECT_TRUE(cl.HasSwitch(switch3));
- EXPECT_EQ(value3, cl.GetSwitchValue(switch3));
+ EXPECT_EQ(value3, cl.GetSwitchValueASCII(switch3));
EXPECT_TRUE(cl.HasSwitch(switch4));
- EXPECT_EQ(value4, cl.GetSwitchValue(switch4));
+ EXPECT_EQ(value4, cl.GetSwitchValueASCII(switch4));
}