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

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

Issue 1830703002: Pass AnalysisOptions into SdkCreator, disable changing afterwards. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
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