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

Unified Diff: test/testing.dart

Issue 1788973002: Remove code that requires whole-program compile (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: merged Created 4 years, 9 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 | « test/report_test.dart ('k') | test/transformer/hello_app/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/testing.dart
diff --git a/test/testing.dart b/test/testing.dart
index a633cd3101b7434bbbbf841aa1a6979f311625ab..591a525e52ece7c4e3afe9685330c6c03b1e9709 100644
--- a/test/testing.dart
+++ b/test/testing.dart
@@ -14,9 +14,6 @@ import 'package:cli_util/cli_util.dart' show getSdkDir;
import 'package:path/path.dart' as path;
import 'package:dev_compiler/src/analysis_context.dart';
-
-import 'package:dev_compiler/src/server/dependency_graph.dart'
- show runtimeFilesForServerMode;
import 'package:dev_compiler/src/options.dart';
/// Shared analysis context used for compilation.
@@ -42,24 +39,6 @@ final String testDirectory =
class _TestUtils {}
-/// Creates a [MemoryResourceProvider] with test data
-MemoryResourceProvider createTestResourceProvider(
- Map<String, String> testFiles) {
- var provider = new MemoryResourceProvider();
- runtimeFilesForServerMode.forEach((filepath) {
- testFiles['/dev_compiler_runtime/$filepath'] =
- '/* test contents of $filepath */';
- });
- testFiles.forEach((key, value) {
- var scheme = 'package:';
- if (key.startsWith(scheme)) {
- key = '/packages/${key.substring(scheme.length)}';
- }
- provider.newFile(key, value);
- });
- return provider;
-}
-
class TestUriResolver extends ResourceUriResolver {
final MemoryResourceProvider provider;
TestUriResolver(provider)
« no previous file with comments | « test/report_test.dart ('k') | test/transformer/hello_app/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698