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

Unified Diff: tests/compiler/dart2js/deferred_mirrors_test.dart

Issue 2875313002: Access BackendUsage through ClosedWorld (Closed)
Patch Set: Created 3 years, 7 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/deferred_mirrors_test.dart
diff --git a/tests/compiler/dart2js/deferred_mirrors_test.dart b/tests/compiler/dart2js/deferred_mirrors_test.dart
index 9ab7b19f9a59b9e185a545e1d11d7465ce5ad3ea..e7d878dc62118998f71ceddd2614d6e3624d5d83 100644
--- a/tests/compiler/dart2js/deferred_mirrors_test.dart
+++ b/tests/compiler/dart2js/deferred_mirrors_test.dart
@@ -31,7 +31,8 @@ runTests() async {
await runTest('memory:main.dart', (compiler) {
var main = compiler.mainFunction;
Expect.isNotNull(main, "Could not find 'main'");
- compiler.deferredLoadTask.onResolutionComplete(main);
+ compiler.deferredLoadTask.onResolutionComplete(
+ main, compiler.resolutionWorldBuilder.closedWorldForTesting);
var outputUnitForElement = compiler.deferredLoadTask.outputUnitForElement;
var lib1 = lookupLibrary(compiler, "memory:lib1.dart");
@@ -54,7 +55,8 @@ runTests() async {
await runTest('memory:main3.dart', (compiler) {
var main = compiler.mainFunction;
Expect.isNotNull(main, "Could not find 'main'");
- compiler.deferredLoadTask.onResolutionComplete(main);
+ compiler.deferredLoadTask.onResolutionComplete(
+ main, compiler.resolutionWorldBuilder.closedWorldForTesting);
var outputUnitForElement = compiler.deferredLoadTask.outputUnitForElement;
Expect.isFalse(compiler.backend.mirrorsData.hasInsufficientMirrorsUsed);
@@ -69,7 +71,8 @@ runTests() async {
await runTest('memory:main4.dart', (compiler) {
var main = compiler.mainFunction;
Expect.isNotNull(main, "Could not find 'main'");
- compiler.deferredLoadTask.onResolutionComplete(main);
+ compiler.deferredLoadTask.onResolutionComplete(
+ main, compiler.resolutionWorldBuilder.closedWorldForTesting);
var outputUnitForElement = compiler.deferredLoadTask.outputUnitForElement;
var mainLib = lookupLibrary(compiler, "memory:main4.dart");

Powered by Google App Engine
This is Rietveld 408576698