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

Issue 1249933004: Add code to detect new added ReceiveError on Linux (Closed)

Created:
5 years, 5 months ago by juncai
Modified:
5 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add code to detect new added ReceiveError on Linux. This patch added code to detect new added ReceiveError on Linux. BUG=414105 Committed: https://crrev.com/923ede74ebc57633583795a84b33e994f7dcd4fa Cr-Commit-Position: refs/heads/master@{#341216}

Patch Set 1 : add code to detect new added ReceiveError on Linux #

Patch Set 2 : added code to check if parity check is enabled #

Patch Set 3 : updated code to remove break and parity error sequences, etc. #

Patch Set 4 : updated code to handle byte sequence is split across multiple calls to read(), added unit tests code. #

Total comments: 4

Patch Set 5 : added more test code. #

Total comments: 8

Patch Set 6 : updated test code. #

Total comments: 10

Patch Set 7 : updated test code. #

Total comments: 36

Patch Set 8 : added more test code, updated some test code, added some DCHECKs #

Total comments: 2

Patch Set 9 : updated DCHECKs #

Total comments: 4

Patch Set 10 : updated comments, changed variable name. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1182 lines, -3 lines) Patch
M device/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M device/device_tests.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M device/serial/serial_io_handler_posix.h View 1 2 3 4 5 6 7 8 9 3 chunks +16 lines, -0 lines 0 comments Download
M device/serial/serial_io_handler_posix.cc View 1 2 3 4 5 6 7 8 9 4 chunks +144 lines, -3 lines 0 comments Download
A device/serial/serial_io_handler_posix_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1020 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (3 generated)
juncai
Please review this patch.
5 years, 5 months ago (2015-07-23 01:35:02 UTC) #2
Reilly Grant (use Gerrit)
Two things missing from here: 1) The parity error and break sequences aren't filtered out ...
5 years, 5 months ago (2015-07-23 20:35:13 UTC) #3
juncai
On 2015/07/23 20:35:13, reillyg wrote: > Two things missing from here: > > 1) The ...
5 years, 5 months ago (2015-07-24 02:13:38 UTC) #4
juncai
Please review the change.
5 years, 5 months ago (2015-07-24 02:13:56 UTC) #5
Reilly Grant (use Gerrit)
Please add some unit tests for this function. What happens if the byte sequence is ...
5 years, 5 months ago (2015-07-24 19:31:36 UTC) #6
juncai
On 2015/07/24 19:31:36, reillyg wrote: > Please add some unit tests for this function. What ...
5 years, 4 months ago (2015-07-28 21:49:07 UTC) #7
juncai
Please review the change.
5 years, 4 months ago (2015-07-28 21:49:20 UTC) #8
Reilly Grant (use Gerrit)
These tests are pretty exhaustive but they don't include bytes received before or after the ...
5 years, 4 months ago (2015-07-28 22:06:03 UTC) #9
juncai
On 2015/07/28 22:06:03, reillyg wrote: > These tests are pretty exhaustive but they don't include ...
5 years, 4 months ago (2015-07-29 04:22:16 UTC) #10
juncai
Please review the change. https://codereview.chromium.org/1249933004/diff/60001/device/serial/serial_io_handler_posix.h File device/serial/serial_io_handler_posix.h (right): https://codereview.chromium.org/1249933004/diff/60001/device/serial/serial_io_handler_posix.h#newcode15 device/serial/serial_io_handler_posix.h:15: enum ByteRead { On 2015/07/28 ...
5 years, 4 months ago (2015-07-29 04:22:42 UTC) #11
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1249933004/diff/80001/device/serial/serial_io_handler_posix.h File device/serial/serial_io_handler_posix.h (right): https://codereview.chromium.org/1249933004/diff/80001/device/serial/serial_io_handler_posix.h#newcode18 device/serial/serial_io_handler_posix.h:18: enum ErrorDetectState { NO_ERROR, MARK_377_SEEN, MARK_0_SEEN }; This needs ...
5 years, 4 months ago (2015-07-29 17:34:18 UTC) #12
juncai
Please review the change. https://codereview.chromium.org/1249933004/diff/80001/device/serial/serial_io_handler_posix.h File device/serial/serial_io_handler_posix.h (right): https://codereview.chromium.org/1249933004/diff/80001/device/serial/serial_io_handler_posix.h#newcode18 device/serial/serial_io_handler_posix.h:18: enum ErrorDetectState { NO_ERROR, MARK_377_SEEN, ...
5 years, 4 months ago (2015-07-29 23:29:36 UTC) #13
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1249933004/diff/100001/device/serial/serial_io_handler_posix_unittest.cc File device/serial/serial_io_handler_posix_unittest.cc (right): https://codereview.chromium.org/1249933004/diff/100001/device/serial/serial_io_handler_posix_unittest.cc#newcode42 device/serial/serial_io_handler_posix_unittest.cc:42: char get_chars_ignored(int index) { You don't need these wrappers ...
5 years, 4 months ago (2015-07-30 00:00:42 UTC) #14
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1249933004/diff/100001/device/serial/serial_io_handler_posix.cc File device/serial/serial_io_handler_posix.cc (right): https://codereview.chromium.org/1249933004/diff/100001/device/serial/serial_io_handler_posix.cc#newcode315 device/serial/serial_io_handler_posix.cc:315: ReadCompleted(0, serial::RECEIVE_ERROR_BREAK); Sorry, I should have caught this earlier. ...
5 years, 4 months ago (2015-07-30 00:09:12 UTC) #15
juncai
Please review the change. https://codereview.chromium.org/1249933004/diff/100001/device/serial/serial_io_handler_posix.cc File device/serial/serial_io_handler_posix.cc (right): https://codereview.chromium.org/1249933004/diff/100001/device/serial/serial_io_handler_posix.cc#newcode315 device/serial/serial_io_handler_posix.cc:315: ReadCompleted(0, serial::RECEIVE_ERROR_BREAK); On 2015/07/30 00:09:12, ...
5 years, 4 months ago (2015-07-30 16:04:37 UTC) #16
Reilly Grant (use Gerrit)
Looking good. Just a few more suggestions. https://codereview.chromium.org/1249933004/diff/120001/device/serial/serial_io_handler_posix.cc File device/serial/serial_io_handler_posix.cc (right): https://codereview.chromium.org/1249933004/diff/120001/device/serial/serial_io_handler_posix.cc#newcode500 device/serial/serial_io_handler_posix.cc:500: Some DCHECKs ...
5 years, 4 months ago (2015-07-30 17:38:35 UTC) #17
juncai
Please review the change. https://codereview.chromium.org/1249933004/diff/120001/device/serial/serial_io_handler_posix.cc File device/serial/serial_io_handler_posix.cc (right): https://codereview.chromium.org/1249933004/diff/120001/device/serial/serial_io_handler_posix.cc#newcode500 device/serial/serial_io_handler_posix.cc:500: On 2015/07/30 17:38:34, reillyg wrote: ...
5 years, 4 months ago (2015-07-30 19:51:50 UTC) #18
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1249933004/diff/140001/device/serial/serial_io_handler_posix.cc File device/serial/serial_io_handler_posix.cc (right): https://codereview.chromium.org/1249933004/diff/140001/device/serial/serial_io_handler_posix.cc#newcode542 device/serial/serial_io_handler_posix.cc:542: DCHECK_GE(new_bytes_read, 3); I meant putting these at the top ...
5 years, 4 months ago (2015-07-30 20:07:03 UTC) #19
juncai
Please review the change. https://codereview.chromium.org/1249933004/diff/140001/device/serial/serial_io_handler_posix.cc File device/serial/serial_io_handler_posix.cc (right): https://codereview.chromium.org/1249933004/diff/140001/device/serial/serial_io_handler_posix.cc#newcode542 device/serial/serial_io_handler_posix.cc:542: DCHECK_GE(new_bytes_read, 3); On 2015/07/30 20:07:03, ...
5 years, 4 months ago (2015-07-30 21:01:11 UTC) #20
Reilly Grant (use Gerrit)
lgtm after you resolve these two comments which are just wording the comments and variable ...
5 years, 4 months ago (2015-07-30 21:19:43 UTC) #21
juncai
https://codereview.chromium.org/1249933004/diff/160001/device/serial/serial_io_handler_posix.cc File device/serial/serial_io_handler_posix.cc (right): https://codereview.chromium.org/1249933004/diff/160001/device/serial/serial_io_handler_posix.cc#newcode556 device/serial/serial_io_handler_posix.cc:556: // chars_ignored_[0], chars_ignored_[1], buffer[...]. On 2015/07/30 21:19:43, reillyg wrote: ...
5 years, 4 months ago (2015-07-30 22:26:16 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1249933004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1249933004/180001
5 years, 4 months ago (2015-07-30 22:27:22 UTC) #25
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 4 months ago (2015-07-30 22:58:38 UTC) #26
commit-bot: I haz the power
5 years, 4 months ago (2015-07-30 22:59:25 UTC) #27
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/923ede74ebc57633583795a84b33e994f7dcd4fa
Cr-Commit-Position: refs/heads/master@{#341216}

Powered by Google App Engine
This is Rietveld 408576698