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

Issue 509813002: Implement the client side of Serial I/O on data pipe. (Closed)

Created:
6 years, 3 months ago by Sam McNally
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@serial-io
Project:
chromium
Visibility:
Public.

Description

Implement the client side of Serial I/O on data pipe. This change implements chrome.serial.send and the chrome.serial.onReceive(Error) events using DataSender and DataReceiver, respectively. It also adds a TimeoutManager to allow control over when callbacks queued by setTimeout are invoked to facilitate testing of send and receive timeouts. BUG=389016 Committed: https://crrev.com/93c5de27b7e35e8e9973645e75075743344d9b26 Cr-Commit-Position: refs/heads/master@{#293092}

Patch Set 1 : #

Total comments: 36

Patch Set 2 : address comments #

Total comments: 8

Patch Set 3 : address comments #

Patch Set 4 : remove TimeoutManager.pause() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+813 lines, -29 lines) Patch
M extensions/renderer/api/serial/serial_api_unittest.cc View 1 2 5 chunks +173 lines, -0 lines 0 comments Download
M extensions/renderer/resources/serial_custom_bindings.js View 3 chunks +13 lines, -1 line 0 comments Download
M extensions/renderer/resources/serial_service.js View 1 10 chunks +160 lines, -20 lines 0 comments Download
M extensions/test/data/serial_unittest.js View 1 2 3 14 chunks +369 lines, -7 lines 0 comments Download
M extensions/test/data/unit_test_environment_specific_bindings.js View 1 2 3 2 chunks +98 lines, -1 line 0 comments Download

Messages

Total messages: 18 (1 generated)
Sam McNally
Patchset #1 (id:1) has been deleted
6 years, 3 months ago (2014-08-27 07:12:30 UTC) #1
Sam McNally
Patchset #1 (id:20001) has been deleted
6 years, 3 months ago (2014-08-27 07:34:31 UTC) #2
Sam McNally
Patchset #1 (id:40001) has been deleted
6 years, 3 months ago (2014-08-27 07:34:41 UTC) #3
Sam McNally
Patchset #1 (id:60001) has been deleted
6 years, 3 months ago (2014-08-27 07:37:20 UTC) #4
Sam McNally
sammc@chromium.org changed reviewers: + raymes@chromium.org, rockot@chromium.org
6 years, 3 months ago (2014-08-27 07:43:43 UTC) #5
Sam McNally
6 years, 3 months ago (2014-08-27 07:43:43 UTC) #6
raymes
Could you add some documentation for each of the tests explaining in a bit more ...
6 years, 3 months ago (2014-08-29 06:07:16 UTC) #7
Ken Rockot(use gerrit already)
Nice. LGTM pending action on raymes' comments
6 years, 3 months ago (2014-08-29 16:46:38 UTC) #8
Sam McNally
https://codereview.chromium.org/509813002/diff/80001/extensions/renderer/api/serial/serial_api_unittest.cc File extensions/renderer/api/serial/serial_api_unittest.cc (right): https://codereview.chromium.org/509813002/diff/80001/extensions/renderer/api/serial/serial_api_unittest.cc#newcode341 extensions/renderer/api/serial/serial_api_unittest.cc:341: DCHECK_GE(pending_write_buffer_len(), 2u); On 2014/08/29 06:07:15, raymes wrote: > Why ...
6 years, 3 months ago (2014-09-01 06:35:19 UTC) #9
raymes
Looks like you didn't want to add comments for each of the tests? https://codereview.chromium.org/509813002/diff/120001/extensions/renderer/api/serial/serial_api_unittest.cc File ...
6 years, 3 months ago (2014-09-02 04:59:32 UTC) #10
Sam McNally
On 2014/09/02 04:59:32, raymes wrote: > Looks like you didn't want to add comments for ...
6 years, 3 months ago (2014-09-02 07:41:13 UTC) #11
raymes
https://codereview.chromium.org/509813002/diff/120001/extensions/test/data/serial_unittest.js File extensions/test/data/serial_unittest.js (right): https://codereview.chromium.org/509813002/diff/120001/extensions/test/data/serial_unittest.js#newcode437 extensions/test/data/serial_unittest.js:437: timeoutManager.enableAutorun.bind(timeoutManager))); Hmm do you know why that is the ...
6 years, 3 months ago (2014-09-03 01:28:32 UTC) #12
Sam McNally
https://codereview.chromium.org/509813002/diff/120001/extensions/test/data/serial_unittest.js File extensions/test/data/serial_unittest.js (right): https://codereview.chromium.org/509813002/diff/120001/extensions/test/data/serial_unittest.js#newcode437 extensions/test/data/serial_unittest.js:437: timeoutManager.enableAutorun.bind(timeoutManager))); On 2014/09/03 01:28:32, raymes wrote: > Hmm do ...
6 years, 3 months ago (2014-09-03 01:56:13 UTC) #13
raymes
lgtm
6 years, 3 months ago (2014-09-03 06:48:01 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sammc@chromium.org/509813002/160001
6 years, 3 months ago (2014-09-03 06:53:21 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:160001) as eacc99110cba81a973c9ca8d47a1860149afbb7e
6 years, 3 months ago (2014-09-03 07:32:07 UTC) #17
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:24:14 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/93c5de27b7e35e8e9973645e75075743344d9b26
Cr-Commit-Position: refs/heads/master@{#293092}

Powered by Google App Engine
This is Rietveld 408576698