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

Issue 10836030: Add unittests for BufferedSocketWriter and fix some bugs in that code. (Closed)

Created:
8 years, 4 months ago by Sergey Ulanov
Modified:
8 years, 4 months ago
Reviewers:
simonmorris
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Add unittests for BufferedSocketWriter and fix some bugs in that code. One issue that is being fixed is that previously that class didn't properly handle the case when write is called from a callback or the object is destroyed from a callback. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149350

Patch Set 1 #

Total comments: 17

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+326 lines, -63 lines) Patch
M remoting/protocol/buffered_socket_writer.h View 1 4 chunks +17 lines, -9 lines 0 comments Download
M remoting/protocol/buffered_socket_writer.cc View 1 7 chunks +66 lines, -51 lines 0 comments Download
A remoting/protocol/buffered_socket_writer_unittest.cc View 1 2 1 chunk +186 lines, -0 lines 0 comments Download
M remoting/protocol/fake_session.h View 2 chunks +12 lines, -0 lines 0 comments Download
M remoting/protocol/fake_session.cc View 1 3 chunks +44 lines, -3 lines 0 comments Download
M remoting/remoting.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Sergey Ulanov
This fixes issues I discovered when debugging http://codereview.chromium.org/10830046/ . It shouldn't affects any existing code.
8 years, 4 months ago (2012-07-31 18:12:33 UTC) #1
simonmorris
http://codereview.chromium.org/10836030/diff/1/remoting/protocol/buffered_socket_writer.cc File remoting/protocol/buffered_socket_writer.cc (right): http://codereview.chromium.org/10836030/diff/1/remoting/protocol/buffered_socket_writer.cc#newcode17 remoting/protocol/buffered_socket_writer.cc:17: class BufferedSocketWriterBase::PendingPacket { Maybe just make this a struct? ...
8 years, 4 months ago (2012-07-31 20:19:50 UTC) #2
Sergey Ulanov
http://codereview.chromium.org/10836030/diff/1/remoting/protocol/buffered_socket_writer.cc File remoting/protocol/buffered_socket_writer.cc (right): http://codereview.chromium.org/10836030/diff/1/remoting/protocol/buffered_socket_writer.cc#newcode17 remoting/protocol/buffered_socket_writer.cc:17: class BufferedSocketWriterBase::PendingPacket { On 2012/07/31 20:19:50, simonmorris wrote: > ...
8 years, 4 months ago (2012-07-31 21:37:52 UTC) #3
simonmorris
lgtm with optional suggestion http://codereview.chromium.org/10836030/diff/1/remoting/protocol/buffered_socket_writer.cc File remoting/protocol/buffered_socket_writer.cc (right): http://codereview.chromium.org/10836030/diff/1/remoting/protocol/buffered_socket_writer.cc#newcode95 remoting/protocol/buffered_socket_writer.cc:95: bool* write_again) { On 2012/07/31 ...
8 years, 4 months ago (2012-07-31 22:20:12 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/10836030/10001
8 years, 4 months ago (2012-08-01 00:28:02 UTC) #5
commit-bot: I haz the power
8 years, 4 months ago (2012-08-01 01:48:05 UTC) #6
Change committed as 149350

Powered by Google App Engine
This is Rietveld 408576698