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

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

Issue 1101003002: Use package:test_reflective_loader instead of reflective_tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
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.computer.element; 5 library test.computer.element;
6 6
7 import 'dart:mirrors'; 7 import 'dart:mirrors';
8 8
9 import 'package:analysis_server/src/constants.dart'; 9 import 'package:analysis_server/src/constants.dart';
10 import 'package:analysis_server/src/protocol_server.dart'; 10 import 'package:analysis_server/src/protocol_server.dart';
11 import 'package:analysis_server/src/services/search/search_engine.dart'; 11 import 'package:analysis_server/src/services/search/search_engine.dart';
12 import 'package:analyzer/src/generated/ast.dart' as engine; 12 import 'package:analyzer/src/generated/ast.dart' as engine;
13 import 'package:analyzer/src/generated/element.dart' as engine; 13 import 'package:analyzer/src/generated/element.dart' as engine;
14 import 'package:analyzer/src/generated/error.dart' as engine; 14 import 'package:analyzer/src/generated/error.dart' as engine;
15 import 'package:analyzer/src/generated/source.dart' as engine; 15 import 'package:analyzer/src/generated/source.dart' as engine;
16 import 'package:test_reflective_loader/test_reflective_loader.dart';
16 import 'package:typed_mock/typed_mock.dart'; 17 import 'package:typed_mock/typed_mock.dart';
17 import 'package:unittest/unittest.dart'; 18 import 'package:unittest/unittest.dart';
18 19
19 import 'abstract_context.dart'; 20 import 'abstract_context.dart';
20 import 'mocks.dart'; 21 import 'mocks.dart';
21 import 'reflective_tests.dart';
22 22
23 main() { 23 main() {
24 groupSep = ' | '; 24 groupSep = ' | ';
25 runReflectiveTests(AnalysisErrorTest); 25 defineReflectiveTests(AnalysisErrorTest);
26 runReflectiveTests(ElementTest); 26 defineReflectiveTests(ElementTest);
27 runReflectiveTests(ElementKindTest); 27 defineReflectiveTests(ElementKindTest);
28 runReflectiveTests(EnumTest); 28 defineReflectiveTests(EnumTest);
29 } 29 }
30 30
31 class AnalysisErrorMock extends TypedMock implements engine.AnalysisError { 31 class AnalysisErrorMock extends TypedMock implements engine.AnalysisError {
32 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 32 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
33 } 33 }
34 34
35 @reflectiveTest 35 @reflectiveTest
36 class AnalysisErrorTest { 36 class AnalysisErrorTest {
37 engine.Source source = new MockSource(); 37 engine.Source source = new MockSource();
38 engine.LineInfo lineInfo; 38 engine.LineInfo lineInfo;
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 ApiEnum apiValue = convert(engineValue); 496 ApiEnum apiValue = convert(engineValue);
497 expect(apiValue, equals(expectedResult)); 497 expect(apiValue, equals(expectedResult));
498 } 498 }
499 } else { 499 } else {
500 ApiEnum apiValue = convert(engineValue); 500 ApiEnum apiValue = convert(engineValue);
501 expect(apiValue.name, equals(enumName)); 501 expect(apiValue.name, equals(enumName));
502 } 502 }
503 }); 503 });
504 } 504 }
505 } 505 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/operation/operation_queue_test.dart ('k') | pkg/analysis_server/test/protocol_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698