OLD | NEW |
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.analysis_server; | 5 library test.analysis_server; |
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/constants.dart'; | 10 import 'package:analysis_server/src/constants.dart'; |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 import 'mock_sdk.dart'; | 23 import 'mock_sdk.dart'; |
24 import 'mocks.dart'; | 24 import 'mocks.dart'; |
25 import 'reflective_tests.dart'; | 25 import 'reflective_tests.dart'; |
26 | 26 |
27 main() { | 27 main() { |
28 groupSep = ' | '; | 28 groupSep = ' | '; |
29 runReflectiveTests(AnalysisServerTest); | 29 runReflectiveTests(AnalysisServerTest); |
30 } | 30 } |
31 | 31 |
32 @ReflectiveTestCase() | 32 @reflectiveTest |
33 class AnalysisServerTest { | 33 class AnalysisServerTest { |
34 MockServerChannel channel; | 34 MockServerChannel channel; |
35 AnalysisServer server; | 35 AnalysisServer server; |
36 MemoryResourceProvider resourceProvider; | 36 MemoryResourceProvider resourceProvider; |
37 | 37 |
38 /** | 38 /** |
39 * Verify that getAnalysisContextForSource returns the correct contexts even | 39 * Verify that getAnalysisContextForSource returns the correct contexts even |
40 * for sources that are included by multiple contexts. | 40 * for sources that are included by multiple contexts. |
41 * | 41 * |
42 * See dartbug.com/21898 | 42 * See dartbug.com/21898 |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 @override | 332 @override |
333 Response handleRequest(Request request) { | 333 Response handleRequest(Request request) { |
334 if (request.method == 'echo') { | 334 if (request.method == 'echo') { |
335 return new Response(request.id, result: { | 335 return new Response(request.id, result: { |
336 'echo': true | 336 'echo': true |
337 }); | 337 }); |
338 } | 338 } |
339 return null; | 339 return null; |
340 } | 340 } |
341 } | 341 } |
OLD | NEW |