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

Unified Diff: tests/standalone/io/socket_test.dart

Issue 169383003: Make event-handlers edge-triggered and move socket-state to Dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 months 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/io/socket_port_test.dart ('k') | tests/standalone/vmservice/websocket_client_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/socket_test.dart
diff --git a/tests/standalone/io/socket_test.dart b/tests/standalone/io/socket_test.dart
index 56a76bbaa98fd866aab01982739fe255eb81a1de..3ebadf8043ea4fc2d914123ba8795927ac30dfdc 100644
--- a/tests/standalone/io/socket_test.dart
+++ b/tests/standalone/io/socket_test.dart
@@ -62,17 +62,6 @@ void testInvalidBind() {
});
}
-void testConnectNoDestroy() {
- asyncStart();
- ServerSocket.bind(InternetAddress.LOOPBACK_IP_V4, 0).then((server) {
- server.listen((_) { });
- Socket.connect("127.0.0.1", server.port).then((_) {
- server.close();
- asyncEnd();
- });
- });
-}
-
void testConnectImmediateDestroy() {
asyncStart();
ServerSocket.bind(InternetAddress.LOOPBACK_IP_V4, 0).then((server) {
@@ -210,26 +199,10 @@ void testConnectStreamDataCloseCancel(bool useDestroy) {
});
}
-void testCloseWriteNoListen() {
- asyncStart();
- ServerSocket.bind(InternetAddress.LOOPBACK_IP_V4, 0).then((server) {
- server.listen(
- (client) {
- client.close();
- });
- Socket.connect("127.0.0.1", server.port).then((socket) {
- socket.close();
- server.close();
- asyncEnd();
- });
- });
-}
-
main() {
testArguments();
testSimpleBind();
testInvalidBind();
- testConnectNoDestroy();
testConnectImmediateDestroy();
testConnectConsumerClose();
testConnectConsumerWriteClose();
@@ -238,5 +211,4 @@ main() {
testConnectStreamDataClose(false);
testConnectStreamDataCloseCancel(true);
testConnectStreamDataCloseCancel(false);
- testCloseWriteNoListen();
}
« no previous file with comments | « tests/standalone/io/socket_port_test.dart ('k') | tests/standalone/vmservice/websocket_client_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698