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

Side by Side Diff: pkg/analysis_server/test/analysis_server_test.dart

Issue 1830703002: Pass AnalysisOptions into SdkCreator, disable changing afterwards. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.analysis_server; 5 library test.analysis_server;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/plugin/protocol/protocol.dart'; 9 import 'package:analysis_server/plugin/protocol/protocol.dart';
10 import 'package:analysis_server/src/analysis_server.dart'; 10 import 'package:analysis_server/src/analysis_server.dart';
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 channel = new MockServerChannel(); 137 channel = new MockServerChannel();
138 resourceProvider = new MemoryResourceProvider(); 138 resourceProvider = new MemoryResourceProvider();
139 packageMapProvider = new MockPackageMapProvider(); 139 packageMapProvider = new MockPackageMapProvider();
140 server = new AnalysisServer( 140 server = new AnalysisServer(
141 channel, 141 channel,
142 resourceProvider, 142 resourceProvider,
143 packageMapProvider, 143 packageMapProvider,
144 null, 144 null,
145 plugin, 145 plugin,
146 new AnalysisServerOptions(), 146 new AnalysisServerOptions(),
147 () => new MockSdk(), 147 (_) => new MockSdk(),
148 InstrumentationService.NULL_SERVICE, 148 InstrumentationService.NULL_SERVICE,
149 rethrowExceptions: true); 149 rethrowExceptions: true);
150 processRequiredPlugins(); 150 processRequiredPlugins();
151 } 151 }
152 152
153 Future test_contextDisposed() { 153 Future test_contextDisposed() {
154 resourceProvider.newFolder('/foo'); 154 resourceProvider.newFolder('/foo');
155 resourceProvider.newFile('/foo/bar.dart', 'library lib;'); 155 resourceProvider.newFile('/foo/bar.dart', 'library lib;');
156 server.setAnalysisRoots('0', ['/foo'], [], {}); 156 server.setAnalysisRoots('0', ['/foo'], [], {});
157 AnalysisContext context; 157 AnalysisContext context;
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 _MockServerOperation(this.context); 572 _MockServerOperation(this.context);
573 573
574 @override 574 @override
575 ServerOperationPriority get priority => ServerOperationPriority.ANALYSIS; 575 ServerOperationPriority get priority => ServerOperationPriority.ANALYSIS;
576 576
577 @override 577 @override
578 void perform(AnalysisServer server) { 578 void perform(AnalysisServer server) {
579 isComplete = true; 579 isComplete = true;
580 } 580 }
581 } 581 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/analysis_abstract.dart ('k') | pkg/analysis_server/test/context_manager_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698