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

Unified Diff: pkg/http/test/multipart_test.dart

Issue 22909059: Some more removals of dart:utf. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change ArgumentError to FormatException. Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: pkg/http/test/multipart_test.dart
diff --git a/pkg/http/test/multipart_test.dart b/pkg/http/test/multipart_test.dart
index cdbb4cd361d85287903f4cf596456b4f4cd93df5..05857fcf2cf3181f438e003f9afee0b60bd2d434 100644
--- a/pkg/http/test/multipart_test.dart
+++ b/pkg/http/test/multipart_test.dart
@@ -5,8 +5,8 @@
library multipart_test;
import 'dart:async';
+import 'dart:convert';
import 'dart:io';
-import 'dart:utf';
import 'package:http/http.dart' as http;
import 'package:path/path.dart' as path;
@@ -29,7 +29,7 @@ class _BodyMatches extends Matcher {
if (item is! http.MultipartRequest) return false;
var future = item.finalize().toBytes().then((bodyBytes) {
- var body = decodeUtf8(bodyBytes);
+ var body = UTF8.decode(bodyBytes);
var contentType = ContentType.parse(item.headers['content-type']);
var boundary = contentType.parameters['boundary'];
var expected = cleanUpLiteral(_pattern)

Powered by Google App Engine
This is Rietveld 408576698