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

Issue 297833007: Fix handling of unexpected cases in bit-flip test. (Closed)

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

Description

There can be potentially unexpected message names in the bit-flip test. This removes some NOTREACHED()s in the base class which may be reached when bad data comes along. Merely tally such so that it can be checked in the cases where we know it's "impossible". We also need to be more lenient about the results of reading from pipes. BUG=376173 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272385

Patch Set 1 #

Patch Set 2 : Redule liklihood of test control messages being hit by bit flips. #

Patch Set 3 : Tidy comment. #

Total comments: 5

Patch Set 4 : Style nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -12 lines) Patch
M mojo/apps/js/test/js_to_cpp.mojom View 1 2 3 1 chunk +9 lines, -2 lines 0 comments Download
M mojo/apps/js/test/js_to_cpp_unittest.cc View 6 chunks +41 lines, -10 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Tom Sepez
Trung, please review. Thanks.
6 years, 7 months ago (2014-05-22 18:15:12 UTC) #1
viettrungluu
https://codereview.chromium.org/297833007/diff/40001/mojo/apps/js/test/js_to_cpp.mojom File mojo/apps/js/test/js_to_cpp.mojom (right): https://codereview.chromium.org/297833007/diff/40001/mojo/apps/js/test/js_to_cpp.mojom#newcode31 mojo/apps/js/test/js_to_cpp.mojom:31: // Note: For messages which control test flow, pick ...
6 years, 7 months ago (2014-05-22 19:24:17 UTC) #2
Tom Sepez
On 2014/05/22 19:24:17, viettrungluu wrote: > https://codereview.chromium.org/297833007/diff/40001/mojo/apps/js/test/js_to_cpp.mojom > File mojo/apps/js/test/js_to_cpp.mojom (right): > > https://codereview.chromium.org/297833007/diff/40001/mojo/apps/js/test/js_to_cpp.mojom#newcode31 > ...
6 years, 7 months ago (2014-05-22 19:42:03 UTC) #3
Tom Sepez
Ah. In other words, if they're on separate OS pipes, then we'd hit the sync ...
6 years, 7 months ago (2014-05-22 21:00:45 UTC) #4
viettrungluu
On 2014/05/22 21:00:45, Tom Sepez wrote: > Ah. In other words, if they're on separate ...
6 years, 7 months ago (2014-05-22 21:18:55 UTC) #5
viettrungluu
FFFFFFFFFFFFFUUUUUUUUUUUUUUUUUUUUUUUUU. Replying doesn't send comments. https://codereview.chromium.org/297833007/diff/40001/mojo/apps/js/test/js_to_cpp.mojom File mojo/apps/js/test/js_to_cpp.mojom (right): https://codereview.chromium.org/297833007/diff/40001/mojo/apps/js/test/js_to_cpp.mojom#newcode35 mojo/apps/js/test/js_to_cpp.mojom:35: StartTest @88888888 (); Style ...
6 years, 7 months ago (2014-05-22 21:19:11 UTC) #6
Tom Sepez
https://codereview.chromium.org/297833007/diff/40001/mojo/apps/js/test/js_to_cpp.mojom File mojo/apps/js/test/js_to_cpp.mojom (right): https://codereview.chromium.org/297833007/diff/40001/mojo/apps/js/test/js_to_cpp.mojom#newcode35 mojo/apps/js/test/js_to_cpp.mojom:35: StartTest @88888888 (); On 2014/05/22 21:19:12, viettrungluu wrote: > ...
6 years, 7 months ago (2014-05-22 21:22:21 UTC) #7
Tom Sepez
The CQ bit was checked by tsepez@chromium.org
6 years, 7 months ago (2014-05-22 21:23:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tsepez@chromium.org/297833007/50001
6 years, 7 months ago (2014-05-22 21:23:50 UTC) #9
commit-bot: I haz the power
6 years, 7 months ago (2014-05-23 00:49:24 UTC) #10
Message was sent while issue was closed.
Change committed as 272385

Powered by Google App Engine
This is Rietveld 408576698