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

Unified Diff: tests/standalone/src/SocketManyConnectionsTest.dart

Issue 8726031: Change handling of accepting socket connections (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/standalone/src/SocketCloseTest.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/SocketManyConnectionsTest.dart
diff --git a/tests/standalone/src/SocketManyConnectionsTest.dart b/tests/standalone/src/SocketManyConnectionsTest.dart
index 9b737e89e5bca4ea187145c1ac15d62e4bfd8555..d9ec55981c8b27dc518d7b456c1e96ea4f0a1e20 100644
--- a/tests/standalone/src/SocketManyConnectionsTest.dart
+++ b/tests/standalone/src/SocketManyConnectionsTest.dart
@@ -65,22 +65,21 @@ class SocketManyConnectionsTest {
class TestServer extends TestingServer {
- void connectionHandler() {
+ void connectionHandler(Socket connection) {
Socket _client;
void closeHandler() {
- _client.close();
+ connection.close();
}
void errorHandler() {
print("Socket error");
- _client.close();
+ connection.close();
}
- _client = _server.accept();
_connections++;
- _client.closeHandler = closeHandler;
- _client.errorHandler = errorHandler;
+ connection.closeHandler = closeHandler;
+ connection.errorHandler = errorHandler;
}
int _connections = 0;
« no previous file with comments | « tests/standalone/src/SocketCloseTest.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698