| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // | 4 // |
| 5 // Echo server test program to test socket streams. | 5 // Echo server test program to test socket streams. |
| 6 // |
| 7 // VMOptions= |
| 8 // VMOptions=--short_socket_read |
| 9 // VMOptions=--short_socket_write |
| 10 // VMOptions=--short_socket_read --short_socket_write |
| 11 |
| 6 | 12 |
| 7 class EchoServerStreamTest { | 13 class EchoServerStreamTest { |
| 8 | 14 |
| 9 static void testMain() { | 15 static void testMain() { |
| 10 EchoServerGame echoServerGame = new EchoServerGame.start(); | 16 EchoServerGame echoServerGame = new EchoServerGame.start(); |
| 11 } | 17 } |
| 12 } | 18 } |
| 13 | 19 |
| 14 class EchoServerGame { | 20 class EchoServerGame { |
| 15 | 21 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 } | 181 } |
| 176 }); | 182 }); |
| 177 } | 183 } |
| 178 | 184 |
| 179 ServerSocket _server; | 185 ServerSocket _server; |
| 180 } | 186 } |
| 181 | 187 |
| 182 main() { | 188 main() { |
| 183 EchoServerStreamTest.testMain(); | 189 EchoServerStreamTest.testMain(); |
| 184 } | 190 } |
| OLD | NEW |