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

Unified Diff: tests/standalone/vmservice/test_helper.dart

Issue 23596007: Remove usage of dart:json. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. 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 1eb81aed13789f00e7f3b38f8249bab8fc091536..325ecb1e2fd7e578af9735ed98d5cc0949a1abb8 100644
--- a/tests/standalone/vmservice/test_helper.dart
+++ b/tests/standalone/vmservice/test_helper.dart
@@ -7,7 +7,6 @@ library vmservice_test_helper;
import 'dart:async';
import 'dart:convert';
import 'dart:io';
-import 'dart:json' as JSON;
import 'package:expect/expect.dart';
abstract class VmServiceRequestHelper {
@@ -45,7 +44,7 @@ abstract class VmServiceRequestHelper {
print('** Response: $replyAsString');
var reply;
try {
- reply = JSON.parse(replyAsString);
+ reply = JSON.decode(replyAsString);
} catch (e) {
onRequestFailed(e);
return;

Powered by Google App Engine
This is Rietveld 408576698