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

Side by Side Diff: pkg/analysis_server/test/services/correction/assist_test.dart

Issue 849863002: Replace @ReflectiveTestCase() with @reflectiveTest. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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.services.correction.assist; 5 library test.services.correction.assist;
6 6
7 import 'package:analysis_server/src/protocol.dart'; 7 import 'package:analysis_server/src/protocol.dart';
8 import 'package:analysis_server/src/services/correction/assist.dart'; 8 import 'package:analysis_server/src/services/correction/assist.dart';
9 import 'package:analysis_server/src/services/index/index.dart'; 9 import 'package:analysis_server/src/services/index/index.dart';
10 import 'package:analysis_server/src/services/index/local_memory_index.dart'; 10 import 'package:analysis_server/src/services/index/local_memory_index.dart';
11 import 'package:analysis_server/src/services/search/search_engine_internal.dart' ; 11 import 'package:analysis_server/src/services/search/search_engine_internal.dart' ;
12 import 'package:analyzer/src/generated/source.dart'; 12 import 'package:analyzer/src/generated/source.dart';
13 import 'package:unittest/unittest.dart'; 13 import 'package:unittest/unittest.dart';
14 14
15 import '../../abstract_single_unit.dart'; 15 import '../../abstract_single_unit.dart';
16 import '../../reflective_tests.dart'; 16 import '../../reflective_tests.dart';
17 17
18 18
19 main() { 19 main() {
20 groupSep = ' | '; 20 groupSep = ' | ';
21 runReflectiveTests(AssistProcessorTest); 21 runReflectiveTests(AssistProcessorTest);
22 } 22 }
23 23
24 24
25 @ReflectiveTestCase() 25 @reflectiveTest
26 class AssistProcessorTest extends AbstractSingleUnitTest { 26 class AssistProcessorTest extends AbstractSingleUnitTest {
27 Index index; 27 Index index;
28 SearchEngineImpl searchEngine; 28 SearchEngineImpl searchEngine;
29 29
30 int offset; 30 int offset;
31 int length; 31 int length;
32 32
33 Assist assist; 33 Assist assist;
34 SourceChange change; 34 SourceChange change;
35 String resultCode; 35 String resultCode;
(...skipping 2591 matching lines...) Expand 10 before | Expand all | Expand 10 after
2627 void _indexTestUnit(String code) { 2627 void _indexTestUnit(String code) {
2628 resolveTestUnit(code); 2628 resolveTestUnit(code);
2629 index.indexUnit(context, testUnit); 2629 index.indexUnit(context, testUnit);
2630 } 2630 }
2631 2631
2632 void _setStartEndSelection() { 2632 void _setStartEndSelection() {
2633 offset = findOffset('// start\n') + '// start\n'.length; 2633 offset = findOffset('// start\n') + '// start\n'.length;
2634 length = findOffset('// end') - offset; 2634 length = findOffset('// end') - offset;
2635 } 2635 }
2636 } 2636 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698