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

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

Issue 9029001: Add close to input stream and cleanup socket and streams (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments by ager@ Created 8 years, 12 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/src/ReadIntoConstList.dart ('k') | tests/standalone/src/SocketStreamCloseTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/SocketCloseTest.dart
diff --git a/tests/standalone/src/SocketCloseTest.dart b/tests/standalone/src/SocketCloseTest.dart
index 8e5732932a6618e31539e86becd593d3ac4054e6..fb1df69a5213155e30337bd50dbb203b203a73c4 100644
--- a/tests/standalone/src/SocketCloseTest.dart
+++ b/tests/standalone/src/SocketCloseTest.dart
@@ -9,27 +9,6 @@ final SERVERSHUTDOWN = -1;
final ITERATIONS = 10;
-// Run the close test in these different "modes".
-// 0: Client closes without sending at all.
-// 1: Client sends and closes.
-// 2: Client sends. Server closes.
-// 3: Client sends. Server responds and closes.
-// 4: Client sends and half-closes. Server responds and closes.
-// 5: Client sends. Server responds and half closes.
-// 6: Client sends and half-closes. Server responds and half closes.
-class SocketCloseTest {
- static void testMain() {
- new SocketClose.start(0);
- new SocketClose.start(1);
- new SocketClose.start(2);
- new SocketClose.start(3);
- new SocketClose.start(4);
- new SocketClose.start(5);
- new SocketClose.start(6);
- }
-}
-
-
class SocketClose {
SocketClose.start(mode)
@@ -337,5 +316,19 @@ class SocketCloseServer extends Isolate {
main() {
- SocketCloseTest.testMain();
+ // Run the close test in these different "modes".
+ // 0: Client closes without sending at all.
+ // 1: Client sends and closes.
+ // 2: Client sends. Server closes.
+ // 3: Client sends. Server responds and closes.
+ // 4: Client sends and half-closes. Server responds and closes.
+ // 5: Client sends. Server responds and half closes.
+ // 6: Client sends and half-closes. Server responds and half closes.
+ new SocketClose.start(0);
+ new SocketClose.start(1);
+ new SocketClose.start(2);
+ new SocketClose.start(3);
+ new SocketClose.start(4);
+ new SocketClose.start(5);
+ new SocketClose.start(6);
}
« no previous file with comments | « tests/standalone/src/ReadIntoConstList.dart ('k') | tests/standalone/src/SocketStreamCloseTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698