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 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // | 119 // |
120 // Create server | 120 // Create server |
121 // | 121 // |
122 return new AnalysisServer( | 122 return new AnalysisServer( |
123 serverChannel, | 123 serverChannel, |
124 resourceProvider, | 124 resourceProvider, |
125 packageMapProvider, | 125 packageMapProvider, |
126 index, | 126 index, |
127 serverPlugin, | 127 serverPlugin, |
128 new AnalysisServerOptions(), | 128 new AnalysisServerOptions(), |
129 new MockSdk(), | 129 () => new MockSdk(), |
130 InstrumentationService.NULL_SERVICE); | 130 InstrumentationService.NULL_SERVICE); |
131 } | 131 } |
132 | 132 |
133 Index createIndex() { | 133 Index createIndex() { |
134 return null; | 134 return null; |
135 } | 135 } |
136 | 136 |
137 /** | 137 /** |
138 * Creates a project `/project`. | 138 * Creates a project `/project`. |
139 */ | 139 */ |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 } | 227 } |
228 | 228 |
229 /** | 229 /** |
230 * Completes with a successful [Response] for the given [request]. | 230 * Completes with a successful [Response] for the given [request]. |
231 * Otherwise fails. | 231 * Otherwise fails. |
232 */ | 232 */ |
233 Future<Response> waitResponse(Request request) async { | 233 Future<Response> waitResponse(Request request) async { |
234 return serverChannel.sendRequest(request); | 234 return serverChannel.sendRequest(request); |
235 } | 235 } |
236 } | 236 } |
OLD | NEW |