OLD | NEW |
1 // Copyright (c) 2014, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 import 'dart:typed_data'; | 5 import 'dart:typed_data'; |
6 | 6 |
7 import 'package:expect/expect.dart'; | 7 import 'package:expect/expect.dart'; |
8 import 'package:os/os.dart' as os; | 8 import 'package:os/os.dart' as os; |
9 import 'package:socket/socket.dart'; | 9 import 'package:socket/socket.dart'; |
10 | 10 |
11 void main() { | 11 void main() { |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 192 |
193 Expect.throws(() => client.write(createBuffer(CHUNK_SIZE)), | 193 Expect.throws(() => client.write(createBuffer(CHUNK_SIZE)), |
194 isSocketException); | 194 isSocketException); |
195 Expect.throws(() => socket.write(createBuffer(CHUNK_SIZE)), | 195 Expect.throws(() => socket.write(createBuffer(CHUNK_SIZE)), |
196 isSocketException); | 196 isSocketException); |
197 | 197 |
198 client.close(); | 198 client.close(); |
199 socket.close(); | 199 socket.close(); |
200 server.close(); | 200 server.close(); |
201 } | 201 } |
OLD | NEW |