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

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

Issue 2394683006: Switch analysis_server to use 'package:test'. (Closed)
Patch Set: Created 4 years, 2 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';
11 import 'package:analysis_server/src/constants.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/linter_plugin.dart'; 13 import 'package:analysis_server/src/plugin/linter_plugin.dart';
14 import 'package:analysis_server/src/plugin/server_plugin.dart'; 14 import 'package:analysis_server/src/plugin/server_plugin.dart';
15 import 'package:analysis_server/src/provisional/completion/dart/completion_plugi n.dart'; 15 import 'package:analysis_server/src/provisional/completion/dart/completion_plugi n.dart';
16 import 'package:analysis_server/src/services/index/index.dart'; 16 import 'package:analysis_server/src/services/index/index.dart';
17 import 'package:analyzer/file_system/file_system.dart'; 17 import 'package:analyzer/file_system/file_system.dart';
18 import 'package:analyzer/file_system/memory_file_system.dart'; 18 import 'package:analyzer/file_system/memory_file_system.dart';
19 import 'package:analyzer/instrumentation/instrumentation.dart'; 19 import 'package:analyzer/instrumentation/instrumentation.dart';
20 import 'package:analyzer/src/generated/engine.dart'; 20 import 'package:analyzer/src/generated/engine.dart';
21 import 'package:analyzer/src/generated/sdk.dart'; 21 import 'package:analyzer/src/generated/sdk.dart';
22 import 'package:linter/src/plugin/linter_plugin.dart'; 22 import 'package:linter/src/plugin/linter_plugin.dart';
23 import 'package:plugin/manager.dart'; 23 import 'package:plugin/manager.dart';
24 import 'package:plugin/plugin.dart'; 24 import 'package:plugin/plugin.dart';
25 import 'package:unittest/unittest.dart'; 25 import 'package:test/test.dart';
26 26
27 import 'mock_sdk.dart'; 27 import 'mock_sdk.dart';
28 import 'mocks.dart'; 28 import 'mocks.dart';
29 29
30 int findIdentifierLength(String search) { 30 int findIdentifierLength(String search) {
31 int length = 0; 31 int length = 0;
32 while (length < search.length) { 32 while (length < search.length) {
33 int c = search.codeUnitAt(length); 33 int c = search.codeUnitAt(length);
34 if (!(c >= 'a'.codeUnitAt(0) && c <= 'z'.codeUnitAt(0) || 34 if (!(c >= 'a'.codeUnitAt(0) && c <= 'z'.codeUnitAt(0) ||
35 c >= 'A'.codeUnitAt(0) && c <= 'Z'.codeUnitAt(0) || 35 c >= 'A'.codeUnitAt(0) && c <= 'Z'.codeUnitAt(0) ||
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 } 234 }
235 235
236 /** 236 /**
237 * Completes with a successful [Response] for the given [request]. 237 * Completes with a successful [Response] for the given [request].
238 * Otherwise fails. 238 * Otherwise fails.
239 */ 239 */
240 Future<Response> waitResponse(Request request) async { 240 Future<Response> waitResponse(Request request) async {
241 return serverChannel.sendRequest(request); 241 return serverChannel.sendRequest(request);
242 } 242 }
243 } 243 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698