summaryrefslogtreecommitdiffstats
path: root/base/command_line_unittest.cc
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-14 22:09:39 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-14 22:09:39 +0000
commite63d59867890b09ccac706b3bc99ec69efd261c1 (patch)
tree01327ba09f7693c310cd737d6bb9b061718d31af /base/command_line_unittest.cc
parent51077acd7f613ca7bc38d61ad1d22be2233a6e15 (diff)
downloadchromium_src-e63d59867890b09ccac706b3bc99ec69efd261c1.zip
chromium_src-e63d59867890b09ccac706b3bc99ec69efd261c1.tar.gz
chromium_src-e63d59867890b09ccac706b3bc99ec69efd261c1.tar.bz2
Add command_line_unittest and pr_time_test to the linux set of unittests. Fix the const-ness of argv in CommandLine on posix.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@901 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/command_line_unittest.cc')
-rw-r--r--base/command_line_unittest.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/base/command_line_unittest.cc b/base/command_line_unittest.cc
index d9992c2..c477827 100644
--- a/base/command_line_unittest.cc
+++ b/base/command_line_unittest.cc
@@ -48,12 +48,12 @@ TEST(CommandLineTest, CommandLineConstructor) {
L"--input-translation=\"45\"--output-rotation "
L"\"in the time of submarines...\"");
#elif defined(OS_POSIX)
- char* argv[] = {"program", "--foo=", "-bAr",
- "-Spaetzel=pierogi", "-Baz", "flim",
- "--other-switches=--dog=canine --cat=feline",
- "-spaetzle=Crepe", "-=loosevalue", "flan",
- "--input-translation=45--output-rotation",
- "in the time of submarines..."};
+ const char* argv[] = {"program", "--foo=", "-bAr",
+ "-Spaetzel=pierogi", "-Baz", "flim",
+ "--other-switches=--dog=canine --cat=feline",
+ "-spaetzle=Crepe", "-=loosevalue", "flan",
+ "--input-translation=45--output-rotation",
+ "in the time of submarines..."};
CommandLine cl(arraysize(argv), argv);
#endif
EXPECT_FALSE(cl.command_line_string().empty());