| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 library test.kernel.reify.suite; | 5 library test.kernel.reify.suite; |
| 6 | 6 |
| 7 import 'dart:async' show Future; | 7 import 'dart:async' show Future; |
| 8 | 8 |
| 9 import 'dart:io' show Directory, File, Platform; | 9 import 'dart:io' show Directory, File, Platform; |
| 10 | 10 |
| 11 import 'package:analyzer/src/generated/sdk.dart' show DartSdk; | 11 import 'package:analyzer/src/generated/sdk.dart' show DartSdk; |
| 12 | 12 |
| 13 import 'package:kernel/analyzer/loader.dart' | 13 import 'package:analyzer/src/kernel/loader.dart' |
| 14 show DartLoader, DartOptions, createDartSdk; | 14 show DartLoader, DartOptions, createDartSdk; |
| 15 | 15 |
| 16 import 'package:kernel/target/targets.dart' show Target, TargetFlags, getTarget; | 16 import 'package:kernel/target/targets.dart' show Target, TargetFlags, getTarget; |
| 17 | 17 |
| 18 import 'kernel_chain.dart' | 18 import 'kernel_chain.dart' |
| 19 show MatchExpectation, Print, ReadDill, SanityCheck, WriteDill; | 19 show MatchExpectation, Print, ReadDill, SanityCheck, WriteDill; |
| 20 | 20 |
| 21 import 'package:testing/testing.dart' | 21 import 'package:testing/testing.dart' |
| 22 show | 22 show |
| 23 Chain, | 23 Chain, |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 await StdioProcess.run(context.vm.toFilePath(), [generated.path]); | 212 await StdioProcess.run(context.vm.toFilePath(), [generated.path]); |
| 213 print(process.output); | 213 print(process.output); |
| 214 } finally { | 214 } finally { |
| 215 generated.parent.delete(recursive: true); | 215 generated.parent.delete(recursive: true); |
| 216 } | 216 } |
| 217 return process.toResult(); | 217 return process.toResult(); |
| 218 } | 218 } |
| 219 } | 219 } |
| 220 | 220 |
| 221 main(List<String> arguments) => runMe(arguments, createContext, "testing.json"); | 221 main(List<String> arguments) => runMe(arguments, createContext, "testing.json"); |
| OLD | NEW |