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

Issue 505453002: Create dedicated class for handling wire message formatting and parsing. (Closed)

Created:
6 years, 4 months ago by Kevin M
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Create dedicated class for handling wire message formatting and parsing. Add tests for new functionality. Surround single-line blocks with curly braces in CastSocket for consistency/safety. R=mfoltz@chromium.org BUG= Committed: https://crrev.com/ed1a1429274647b00fe9365223d567981e7049b6 Cr-Commit-Position: refs/heads/master@{#294279}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 37

Patch Set 3 : Code review feedback #

Total comments: 42

Patch Set 4 : Addressed code review feedback. #

Total comments: 2

Patch Set 5 : Added missing cast_socket_framer.* files #

Patch Set 6 : Fixed include order #

Total comments: 16

Patch Set 7 : Added more unit tests, renamed cast_socket_framer => cast_framer #

Patch Set 8 : Rebased with master before submitting. #

Patch Set 9 : Fixed truncated assignment warning generated from Windows trybots. #

Patch Set 10 : Updated GN build file. #

Patch Set 11 : Changed format string %zu to %u, believe it was crashing win rel builds. #

Patch Set 12 : Resync to master #

Patch Set 13 : Resync to master #

Patch Set 14 : Revert chrome_tests_unit.gypi #

Patch Set 15 : Resync to origin/master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+503 lines, -209 lines) Patch
M extensions/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
A extensions/browser/api/cast_channel/cast_framer.h View 1 2 3 4 5 6 1 chunk +97 lines, -0 lines 0 comments Download
A extensions/browser/api/cast_channel/cast_framer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +186 lines, -0 lines 0 comments Download
A extensions/browser/api/cast_channel/cast_framer_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +138 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_socket.h View 1 2 3 6 chunks +5 lines, -40 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_socket.cc View 1 2 3 4 5 6 7 8 9 10 17 chunks +52 lines, -156 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_socket_unittest.cc View 1 2 3 4 5 6 10 chunks +20 lines, -13 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (16 generated)
Kevin M
6 years, 3 months ago (2014-08-26 18:11:21 UTC) #1
mark a. foltz
Hey, Overall looks pretty good, mostly had some feedback on the API to better encapsulate ...
6 years, 3 months ago (2014-08-26 20:37:03 UTC) #2
Kevin M
https://codereview.chromium.org/505453002/diff/20001/extensions/browser/api/cast_channel/cast_socket.cc File extensions/browser/api/cast_channel/cast_socket.cc (right): https://codereview.chromium.org/505453002/diff/20001/extensions/browser/api/cast_channel/cast_socket.cc#newcode837 extensions/browser/api/cast_channel/cast_socket.cc:837: uint32 num_bytes_to_read = framer_->BytesRequested(); On 2014/08/26 20:37:02, mark a. ...
6 years, 3 months ago (2014-08-27 01:14:04 UTC) #3
mark a. foltz
Looking pretty good. Most comments around doc strings and such. A couple of high level ...
6 years, 3 months ago (2014-08-28 21:45:23 UTC) #4
mark a. foltz
https://codereview.chromium.org/505453002/diff/40001/extensions/browser/api/cast_channel/cast_socket.cc File extensions/browser/api/cast_channel/cast_socket.cc (right): https://codereview.chromium.org/505453002/diff/40001/extensions/browser/api/cast_channel/cast_socket.cc#newcode884 extensions/browser/api/cast_channel/cast_socket.cc:884: return net::OK; I think you will need to Clear() ...
6 years, 3 months ago (2014-08-28 21:49:14 UTC) #5
Kevin M
https://codereview.chromium.org/505453002/diff/40001/extensions/browser/api/cast_channel/cast_socket.cc File extensions/browser/api/cast_channel/cast_socket.cc (right): https://codereview.chromium.org/505453002/diff/40001/extensions/browser/api/cast_channel/cast_socket.cc#newcode860 extensions/browser/api/cast_channel/cast_socket.cc:860: current_message_ = framer_->Ingest(result, &message_size, &error_state_); On 2014/08/28 21:45:21, mark ...
6 years, 3 months ago (2014-08-28 23:33:33 UTC) #6
mark a. foltz
https://codereview.chromium.org/505453002/diff/60001/extensions/extensions.gyp File extensions/extensions.gyp (right): https://codereview.chromium.org/505453002/diff/60001/extensions/extensions.gyp#newcode302 extensions/extensions.gyp:302: 'browser/api/cast_channel/cast_socket_framer.h', Are these files missing from the patch?
6 years, 3 months ago (2014-08-29 20:33:45 UTC) #7
Kevin M
https://codereview.chromium.org/505453002/diff/60001/extensions/extensions.gyp File extensions/extensions.gyp (right): https://codereview.chromium.org/505453002/diff/60001/extensions/extensions.gyp#newcode302 extensions/extensions.gyp:302: 'browser/api/cast_channel/cast_socket_framer.h', On 2014/08/29 20:33:45, mark a. foltz wrote: > ...
6 years, 3 months ago (2014-08-29 23:18:27 UTC) #9
mark a. foltz
LGTM with a few nits. Please make sure to use static methods to access the ...
6 years, 3 months ago (2014-09-02 20:27:38 UTC) #10
mark a. foltz
https://codereview.chromium.org/505453002/diff/100001/extensions/browser/api/cast_channel/cast_socket_unittest.cc File extensions/browser/api/cast_channel/cast_socket_unittest.cc (right): https://codereview.chromium.org/505453002/diff/100001/extensions/browser/api/cast_channel/cast_socket_unittest.cc#newcode1212 extensions/browser/api/cast_channel/cast_socket_unittest.cc:1212: TEST_F(CastSocketTest, TestMessageFramerCompleteMessage) { ISTM this test should go into ...
6 years, 3 months ago (2014-09-02 20:29:51 UTC) #11
Kevin M
https://codereview.chromium.org/505453002/diff/100001/extensions/browser/api/cast_channel/cast_socket_framer.cc File extensions/browser/api/cast_channel/cast_socket_framer.cc (right): https://codereview.chromium.org/505453002/diff/100001/extensions/browser/api/cast_channel/cast_socket_framer.cc#newcode72 extensions/browser/api/cast_channel/cast_socket_framer.cc:72: return "{message_size: " + base::UintToString(message_size) + "}"; On 2014/09/02 ...
6 years, 3 months ago (2014-09-02 23:15:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmarshall@chromium.org/505453002/120001
6 years, 3 months ago (2014-09-02 23:16:46 UTC) #14
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 3 months ago (2014-09-02 23:16:49 UTC) #16
Kevin M
Added rockot@chromium.org for gyp/gypi review. Thanks.
6 years, 3 months ago (2014-09-02 23:19:33 UTC) #18
Ken Rockot(use gerrit already)
On 2014/09/02 23:19:33, kmarshall wrote: > Added mailto:rockot@chromium.org for gyp/gypi review. > > Thanks. gyp/i ...
6 years, 3 months ago (2014-09-02 23:20:42 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmarshall@chromium.org/505453002/120001
6 years, 3 months ago (2014-09-03 17:35:00 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 3 months ago (2014-09-03 17:49:45 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/60749) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/49657) android_arm64_dbg_recipe ...
6 years, 3 months ago (2014-09-03 17:53:30 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmarshall@chromium.org/505453002/140001
6 years, 3 months ago (2014-09-03 17:58:41 UTC) #26
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 3 months ago (2014-09-03 18:53:16 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/11898) mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/9628)
6 years, 3 months ago (2014-09-03 18:58:16 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmarshall@chromium.org/505453002/160001
6 years, 3 months ago (2014-09-03 19:54:29 UTC) #31
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 3 months ago (2014-09-03 21:00:41 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmarshall@chromium.org/505453002/180001
6 years, 3 months ago (2014-09-03 21:21:10 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_swarming/builds/5695)
6 years, 3 months ago (2014-09-04 01:06:29 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmarshall@chromium.org/505453002/200001
6 years, 3 months ago (2014-09-10 04:35:14 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/13938)
6 years, 3 months ago (2014-09-10 04:42:46 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmarshall@chromium.org/505453002/280001
6 years, 3 months ago (2014-09-10 18:52:30 UTC) #44
commit-bot: I haz the power
Committed patchset #15 (id:280001) as 46152480ccebd131ad5d94f49c9c32278bed8499
6 years, 3 months ago (2014-09-11 00:58:22 UTC) #45
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 01:00:48 UTC) #46
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/ed1a1429274647b00fe9365223d567981e7049b6
Cr-Commit-Position: refs/heads/master@{#294279}

Powered by Google App Engine
This is Rietveld 408576698