Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(835)

Unified Diff: base/command_line_unittest.cc

Issue 9477001: Allow callers of CommandLine::Init to know whether they were the first caller. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comment clarification. Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/command_line.cc ('k') | base/test/test_suite.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/command_line_unittest.cc
diff --git a/base/command_line_unittest.cc b/base/command_line_unittest.cc
index 656236e09e35c6a2bb705c4bb2ba14e2beea1798..c86bf507a17cc7142313991b26f4fd2e03f65a98 100644
--- a/base/command_line_unittest.cc
+++ b/base/command_line_unittest.cc
@@ -291,7 +291,7 @@ TEST(CommandLineTest, ProgramQuotes) {
// Calling Init multiple times should not modify the previous CommandLine.
TEST(CommandLineTest, Init) {
CommandLine* initial = CommandLine::ForCurrentProcess();
- CommandLine::Init(0, NULL);
+ EXPECT_FALSE(CommandLine::Init(0, NULL));
CommandLine* current = CommandLine::ForCurrentProcess();
EXPECT_EQ(initial, current);
}
« no previous file with comments | « base/command_line.cc ('k') | base/test/test_suite.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698