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

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

Issue 27510003: Scanner for UTF-8 byte arrays (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixes compiler tests Created 7 years, 2 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/memory_source_file_helper.dart
diff --git a/tests/compiler/dart2js/memory_source_file_helper.dart b/tests/compiler/dart2js/memory_source_file_helper.dart
index 135b025b1160a8732fac3907ff87a753a4b7e3fe..c2e14e13d380d1b88ae09df527bcd8e69abf844d 100644
--- a/tests/compiler/dart2js/memory_source_file_helper.dart
+++ b/tests/compiler/dart2js/memory_source_file_helper.dart
@@ -15,7 +15,7 @@ export '../../../sdk/lib/_internal/compiler/implementation/filenames.dart'
show currentDirectory, nativeToUriPath;
import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart'
- show SourceFile;
+ show StringSourceFile;
import '../../../sdk/lib/_internal/compiler/implementation/source_file_provider.dart'
show SourceFileProvider;
@@ -37,7 +37,9 @@ class MemorySourceFileProvider extends SourceFileProvider {
return new Future.error(new Exception('No such file $resourceUri'));
}
String resourceName = '$resourceUri';
- this.sourceFiles[resourceName] = new SourceFile(resourceName, source);
+ this.sourceFiles[resourceName] = new StringSourceFile(resourceName, source);
return new Future.value(source);
}
+
+ Future<String> call(Uri resourceUri) => readStringFromUri(resourceUri);
}

Powered by Google App Engine
This is Rietveld 408576698