commit | e89963accb5f3a9d93b8007b22fc79c0120eb794 | [log] [tgz] |
---|---|---|
author | arihc <[email protected]> | Wed Aug 12 23:45:48 2015 |
committer | Commit bot <[email protected]> | Wed Aug 12 23:46:25 2015 |
tree | de8053cb18dd25f839b1d3768f7543ab85368feb | |
parent | 99c0fd59d4f7d6251a876cc8bef39d38378dfdf2 [diff] [blame] |
Updates to base unittests so they run correctly in libchrome on Android Parallel change to https://android-review.googlesource.com/#/c/163293/ (does not include changes being made to base/command_line_unittest that are fixing temporary runner issues, since the runner is fine here) BUG= 22884411, 22947438 Review URL: https://codereview.chromium.org/1273243002 Cr-Commit-Position: refs/heads/master@{#343126}
diff --git a/base/command_line_unittest.cc b/base/command_line_unittest.cc index 018d83f..ac8a395 100644 --- a/base/command_line_unittest.cc +++ b/base/command_line_unittest.cc
@@ -378,6 +378,9 @@ // Calling Init multiple times should not modify the previous CommandLine. TEST(CommandLineTest, Init) { + // Call Init without checking output once so we know it's been called + // whether or not the test runner does so. + CommandLine::Init(0, NULL); CommandLine* initial = CommandLine::ForCurrentProcess(); EXPECT_FALSE(CommandLine::Init(0, NULL)); CommandLine* current = CommandLine::ForCurrentProcess();