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

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

Issue 2960073002: Generate constants in server as we do in plugin (Closed)
Patch Set: improve names Created 3 years, 5 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 import 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:analysis_server/protocol/protocol.dart'; 7 import 'package:analysis_server/protocol/protocol.dart';
8 import 'package:analysis_server/protocol/protocol_constants.dart';
8 import 'package:analysis_server/protocol/protocol_generated.dart' 9 import 'package:analysis_server/protocol/protocol_generated.dart'
9 hide AnalysisOptions; 10 hide AnalysisOptions;
10 import 'package:analysis_server/src/analysis_server.dart'; 11 import 'package:analysis_server/src/analysis_server.dart';
11 import 'package:analysis_server/src/constants.dart';
12 import 'package:analysis_server/src/domain_analysis.dart'; 12 import 'package:analysis_server/src/domain_analysis.dart';
13 import 'package:analysis_server/src/plugin/notification_manager.dart'; 13 import 'package:analysis_server/src/plugin/notification_manager.dart';
14 import 'package:analysis_server/src/plugin/plugin_manager.dart'; 14 import 'package:analysis_server/src/plugin/plugin_manager.dart';
15 import 'package:analysis_server/src/plugin/server_plugin.dart'; 15 import 'package:analysis_server/src/plugin/server_plugin.dart';
16 import 'package:analysis_server/src/provisional/completion/dart/completion_plugi n.dart'; 16 import 'package:analysis_server/src/provisional/completion/dart/completion_plugi n.dart';
17 import 'package:analysis_server/src/services/index/index.dart'; 17 import 'package:analysis_server/src/services/index/index.dart';
18 import 'package:analyzer/context/context_root.dart' as analyzer; 18 import 'package:analyzer/context/context_root.dart' as analyzer;
19 import 'package:analyzer/file_system/file_system.dart'; 19 import 'package:analyzer/file_system/file_system.dart';
20 import 'package:analyzer/file_system/memory_file_system.dart'; 20 import 'package:analyzer/file_system/memory_file_system.dart';
21 import 'package:analyzer/instrumentation/instrumentation.dart'; 21 import 'package:analyzer/instrumentation/instrumentation.dart';
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 } 198 }
199 199
200 String modifyTestFile(String content) { 200 String modifyTestFile(String content) {
201 String path = resourceProvider.convertPath(testFile); 201 String path = resourceProvider.convertPath(testFile);
202 resourceProvider.updateFile(path, content); 202 resourceProvider.updateFile(path, content);
203 this.testCode = content; 203 this.testCode = content;
204 return testFile; 204 return testFile;
205 } 205 }
206 206
207 void processNotification(Notification notification) { 207 void processNotification(Notification notification) {
208 if (notification.event == SERVER_ERROR) { 208 if (notification.event == SERVER_NOTIFICATION_ERROR) {
209 var params = new ServerErrorParams.fromNotification(notification); 209 var params = new ServerErrorParams.fromNotification(notification);
210 serverErrors.add(params); 210 serverErrors.add(params);
211 } 211 }
212 } 212 }
213 213
214 void removeGeneralAnalysisSubscription(GeneralAnalysisService service) { 214 void removeGeneralAnalysisSubscription(GeneralAnalysisService service) {
215 generalServices.remove(service); 215 generalServices.remove(service);
216 Request request = new AnalysisSetGeneralSubscriptionsParams(generalServices) 216 Request request = new AnalysisSetGeneralSubscriptionsParams(generalServices)
217 .toRequest('0'); 217 .toRequest('0');
218 handleSuccessfulRequest(request); 218 handleSuccessfulRequest(request);
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 Future<List<Null>> stopAll() async { 363 Future<List<Null>> stopAll() async {
364 fail('Unexpected invocation of stopAll'); 364 fail('Unexpected invocation of stopAll');
365 return null; 365 return null;
366 } 366 }
367 367
368 @override 368 @override
369 void whitelistEverything() { 369 void whitelistEverything() {
370 fail('Unexpected invocation of whitelistEverything'); 370 fail('Unexpected invocation of whitelistEverything');
371 } 371 }
372 } 372 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/analysis/update_content_test.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