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

Unified Diff: tests/compiler/dart2js/incremental/hello_test.dart

Issue 1235563003: Add interfaces for a new compiler API. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Rebased Created 5 years, 5 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/compiler/dart2js/incremental/hello_test.dart
diff --git a/tests/compiler/dart2js/incremental/hello_test.dart b/tests/compiler/dart2js/incremental/hello_test.dart
index 7dad2e847bca1b3d92986617192e5a73cce7f5c1..83215dc766e65a07584aeb7d95678145369d5568 100644
--- a/tests/compiler/dart2js/incremental/hello_test.dart
+++ b/tests/compiler/dart2js/incremental/hello_test.dart
@@ -17,8 +17,11 @@ import 'package:dart2js_incremental/dart2js_incremental.dart' show
import 'package:compiler/compiler.dart' show
Diagnostic;
-import 'package:compiler/src/dart2jslib.dart' show
- NullSink;
+import 'package:compiler/src/null_compiler_output.dart' show
+ NullCompilerOutput;
+
+import 'package:compiler/src/old_to_new_api.dart' show
+ LegacyCompilerDiagnostics;
import 'package:async_helper/async_helper.dart' show
asyncTest;
@@ -94,9 +97,9 @@ Future runTests(
Uri packageRoot,
MemorySourceFileProvider provider) {
IncrementalCompiler compiler = new IncrementalCompiler(
- diagnosticHandler: handler,
+ diagnosticHandler: new LegacyCompilerDiagnostics(handler),
inputProvider: provider,
- outputProvider: NullSink.outputProvider,
+ outputProvider: const NullCompilerOutput(),
options: ['--analyze-main'],
libraryRoot: libraryRoot,
packageRoot: packageRoot);
« no previous file with comments | « tests/compiler/dart2js/incremental/compile_all.dart ('k') | tests/compiler/dart2js/library_resolution_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698