Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 // VMOptions= | 5 // VMOptions= |
| 6 // VMOptions=--short_socket_read | 6 // VMOptions=--short_socket_read |
| 7 // VMOptions=--short_socket_write | 7 // VMOptions=--short_socket_write |
| 8 // VMOptions=--short_socket_read --short_socket_write | 8 // VMOptions=--short_socket_read --short_socket_write |
| 9 | 9 |
| 10 library dart.io; | |
|
Søren Gjesse
2013/09/02 10:04:11
Hack, hack, ... maybe add a comment.
| |
| 11 | |
| 10 import "package:expect/expect.dart"; | 12 import "package:expect/expect.dart"; |
| 11 import "dart:async"; | 13 import "dart:async"; |
| 12 import "dart:io"; | 14 import "dart:io"; |
| 13 import "dart:math"; | 15 import "dart:math"; |
| 14 | 16 |
| 15 part "../../../sdk/lib/io/crypto.dart"; | 17 part "../../../sdk/lib/io/crypto.dart"; |
| 16 | 18 |
| 17 | 19 |
| 18 const String webSocketGUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; | 20 const String webSocketGUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; |
| 19 | 21 |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 48 webSocket.drain(); | 50 webSocket.drain(); |
| 49 }); | 51 }); |
| 50 } | 52 } |
| 51 }); | 53 }); |
| 52 } | 54 } |
| 53 | 55 |
| 54 | 56 |
| 55 void main() { | 57 void main() { |
| 56 testPing(10); | 58 testPing(10); |
| 57 } | 59 } |
| OLD | NEW |