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

Unified Diff: pkg/front_end/test/incremental_kernel_generator_test.dart

Issue 2993113003: Revert "Switch FE to use the libraries.json format." (Closed)
Patch Set: Created 3 years, 4 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
« no previous file with comments | « pkg/front_end/test/fasta/uri_translator_test.dart ('k') | pkg/front_end/test/kernel_generator_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/test/incremental_kernel_generator_test.dart
diff --git a/pkg/front_end/test/incremental_kernel_generator_test.dart b/pkg/front_end/test/incremental_kernel_generator_test.dart
index c3bbeb91f4b5ef9bd6c0c8ae50cc321c2ce976aa..9195343d6e309c864bc6d5a78f016df518e07ab6 100644
--- a/pkg/front_end/test/incremental_kernel_generator_test.dart
+++ b/pkg/front_end/test/incremental_kernel_generator_test.dart
@@ -36,16 +36,18 @@ class IncrementalKernelGeneratorTest {
/// Compute the initial [Program] for the given [entryPoint].
Future<Program> getInitialState(Uri entryPoint,
{bool setPackages: true}) async {
- createSdkFiles(fileSystem);
+ Map<String, Uri> dartLibraries = createSdkFiles(fileSystem);
// TODO(scheglov) Builder the SDK kernel and set it into the options.
+ // TODO(scheglov) Make `.packages` file optional.
+
var compilerOptions = new CompilerOptions()
..fileSystem = fileSystem
..byteStore = new MemoryByteStore()
// ..logger = new PerformanceLog(stdout)
..strongMode = true
..chaseDependencies = true
- ..librariesSpecificationUri = Uri.parse('file:///sdk/lib/libraries.json');
+ ..dartLibraries = dartLibraries;
if (setPackages) {
compilerOptions.packagesFileUri = Uri.parse('file:///test/.packages');
« no previous file with comments | « pkg/front_end/test/fasta/uri_translator_test.dart ('k') | pkg/front_end/test/kernel_generator_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698