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

Issue 194593007: Mojo: MultiprocessTestHelper: Allow {ASSERT,EXPECT}_...() to be used in child. (Closed)

Created:
6 years, 9 months ago by viettrungluu
Modified:
6 years, 9 months ago
Reviewers:
yzshen1
CC:
chromium-reviews, Aaron Boodman, darin (slow to review), viettrungluu+watch_chromium.org, ben+mojo_chromium.org, abarth-chromium
Visibility:
Public.

Description

Mojo: MultiprocessTestHelper: Allow {ASSERT,EXPECT}_...() to be used in child. Add a new macro, MOJO_MULTIPROCESS_TEST_CHILD_TEST() to define the test body in the child process, where ASSERT_...() and EXPECT_...() can be used as expected. Add a new method, WaitForChildTestShutdown(), to MultiprocessTestHelper, which returns true if everything passed in the child. (Keep the old macro and old WaitForChildShutdown() around, since sometimes we want to use the child's exit code to report other information.) R=yzshen@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256373

Patch Set 1 #

Total comments: 2

Patch Set 2 : comment fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -26 lines) Patch
M mojo/common/test/multiprocess_test_helper.h View 1 3 chunks +21 lines, -1 line 0 comments Download
M mojo/common/test/multiprocess_test_helper.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/common/test/multiprocess_test_helper_unittest.cc View 5 chunks +43 lines, -25 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
viettrungluu
6 years, 9 months ago (2014-03-11 19:21:25 UTC) #1
yzshen1
LGTM with one question https://codereview.chromium.org/194593007/diff/1/mojo/common/test/multiprocess_test_helper.h File mojo/common/test/multiprocess_test_helper.h (right): https://codereview.chromium.org/194593007/diff/1/mojo/common/test/multiprocess_test_helper.h#newcode45 mojo/common/test/multiprocess_test_helper.h:45: // |EXPECT_TRUE(WaitForChildShutdown());|. Mainly for use ...
6 years, 9 months ago (2014-03-11 22:59:58 UTC) #2
viettrungluu
Thanks. https://codereview.chromium.org/194593007/diff/1/mojo/common/test/multiprocess_test_helper.h File mojo/common/test/multiprocess_test_helper.h (right): https://codereview.chromium.org/194593007/diff/1/mojo/common/test/multiprocess_test_helper.h#newcode45 mojo/common/test/multiprocess_test_helper.h:45: // |EXPECT_TRUE(WaitForChildShutdown());|. Mainly for use with FIXME On ...
6 years, 9 months ago (2014-03-11 23:33:14 UTC) #3
viettrungluu
6 years, 9 months ago (2014-03-12 00:50:14 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r256373 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698