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

Unified Diff: tests/compiler/dart2js/kernel/compiler_helper.dart

Issue 2992383002: Support use of dill in TypeEnv tests (Closed)
Patch Set: Created 3 years, 4 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/kernel/compiler_helper.dart
diff --git a/tests/compiler/dart2js/kernel/compiler_helper.dart b/tests/compiler/dart2js/kernel/compiler_helper.dart
index 9f8980f8ce5589d9339caa836896faf1ee4c6cee..9ee008fc34e14eabe8fc7be2ae14ad0c661aa4bd 100644
--- a/tests/compiler/dart2js/kernel/compiler_helper.dart
+++ b/tests/compiler/dart2js/kernel/compiler_helper.dart
@@ -181,8 +181,11 @@ Future generateDill(Uri entryPoint, Map<String, String> memorySourceFiles,
}
Future<Compiler> compileWithDill(
- Uri entryPoint, Map<String, String> memorySourceFiles, List<String> options,
- {bool printSteps: false,
+ {Uri entryPoint,
+ Map<String, String> memorySourceFiles: const <String, String>{},
+ List<String> options: const <String>[],
+ CompilerDiagnostics diagnosticHandler,
+ bool printSteps: false,
CompilerOutput compilerOutput,
void beforeRun(Compiler compiler)}) async {
Uri dillFile =
@@ -194,6 +197,7 @@ Future<Compiler> compileWithDill(
Compiler compiler = compilerFor(
entryPoint: dillFile,
options: [Flags.useKernel]..addAll(options),
+ diagnosticHandler: diagnosticHandler,
outputProvider: compilerOutput);
ElementResolutionWorldBuilder.useInstantiationMap = true;
compiler.resolution.retainCachesForTesting = true;
« no previous file with comments | « tests/compiler/dart2js/kernel/compile_from_dill_test_helper.dart ('k') | tests/compiler/dart2js/kernel/mixin_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698