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

Side by Side Diff: pkg/analysis_server/test/services/refactoring/move_file_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.refactoring.move_files; 5 library test.services.refactoring.move_files;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; 9 import 'package:analysis_server/src/services/refactoring/refactoring.dart';
10 import 'package:analyzer/file_system/file_system.dart'; 10 import 'package:analyzer/file_system/file_system.dart';
11 import 'package:analyzer/source/package_map_resolver.dart'; 11 import 'package:analyzer/source/package_map_resolver.dart';
12 import 'package:analyzer/src/generated/engine.dart'; 12 import 'package:analyzer/src/generated/engine.dart';
13 import 'package:analyzer/src/generated/source.dart'; 13 import 'package:analyzer/src/generated/source.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_context.dart'; 16 import '../../abstract_context.dart';
17 import '../../utils.dart';
18 import 'abstract_refactoring.dart'; 17 import 'abstract_refactoring.dart';
19 18
20 main() { 19 main() {
21 initializeTestEnvironment();
22 defineReflectiveSuite(() { 20 defineReflectiveSuite(() {
23 defineReflectiveTests(MoveFileTest); 21 defineReflectiveTests(MoveFileTest);
24 }); 22 });
25 } 23 }
26 24
27 @reflectiveTest 25 @reflectiveTest
28 class MoveFileTest extends RefactoringTest { 26 class MoveFileTest extends RefactoringTest {
29 MoveFileRefactoring refactoring; 27 MoveFileRefactoring refactoring;
30 28
31 test_file_definingUnit() async { 29 test_file_definingUnit() async {
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 break; 290 break;
293 } 291 }
294 for (ChangeNotice notice in result.changeNotices) { 292 for (ChangeNotice notice in result.changeNotices) {
295 if (notice.source.fullName.startsWith('/project/')) { 293 if (notice.source.fullName.startsWith('/project/')) {
296 index.indexUnit(notice.resolvedDartUnit); 294 index.indexUnit(notice.resolvedDartUnit);
297 } 295 }
298 } 296 }
299 } 297 }
300 } 298 }
301 } 299 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698