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

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

Issue 1686613002: Use different SDKs based on option settings (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698