OLD | NEW |
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 import 'dart:async'; | 5 import 'dart:async'; |
6 | 6 |
7 import 'package:analysis_server/protocol/protocol.dart'; | 7 import 'package:analysis_server/protocol/protocol.dart'; |
8 import 'package:analysis_server/protocol/protocol_constants.dart'; | 8 import 'package:analysis_server/protocol/protocol_constants.dart'; |
9 import 'package:analysis_server/protocol/protocol_generated.dart' | 9 import 'package:analysis_server/protocol/protocol_generated.dart' |
10 hide AnalysisOptions; | 10 hide AnalysisOptions; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 manager.processPlugins(plugins); | 130 manager.processPlugins(plugins); |
131 // | 131 // |
132 // Create an SDK in the mock file system. | 132 // Create an SDK in the mock file system. |
133 // | 133 // |
134 new MockSdk( | 134 new MockSdk( |
135 generateSummaryFiles: generateSummaryFiles, | 135 generateSummaryFiles: generateSummaryFiles, |
136 resourceProvider: resourceProvider); | 136 resourceProvider: resourceProvider); |
137 // | 137 // |
138 // Create server | 138 // Create server |
139 // | 139 // |
140 AnalysisServerOptions options = new AnalysisServerOptions(); | 140 AnalysisServerOptions options = new AnalysisServerOptions()..addMocks(); |
141 return new AnalysisServer( | 141 return new AnalysisServer( |
142 serverChannel, | 142 serverChannel, |
143 resourceProvider, | 143 resourceProvider, |
144 packageMapProvider, | 144 packageMapProvider, |
145 serverPlugin, | 145 serverPlugin, |
146 options, | 146 options, |
147 new DartSdkManager(resourceProvider.convertPath('/'), true), | 147 new DartSdkManager(resourceProvider.convertPath('/'), true), |
148 InstrumentationService.NULL_SERVICE); | 148 InstrumentationService.NULL_SERVICE); |
149 } | 149 } |
150 | 150 |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 Future<List<Null>> stopAll() async { | 361 Future<List<Null>> stopAll() async { |
362 fail('Unexpected invocation of stopAll'); | 362 fail('Unexpected invocation of stopAll'); |
363 return null; | 363 return null; |
364 } | 364 } |
365 | 365 |
366 @override | 366 @override |
367 void whitelistEverything() { | 367 void whitelistEverything() { |
368 fail('Unexpected invocation of whitelistEverything'); | 368 fail('Unexpected invocation of whitelistEverything'); |
369 } | 369 } |
370 } | 370 } |
OLD | NEW |