Index: test/checker/self_host_test.dart |
diff --git a/test/checker/self_host_test.dart b/test/checker/self_host_test.dart |
index 111a5226cafb5d0bb84147370c41550634c49d9d..4a35f96f56e3639ec8b55fd35d5db069ef697cf9 100644 |
--- a/test/checker/self_host_test.dart |
+++ b/test/checker/self_host_test.dart |
@@ -7,21 +7,20 @@ library ddc.test.end_to_end; |
import 'dart:io'; |
import 'package:cli_util/cli_util.dart' show getSdkDir; |
-import 'package:dev_compiler/devc.dart' show compile; |
+import 'package:dev_compiler/devc.dart' show Compiler; |
import 'package:dev_compiler/src/options.dart'; |
-import 'package:dev_compiler/src/report.dart'; |
-import 'package:dev_compiler/src/checker/resolver.dart' show TypeResolver; |
import 'package:path/path.dart' as path; |
import 'package:unittest/compact_vm_config.dart'; |
import 'package:unittest/unittest.dart'; |
main(args) { |
useCompactVMConfiguration(); |
- var options = new CompilerOptions(); |
- var realSdk = new TypeResolver.fromDir(getSdkDir(args).path, options); |
var testDir = path.absolute(path.dirname(Platform.script.path)); |
test('checker can run on itself ', () { |
- compile('$testDir/../all_tests.dart', realSdk, options, new LogReporter()); |
+ var options = new CompilerOptions( |
+ entryPointFile: '$testDir/../all_tests.dart', |
+ dartSdkPath: getSdkDir(args).path); |
+ new Compiler(options).run(); |
}); |
} |