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

Unified Diff: dart/tests/try/poi/apply_updates_test.dart

Issue 804903004: Refactor LibraryUpdater to prepare for parts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years 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: dart/tests/try/poi/apply_updates_test.dart
diff --git a/dart/tests/try/poi/apply_updates_test.dart b/dart/tests/try/poi/apply_updates_test.dart
index 8d7943592a69f474b1908c9f861c1fd6e2d8d073..303bdddcb942b4ccf5274863ee4f7c0ae933ba85 100644
--- a/dart/tests/try/poi/apply_updates_test.dart
+++ b/dart/tests/try/poi/apply_updates_test.dart
@@ -10,6 +10,7 @@ import 'dart:convert' show
UTF8;
import 'package:dart2js_incremental/library_updater.dart' show
+ IncrementalCompilerContext,
LibraryUpdater,
Update;
@@ -37,8 +38,11 @@ class ApplyUpdateTestCase extends LibraryUpdaterTestCase {
PartialFunctionElement before = library.localLookup(expectedUpdate);
var beforeNode = before.parseNode(compiler);
+ var context = new IncrementalCompilerContext();
LibraryUpdater updater =
- new LibraryUpdater(this.compiler, null, scriptUri, nolog, nolog);
+ new LibraryUpdater(this.compiler, null, nolog, nolog, context);
+ context.registerUriWithUpdates([scriptUri]);
+
bool actualCanReuse =
updater.canReuseLibrary(library, UTF8.encode(newSource));
Expect.equals(expectedCanReuse, actualCanReuse);

Powered by Google App Engine
This is Rietveld 408576698