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