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

Unified Diff: tests/standalone/vmservice/test_helper.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: tests/standalone/vmservice/test_helper.dart
diff --git a/tests/standalone/vmservice/test_helper.dart b/tests/standalone/vmservice/test_helper.dart
index f70e0f0dc7039d17eb3b5c951cd3f21ac1e0ae80..1eb81aed13789f00e7f3b38f8249bab8fc091536 100644
--- a/tests/standalone/vmservice/test_helper.dart
+++ b/tests/standalone/vmservice/test_helper.dart
@@ -8,7 +8,6 @@ import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'dart:json' as JSON;
-import 'dart:utf' as UTF;
import 'package:expect/expect.dart';
abstract class VmServiceRequestHelper {
@@ -38,7 +37,7 @@ abstract class VmServiceRequestHelper {
Expect.equals(200, response.statusCode, 'Invalid HTTP Status Code');
var replyAsString;
try {
- replyAsString = UTF.decodeUtf8(data, 0, null, null);
+ replyAsString = UTF8.decode(data);
} catch (e) {
onRequestFailed(e);
return;

Powered by Google App Engine
This is Rietveld 408576698