Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(620)

Side by Side Diff: tests/standalone/io/http_body_test.dart

Issue 18576006: Remove _HttpUtils from dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 'dart:io'; 5 import 'dart:io';
6 import 'dart:utf'; 6 import 'dart:utf';
7 7
8 import 'package:expect/expect.dart'; 8 import 'package:expect/expect.dart';
9 9
10 void testHttpClientResponseBody() { 10 void testHttpClientResponseBody() {
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 248
249 test('application/x-www-form-urlencoded', 249 test('application/x-www-form-urlencoded',
250 '%E5%B9%B3%3D%E4%BB%AE%E5%90%8D=%E5%B9%B3%E4%BB%AE%E5%90%8D&b' 250 '%E5%B9%B3%3D%E4%BB%AE%E5%90%8D=%E5%B9%B3%E4%BB%AE%E5%90%8D&b'
251 '=%E5%B9%B3%E4%BB%AE%E5%90%8D'.codeUnits, 251 '=%E5%B9%B3%E4%BB%AE%E5%90%8D'.codeUnits,
252 { 'b' : '平仮名', 252 { 'b' : '平仮名',
253 '平=仮名' : '平仮名'}, 253 '平=仮名' : '平仮名'},
254 "form"); 254 "form");
255 255
256 test('application/x-www-form-urlencoded', 256 test('application/x-www-form-urlencoded',
257 'a=%F8+%26%23548%3B'.codeUnits, 257 'a=%F8+%26%23548%3B'.codeUnits,
258 { 'a' : '\u{FFFD}Ȥ' }, 258 { 'a' : '\u{FFFD} Ȥ' },
Lasse Reichstein Nielsen 2013/07/04 14:56:33 This is doing UTF-8 decoding, right? The \u{FFFD}
Anders Johnsen 2013/07/05 09:51:28 Yes, I also think this is correct. Added those tes
259 "form"); 259 "form");
260 260
261 test('application/x-www-form-urlencoded', 261 test('application/x-www-form-urlencoded',
262 'a=%C3%B8+%C8%A4'.codeUnits, 262 'a=%C3%B8+%C8%A4'.codeUnits,
263 { 'a' : 'ø Ȥ' }, 263 { 'a' : 'ø Ȥ' },
264 "form"); 264 "form");
265 265
266 test('application/x-www-form-urlencoded', 266 test('application/x-www-form-urlencoded',
267 'a=%F8+%26%23548%3B'.codeUnits, 267 'a=%F8+%26%23548%3B'.codeUnits,
268 { 'a' : 'ø Ȥ' }, 268 { 'a' : 'ø Ȥ' },
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 test('application/x-www-form-urlencoded', 316 test('application/x-www-form-urlencoded',
317 'name=%C8%A4%C8%A4'.codeUnits, 317 'name=%C8%A4%C8%A4'.codeUnits,
318 { 'name' : 'ȤȤ' }, 318 { 'name' : 'ȤȤ' },
319 "form"); 319 "form");
320 } 320 }
321 321
322 void main() { 322 void main() {
323 testHttpClientResponseBody(); 323 testHttpClientResponseBody();
324 testHttpServerRequestBody(); 324 testHttpServerRequestBody();
325 } 325 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698