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

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

Issue 2415413003: Remove unused method and field from DartSdkManager (Closed)
Patch Set: Created 4 years, 2 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.domain.analysis.abstract; 5 library test.domain.analysis.abstract;
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 plugins.add(dartCompletionPlugin); 117 plugins.add(dartCompletionPlugin);
118 plugins.add(linterPlugin); 118 plugins.add(linterPlugin);
119 plugins.add(linterServerPlugin); 119 plugins.add(linterServerPlugin);
120 addServerPlugins(plugins); 120 addServerPlugins(plugins);
121 // 121 //
122 // Process plugins 122 // Process plugins
123 // 123 //
124 ExtensionManager manager = new ExtensionManager(); 124 ExtensionManager manager = new ExtensionManager();
125 manager.processPlugins(plugins); 125 manager.processPlugins(plugins);
126 // 126 //
127 // Create an SDK in the mock file system.
128 //
129 new MockSdk(resourceProvider: resourceProvider);
130 //
127 // Create server 131 // Create server
128 // 132 //
129 MockSdk sdk = new MockSdk(resourceProvider: resourceProvider);
130 return new AnalysisServer( 133 return new AnalysisServer(
131 serverChannel, 134 serverChannel,
132 resourceProvider, 135 resourceProvider,
133 packageMapProvider, 136 packageMapProvider,
134 index, 137 index,
135 serverPlugin, 138 serverPlugin,
136 new AnalysisServerOptions(), 139 new AnalysisServerOptions(),
137 new DartSdkManager( 140 new DartSdkManager(resourceProvider.convertPath('/'), false),
138 resourceProvider.convertPath('/'), false, (_) => sdk),
139 InstrumentationService.NULL_SERVICE); 141 InstrumentationService.NULL_SERVICE);
140 } 142 }
141 143
142 Index createIndex() { 144 Index createIndex() {
143 return null; 145 return null;
144 } 146 }
145 147
146 /** 148 /**
147 * Creates a project `/project`. 149 * Creates a project `/project`.
148 */ 150 */
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 } 242 }
241 243
242 /** 244 /**
243 * Completes with a successful [Response] for the given [request]. 245 * Completes with a successful [Response] for the given [request].
244 * Otherwise fails. 246 * Otherwise fails.
245 */ 247 */
246 Future<Response> waitResponse(Request request) async { 248 Future<Response> waitResponse(Request request) async {
247 return serverChannel.sendRequest(request); 249 return serverChannel.sendRequest(request);
248 } 250 }
249 } 251 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/server/driver.dart ('k') | pkg/analysis_server/test/analysis_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698