| 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/domain_server.dart'; | 10 import 'package:analysis_server/src/domain_server.dart'; |
| 11 import 'package:analysis_server/src/protocol.dart'; | 11 import 'package:analysis_server/src/protocol.dart'; |
| 12 import 'package:unittest/matcher.dart'; | |
| 13 import 'package:unittest/unittest.dart'; | 12 import 'package:unittest/unittest.dart'; |
| 14 | 13 |
| 15 import 'mocks.dart'; | 14 import 'mocks.dart'; |
| 16 | 15 |
| 17 main(List<String> args) { | 16 main(List<String> args) { |
| 18 group('AnalysisServer', () { | 17 group('AnalysisServer', () { |
| 19 setUp(AnalysisServerTest.setUp); | 18 setUp(AnalysisServerTest.setUp); |
| 20 // test('createContext', AnalysisServerTest.createContext); | 19 // test('createContext', AnalysisServerTest.createContext); |
| 21 test('echo', AnalysisServerTest.echo); | 20 test('echo', AnalysisServerTest.echo); |
| 22 test('shutdown', AnalysisServerTest.shutdown); | 21 test('shutdown', AnalysisServerTest.shutdown); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 @override | 86 @override |
| 88 Response handleRequest(Request request) { | 87 Response handleRequest(Request request) { |
| 89 if (request.method == 'echo') { | 88 if (request.method == 'echo') { |
| 90 var response = new Response(request.id); | 89 var response = new Response(request.id); |
| 91 response.setResult('echo', true); | 90 response.setResult('echo', true); |
| 92 return response; | 91 return response; |
| 93 } | 92 } |
| 94 return null; | 93 return null; |
| 95 } | 94 } |
| 96 } | 95 } |
| OLD | NEW |