| 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 import "package:expect/expect.dart"; |
| 5 import "dart:io"; | 6 import "dart:io"; |
| 6 import "dart:isolate"; | 7 import "dart:isolate"; |
| 7 import "dart:math"; | 8 import "dart:math"; |
| 8 | 9 |
| 9 class ExpectedDataOutputStream implements OutputStream { | 10 class ExpectedDataOutputStream implements OutputStream { |
| 10 ExpectedDataOutputStream(List<int> this._data, | 11 ExpectedDataOutputStream(List<int> this._data, |
| 11 int this._cutoff, | 12 int this._cutoff, |
| 12 bool this._closeAsError, | 13 bool this._closeAsError, |
| 13 SocketMock this._socket); | 14 SocketMock this._socket); |
| 14 | 15 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 "GET / HTTP/1.1\r\nKeep-Alive: False\r\n\r\n", | 229 "GET / HTTP/1.1\r\nKeep-Alive: False\r\n\r\n", |
| 229 "HTTP/1.1 200 OK\r\ntransfer-encoding: chunked\r\nconnection: close" | 230 "HTTP/1.1 200 OK\r\ntransfer-encoding: chunked\r\nconnection: close" |
| 230 "\r\n\r\n0\r\n\r\n"); | 231 "\r\n\r\n0\r\n\r\n"); |
| 231 | 232 |
| 232 server.close(); | 233 server.close(); |
| 233 } | 234 } |
| 234 | 235 |
| 235 void main() { | 236 void main() { |
| 236 testSocketClose(); | 237 testSocketClose(); |
| 237 } | 238 } |
| OLD | NEW |