| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library http.test.io.multipart_test; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 import 'dart:io'; | 6 import 'dart:io'; |
| 9 | 7 |
| 10 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 11 import 'package:path/path.dart' as path; | 9 import 'package:path/path.dart' as path; |
| 12 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
| 13 | 11 |
| 14 import 'utils.dart'; | 12 import 'utils.dart'; |
| 15 | 13 |
| 16 void main() { | 14 void main() { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 34 --{{boundary}} | 32 --{{boundary}} |
| 35 content-type: application/octet-stream | 33 content-type: application/octet-stream |
| 36 content-disposition: form-data; name="file"; filename="test-file" | 34 content-disposition: form-data; name="file"; filename="test-file" |
| 37 | 35 |
| 38 hello | 36 hello |
| 39 --{{boundary}}-- | 37 --{{boundary}}-- |
| 40 ''')); | 38 ''')); |
| 41 }), completes); | 39 }), completes); |
| 42 }); | 40 }); |
| 43 } | 41 } |
| OLD | NEW |