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

Issue 9382001: Another attempt at fixing the Socket tests. (Closed)

Created:
8 years, 10 months ago by Mads Ager (google)
Modified:
8 years, 10 months ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Another attempt at fixing the Socket tests. The tests did not wait for the server isolate to finish before exiting the main isolate. The tests did not correctly count the number of bytes received on the server-side. We have to count bytes per connection. There were issues with close handlers being confused for timeouts. R=sgjesse@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=4127

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+243 lines, -104 lines) Patch
M runtime/bin/socket_impl.dart View 4 chunks +23 lines, -16 lines 0 comments Download
M runtime/bin/socket_stream_impl.dart View 4 chunks +4 lines, -6 lines 1 comment Download
M tests/standalone/src/SocketCloseTest.dart View 13 chunks +77 lines, -35 lines 0 comments Download
M tests/standalone/src/SocketStreamCloseTest.dart View 15 chunks +139 lines, -47 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Mads Ager (google)
8 years, 10 months ago (2012-02-10 10:34:35 UTC) #1
Søren Gjesse
8 years, 10 months ago (2012-02-10 10:44:33 UTC) #2
lgtm

https://chromiumcodereview.appspot.com/9382001/diff/1/runtime/bin/socket_stre...
File runtime/bin/socket_stream_impl.dart (left):

https://chromiumcodereview.appspot.com/9382001/diff/1/runtime/bin/socket_stre...
runtime/bin/socket_stream_impl.dart:123: void set closeHandler(void callback())
{
We still have a closeHandler setter int the OutputStream interface. Maybe we
should leave this here for now. We have
http://code.google.com/p/dart/issues/detail?id=941 open on this issue.

Powered by Google App Engine
This is Rietveld 408576698