Index: tools/testing/dart/record_and_replay.dart |
diff --git a/tools/testing/dart/record_and_replay.dart b/tools/testing/dart/record_and_replay.dart |
index 7cfc4003a94e5e18afd5d9d6e87f3ecfe17f0946..f9b728f8098ba1e7f6da5a5c83070697f8a61830 100644 |
--- a/tools/testing/dart/record_and_replay.dart |
+++ b/tools/testing/dart/record_and_replay.dart |
@@ -5,7 +5,7 @@ |
library record_and_replay; |
import 'dart:io'; |
-import 'dart:json' as json; |
+import 'dart:convert'; |
import 'dart:utf'; |
import 'test_runner.dart'; |
@@ -76,7 +76,7 @@ class TestCaseRecorder { |
void finish() { |
var file = new File(_outputPath.toNativePath()); |
- var jsonString = json.stringify(_recordedCommandInvocations); |
+ var jsonString = JSON.encode(_recordedCommandInvocations); |
file.writeAsStringSync(jsonString); |
print("TestCaseRecorder: written all TestCases to ${_outputPath}"); |
} |
@@ -92,7 +92,7 @@ class TestCaseOutputArchive { |
void loadFromPath(Path recordingPath) { |
var file = new File(recordingPath.toNativePath()); |
- var commandRecordings = json.parse(file.readAsStringSync()); |
+ var commandRecordings = JSON.decode(file.readAsStringSync()); |
_commandOutputRecordings = {}; |
for (var commandRecording in commandRecordings) { |
var key = _indexKey(commandRecording['command']['executable'], |