| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library crash_dump_test; | 5 library crash_dump_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 import 'dart:io'; | 9 import 'dart:io'; |
| 10 import 'package:observatory/service_io.dart'; | 10 import 'package:observatory/service_io.dart'; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 Completer completer = new Completer(); | 26 Completer completer = new Completer(); |
| 27 StringBuffer sb = new StringBuffer(); | 27 StringBuffer sb = new StringBuffer(); |
| 28 response.transform(UTF8.decoder).listen((chunk) { | 28 response.transform(UTF8.decoder).listen((chunk) { |
| 29 sb.write(chunk); | 29 sb.write(chunk); |
| 30 }, onDone: () => completer.complete(sb.toString())); | 30 }, onDone: () => completer.complete(sb.toString())); |
| 31 var responseString = await completer.future; | 31 var responseString = await completer.future; |
| 32 JSON.decode(responseString); | 32 JSON.decode(responseString); |
| 33 } | 33 } |
| 34 ]; | 34 ]; |
| 35 | 35 |
| 36 main(args) async => runVMTests(args, tests, testeeBefore: warmup); | 36 main(args) async => runVMTests(args, tests, testeeBefore:warmup); |
| OLD | NEW |