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

Side by Side Diff: pkg/analysis_server/test/services/search/hierarchy_test.dart

Issue 2949823002: Remove unused implementation of SearchEngine and rename the driver-based implementation (Closed)
Patch Set: Created 3 years, 6 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
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 import 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:analysis_server/src/services/search/hierarchy.dart'; 7 import 'package:analysis_server/src/services/search/hierarchy.dart';
8 import 'package:analysis_server/src/services/search/search_engine_internal2.dart '; 8 import 'package:analysis_server/src/services/search/search_engine_internal.dart' ;
9 import 'package:analyzer/dart/element/element.dart'; 9 import 'package:analyzer/dart/element/element.dart';
10 import 'package:test/test.dart'; 10 import 'package:test/test.dart';
11 import 'package:test_reflective_loader/test_reflective_loader.dart'; 11 import 'package:test_reflective_loader/test_reflective_loader.dart';
12 12
13 import '../../abstract_single_unit.dart'; 13 import '../../abstract_single_unit.dart';
14 14
15 main() { 15 main() {
16 defineReflectiveSuite(() { 16 defineReflectiveSuite(() {
17 defineReflectiveTests(HierarchyTest); 17 defineReflectiveTests(HierarchyTest);
18 }); 18 });
19 } 19 }
20 20
21 @reflectiveTest 21 @reflectiveTest
22 class HierarchyTest extends AbstractSingleUnitTest { 22 class HierarchyTest extends AbstractSingleUnitTest {
23 SearchEngineImpl2 searchEngine; 23 SearchEngineImpl searchEngine;
24 24
25 void setUp() { 25 void setUp() {
26 super.setUp(); 26 super.setUp();
27 searchEngine = new SearchEngineImpl2([driver]); 27 searchEngine = new SearchEngineImpl([driver]);
28 } 28 }
29 29
30 test_getClassMembers() async { 30 test_getClassMembers() async {
31 await _indexTestUnit(''' 31 await _indexTestUnit('''
32 class A { 32 class A {
33 A() {} 33 A() {}
34 var ma1; 34 var ma1;
35 ma2() {} 35 ma2() {}
36 } 36 }
37 class B extends A { 37 class B extends A {
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 { 353 {
354 Set<ClassElement> supers = getSuperClasses(classF); 354 Set<ClassElement> supers = getSuperClasses(classF);
355 expect(supers, unorderedEquals([objectElement, classA])); 355 expect(supers, unorderedEquals([objectElement, classA]));
356 } 356 }
357 } 357 }
358 358
359 Future<Null> _indexTestUnit(String code) async { 359 Future<Null> _indexTestUnit(String code) async {
360 await resolveTestUnit(code); 360 await resolveTestUnit(code);
361 } 361 }
362 } 362 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698