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

Side by Side Diff: pkg/analysis_server/test/domain_context_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, 9 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.context; 5 library test.domain.context;
6 6
7 import 'package:analyzer/src/generated/engine.dart'; 7 import 'package:analyzer/src/generated/engine.dart';
8 import 'package:analysis_server/src/analysis_server.dart'; 8 import 'package:analysis_server/src/analysis_server.dart';
9 import 'package:analysis_server/src/domain_context.dart'; 9 import 'package:analysis_server/src/domain_context.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() { 16 main() {
18 group('ContextDomainHandlerTest', () { 17 group('ContextDomainHandlerTest', () {
19 test('applyChanges', ContextDomainHandlerTest.applyChanges); 18 test('applyChanges', ContextDomainHandlerTest.applyChanges);
20 test('setOptions', ContextDomainHandlerTest.setOptions); 19 test('setOptions', ContextDomainHandlerTest.setOptions);
21 test('setPrioritySources_empty', ContextDomainHandlerTest.setPrioritySources _empty); 20 test('setPrioritySources_empty', ContextDomainHandlerTest.setPrioritySources _empty);
22 test('setPrioritySources_nonEmpty', ContextDomainHandlerTest.setPrioritySour ces_nonEmpty); 21 test('setPrioritySources_nonEmpty', ContextDomainHandlerTest.setPrioritySour ces_nonEmpty);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 Request request = new Request('0', ServerDomainHandler.CREATE_CONTEXT_METHOD ); 95 Request request = new Request('0', ServerDomainHandler.CREATE_CONTEXT_METHOD );
97 request.setParameter(ServerDomainHandler.SDK_DIRECTORY_PARAM, sdkPath); 96 request.setParameter(ServerDomainHandler.SDK_DIRECTORY_PARAM, sdkPath);
98 Response response = handler.handleRequest(request); 97 Response response = handler.handleRequest(request);
99 if (response.error != null) { 98 if (response.error != null) {
100 fail('Unexpected error: ${response.error.toJson()}'); 99 fail('Unexpected error: ${response.error.toJson()}');
101 } 100 }
102 expect(response.error, isNull); 101 expect(response.error, isNull);
103 return response.getResult(ServerDomainHandler.CONTEXT_ID_RESULT); 102 return response.getResult(ServerDomainHandler.CONTEXT_ID_RESULT);
104 } 103 }
105 } 104 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/channel_test.dart ('k') | pkg/analysis_server/test/domain_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698