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

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

Issue 217153002: pkg/analysis_server: fixes for unittest deprecations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
« no previous file with comments | « pkg/analysis_server/pubspec.yaml ('k') | pkg/analysis_server/test/channel_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.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
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 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/pubspec.yaml ('k') | pkg/analysis_server/test/channel_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698