summaryrefslogtreecommitdiffstats
path: root/base/command_line_unittest.cc
diff options
context:
space:
mode:
authormsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-13 23:41:22 +0000
committermsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-13 23:41:22 +0000
commit75f1c78e253686c71e4294a48b744375d0fe8560 (patch)
tree37bcb158f88c33e0e13cb26010ea7b35ae8e118c /base/command_line_unittest.cc
parent8e63df81baee6cc66979255525cd900e00977969 (diff)
downloadchromium_src-75f1c78e253686c71e4294a48b744375d0fe8560.zip
chromium_src-75f1c78e253686c71e4294a48b744375d0fe8560.tar.gz
chromium_src-75f1c78e253686c71e4294a48b744375d0fe8560.tar.bz2
Rename CommandLine::GetArgs(), update callers.
BUG=73195 TEST=none Review URL: http://codereview.chromium.org/7352006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92448 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/command_line_unittest.cc')
-rw-r--r--base/command_line_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/base/command_line_unittest.cc b/base/command_line_unittest.cc
index c2bfd11..3f949e5 100644
--- a/base/command_line_unittest.cc
+++ b/base/command_line_unittest.cc
@@ -73,7 +73,7 @@ TEST(CommandLineTest, CommandLineConstructor) {
"other-switches"));
EXPECT_EQ("45--output-rotation", cl.GetSwitchValueASCII("input-translation"));
- const std::vector<CommandLine::StringType>& args = cl.args();
+ const CommandLine::StringVector& args = cl.GetArgs();
ASSERT_EQ(6U, args.size());
std::vector<CommandLine::StringType>::const_iterator iter = args.begin();
@@ -134,7 +134,7 @@ TEST(CommandLineTest, CommandLineFromString) {
EXPECT_EQ("45--output-rotation", cl.GetSwitchValueASCII("input-translation"));
EXPECT_EQ(kTricky, cl.GetSwitchValueNative("quotes"));
- const std::vector<CommandLine::StringType>& args = cl.args();
+ const CommandLine::StringVector& args = cl.GetArgs();
ASSERT_EQ(5U, args.size());
std::vector<CommandLine::StringType>::const_iterator iter = args.begin();
@@ -163,13 +163,13 @@ TEST(CommandLineTest, EmptyString) {
EXPECT_TRUE(cl_from_string.command_line_string().empty());
EXPECT_TRUE(cl_from_string.GetProgram().empty());
EXPECT_EQ(1U, cl_from_string.argv().size());
- EXPECT_TRUE(cl_from_string.args().empty());
+ EXPECT_TRUE(cl_from_string.GetArgs().empty());
#endif
CommandLine cl_from_argv(0, NULL);
EXPECT_TRUE(cl_from_argv.command_line_string().empty());
EXPECT_TRUE(cl_from_argv.GetProgram().empty());
EXPECT_EQ(1U, cl_from_argv.argv().size());
- EXPECT_TRUE(cl_from_argv.args().empty());
+ EXPECT_TRUE(cl_from_argv.GetArgs().empty());
}
// Test methods for appending switches to a command line.