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

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

Issue 804903004: Refactor LibraryUpdater to prepare for parts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r42383. 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/library_updater_test.dart
diff --git a/dart/tests/try/poi/library_updater_test.dart b/dart/tests/try/poi/library_updater_test.dart
index d97dbed83fefdbaeeffaee6383173b90558ad9d8..d40b50a65426120b37af13bd9f19c59b6f88bff3 100644
--- a/dart/tests/try/poi/library_updater_test.dart
+++ b/dart/tests/try/poi/library_updater_test.dart
@@ -9,6 +9,7 @@ import 'dart:convert' show
UTF8;
import 'package:dart2js_incremental/library_updater.dart' show
+ IncrementalCompilerContext,
LibraryUpdater,
Update;
@@ -34,8 +35,10 @@ class LibraryUpdaterTestCase extends CompilerTestCase {
super(before);
Future run() => loadMainApp().then((LibraryElement library) {
+ 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);
« no previous file with comments | « dart/tests/try/poi/apply_updates_test.dart ('k') | dart/tests/try/web/incremental_compilation_update_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698