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

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

Issue 2402483002: Remove 'initializeTestEnvironment' from 'analysis_server'. (Closed)
Patch Set: Created 4 years, 2 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 library test.services.src.search.hierarchy; 5 library test.services.src.search.hierarchy;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
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/search/hierarchy.dart'; 10 import 'package:analysis_server/src/services/search/hierarchy.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/dart/element/element.dart'; 12 import 'package:analyzer/dart/element/element.dart';
13 import 'package:test/test.dart'; 13 import 'package:test/test.dart';
14 import 'package:test_reflective_loader/test_reflective_loader.dart'; 14 import 'package:test_reflective_loader/test_reflective_loader.dart';
15 15
16 import '../../abstract_single_unit.dart'; 16 import '../../abstract_single_unit.dart';
17 import '../../utils.dart';
18 17
19 main() { 18 main() {
20 initializeTestEnvironment();
21 defineReflectiveSuite(() { 19 defineReflectiveSuite(() {
22 defineReflectiveTests(HierarchyTest); 20 defineReflectiveTests(HierarchyTest);
23 }); 21 });
24 } 22 }
25 23
26 @reflectiveTest 24 @reflectiveTest
27 class HierarchyTest extends AbstractSingleUnitTest { 25 class HierarchyTest extends AbstractSingleUnitTest {
28 Index index; 26 Index index;
29 SearchEngineImpl searchEngine; 27 SearchEngineImpl searchEngine;
30 28
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 Set<ClassElement> supers = getSuperClasses(classF); 371 Set<ClassElement> supers = getSuperClasses(classF);
374 expect(supers, unorderedEquals([objectElement, classA])); 372 expect(supers, unorderedEquals([objectElement, classA]));
375 } 373 }
376 } 374 }
377 375
378 void _indexTestUnit(String code) { 376 void _indexTestUnit(String code) {
379 resolveTestUnit(code); 377 resolveTestUnit(code);
380 index.indexUnit(testUnit); 378 index.indexUnit(testUnit);
381 } 379 }
382 } 380 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698