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

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

Issue 337943002: Adjust server for API changes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed bug Created 6 years, 6 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 | Annotate | Revision Log
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/src/analysis_server.dart'; 9 import 'package:analysis_server/src/analysis_server.dart';
10 import 'package:analysis_server/src/domain_analysis.dart'; 10 import 'package:analysis_server/src/domain_analysis.dart';
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 void addAnalysisSubscription(AnalysisService service, String file) { 58 void addAnalysisSubscription(AnalysisService service, String file) {
59 // add file to subscription 59 // add file to subscription
60 var files = analysisSubscriptions[service.name]; 60 var files = analysisSubscriptions[service.name];
61 if (files == null) { 61 if (files == null) {
62 files = <String>[]; 62 files = <String>[];
63 analysisSubscriptions[service.name] = files; 63 analysisSubscriptions[service.name] = files;
64 } 64 }
65 files.add(file); 65 files.add(file);
66 // set subscriptions 66 // set subscriptions
67 Request request = new Request('0', METHOD_SET_ANALYSIS_SUBSCRIPTIONS); 67 Request request = new Request('0', ANALYSIS_SET_SUBSCRIPTIONS);
68 request.setParameter(SUBSCRIPTIONS, analysisSubscriptions); 68 request.setParameter(SUBSCRIPTIONS, analysisSubscriptions);
69 handleSuccessfulRequest(request); 69 handleSuccessfulRequest(request);
70 } 70 }
71 71
72 void tearDown() { 72 void tearDown() {
73 server.done(); 73 server.done();
74 handler = null; 74 handler = null;
75 server = null; 75 server = null;
76 resourceProvider = null; 76 resourceProvider = null;
77 serverChannel = null; 77 serverChannel = null;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // */ 181 // */
182 // List<Map<String, Object>> getTestNavigation() { 182 // List<Map<String, Object>> getTestNavigation() {
183 // return getNavigation(testFile); 183 // return getNavigation(testFile);
184 // } 184 // }
185 185
186 /** 186 /**
187 * Creates an empty project `/project/`. 187 * Creates an empty project `/project/`.
188 */ 188 */
189 void _createEmptyProject() { 189 void _createEmptyProject() {
190 resourceProvider.newFolder(projectPath); 190 resourceProvider.newFolder(projectPath);
191 Request request = new Request('0', METHOD_SET_ANALYSIS_ROOTS); 191 Request request = new Request('0', ANALYSIS_SET_ANALYSIS_ROOTS);
192 request.setParameter(INCLUDED, [projectPath]); 192 request.setParameter(INCLUDED, [projectPath]);
193 request.setParameter(EXCLUDED, []); 193 request.setParameter(EXCLUDED, []);
194 handleSuccessfulRequest(request); 194 handleSuccessfulRequest(request);
195 } 195 }
196 196
197 // /** 197 // /**
198 // * Creates a project with a single Dart file `/project/bin/test.dart` with 198 // * Creates a project with a single Dart file `/project/bin/test.dart` with
199 // * the given [code]. 199 // * the given [code].
200 // */ 200 // */
201 // void createSingleFileProject(code) { 201 // void createSingleFileProject(code) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 int c = search.codeUnitAt(length); 272 int c = search.codeUnitAt(length);
273 if (!(c >= 'a'.codeUnitAt(0) && c <= 'z'.codeUnitAt(0) || 273 if (!(c >= 'a'.codeUnitAt(0) && c <= 'z'.codeUnitAt(0) ||
274 c >= 'A'.codeUnitAt(0) && c <= 'Z'.codeUnitAt(0) || 274 c >= 'A'.codeUnitAt(0) && c <= 'Z'.codeUnitAt(0) ||
275 c >= '0'.codeUnitAt(0) && c <= '9'.codeUnitAt(0))) { 275 c >= '0'.codeUnitAt(0) && c <= '9'.codeUnitAt(0))) {
276 break; 276 break;
277 } 277 }
278 length++; 278 length++;
279 } 279 }
280 return length; 280 return length;
281 } 281 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/socket_server.dart ('k') | pkg/analysis_server/test/analysis_notification_navigation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698