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

Unified Diff: pkg/front_end/test/src/incremental/file_state_test.dart

Issue 2939823002: Extract computing UnlinkedUnit(s) and cache them in ByteStore. (Closed)
Patch Set: Created 3 years, 6 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: pkg/front_end/test/src/incremental/file_state_test.dart
diff --git a/pkg/front_end/test/src/incremental/file_state_test.dart b/pkg/front_end/test/src/incremental/file_state_test.dart
index e3e3dc87c108cfed14a395d23df27d20ee8f5ad3..53e599737a86724ee8933a2c668e4d3e7f20402e 100644
--- a/pkg/front_end/test/src/incremental/file_state_test.dart
+++ b/pkg/front_end/test/src/incremental/file_state_test.dart
@@ -6,6 +6,7 @@ import 'dart:async';
import 'package:front_end/memory_file_system.dart';
import 'package:front_end/src/fasta/translate_uri.dart';
+import 'package:front_end/src/incremental/byte_store.dart';
import 'package:front_end/src/incremental/file_state.dart';
import 'package:test/test.dart';
import 'package:test_reflective_loader/test_reflective_loader.dart';
@@ -20,6 +21,7 @@ main() {
@reflectiveTest
class FileSystemStateTest {
+ final byteStore = new MemoryByteStore();
final fileSystem = new MemoryFileSystem(Uri.parse('file:///'));
final TranslateUri uriTranslator = new TranslateUri({}, {}, {});
FileSystemState fsState;
@@ -32,7 +34,8 @@ class FileSystemStateTest {
uriTranslator.dartLibraries.addAll(dartLibraries);
_coreUri = Uri.parse('dart:core');
expect(_coreUri, isNotNull);
- fsState = new FileSystemState(fileSystem, uriTranslator, <int>[], (uri) {
+ fsState = new FileSystemState(byteStore, fileSystem, uriTranslator, <int>[],
+ (uri) {
_newFileUris.add(uri);
return new Future.value();
});

Powered by Google App Engine
This is Rietveld 408576698