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

Unified Diff: lib/src/testing.dart

Issue 1150143006: fixes #201, add support for custom URL mapping (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: remove options change Created 5 years, 7 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 | « lib/src/options.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/testing.dart
diff --git a/lib/src/testing.dart b/lib/src/testing.dart
index e8807e77e2745a72104c830bdc8591b606a73dc8..ae87c064551ae51aa11abf6a20f7e2e48e5f1fa0 100644
--- a/lib/src/testing.dart
+++ b/lib/src/testing.dart
@@ -47,7 +47,7 @@ import 'utils.dart';
/// });
///
CheckerResults testChecker(Map<String, String> testFiles,
- {bool allowConstCasts: true, String sdkDir,
+ {bool allowConstCasts: true, String sdkDir, customUrlMappings: const {},
CheckerReporter createReporter(AnalysisContext context),
covariantGenerics: true, relaxedCasts: true,
inferDownwards: RulesOptions.inferDownwardsDefault,
@@ -73,7 +73,8 @@ CheckerResults testChecker(Map<String, String> testFiles,
useMockSdk: sdkDir == null,
dartSdkPath: sdkDir,
runtimeDir: '/dev_compiler_runtime/',
- entryPointFile: '/main.dart');
+ entryPointFile: '/main.dart',
+ customUrlMappings: customUrlMappings);
var context = createAnalysisContext(options, fileResolvers: [uriResolver]);
« no previous file with comments | « lib/src/options.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698