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

Unified Diff: test/dependency_graph_test.dart

Issue 1174643003: expose strong checker API, for use by analyzer_cli (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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
« no previous file with comments | « test/codegen_test.dart ('k') | test/end_to_end_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dependency_graph_test.dart
diff --git a/test/dependency_graph_test.dart b/test/dependency_graph_test.dart
index 99cc40396a8df62873d8793957f982d8003e9cfa..f32028945336acba006df7d9d750ee24ebafe4be 100644
--- a/test/dependency_graph_test.dart
+++ b/test/dependency_graph_test.dart
@@ -18,7 +18,8 @@ import 'package:path/path.dart' as path;
void main() {
var options = new CompilerOptions(
- runtimeDir: '/dev_compiler_runtime/', useMockSdk: true);
+ runtimeDir: '/dev_compiler_runtime/',
+ sourceOptions: new SourceResolverOptions(useMockSdk: true));
MemoryResourceProvider testResourceProvider;
ResourceUriResolver testUriResolver;
var context;
@@ -62,7 +63,9 @@ void main() {
/// tests (since some tests modify the state of the files).
testResourceProvider = createTestResourceProvider(testFiles);
testUriResolver = new ResourceUriResolver(testResourceProvider);
- context = createAnalysisContext(options, fileResolvers: [testUriResolver]);
+ context = createAnalysisContextWithSources(
+ options.strongOptions, options.sourceOptions,
+ fileResolvers: [testUriResolver]);
graph = new SourceGraph(context, new LogReporter(context), options);
});
@@ -639,13 +642,14 @@ void main() {
group('server-mode', () {
setUp(() {
- var options2 = new CompilerOptions(
+ var opts = new CompilerOptions(
runtimeDir: '/dev_compiler_runtime/',
- useMockSdk: true,
+ sourceOptions: new SourceResolverOptions(useMockSdk: true),
serverMode: true);
- context =
- createAnalysisContext(options2, fileResolvers: [testUriResolver]);
- graph = new SourceGraph(context, new LogReporter(context), options2);
+ context = createAnalysisContextWithSources(
+ opts.strongOptions, opts.sourceOptions,
+ fileResolvers: [testUriResolver]);
+ graph = new SourceGraph(context, new LogReporter(context), opts);
});
test('messages widget is automatically included', () {
@@ -1086,8 +1090,9 @@ void main() {
group('null for non-existing files', () {
setUp(() {
- context =
- createAnalysisContext(options, fileResolvers: [testUriResolver]);
+ context = createAnalysisContextWithSources(
+ options.strongOptions, options.sourceOptions,
+ fileResolvers: [testUriResolver]);
graph = new SourceGraph(context, new LogReporter(context), options);
});
« no previous file with comments | « test/codegen_test.dart ('k') | test/end_to_end_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698