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

Side by Side Diff: pkg/analysis_server/test/services/refactoring/abstract_refactoring.dart

Issue 2963773003: Remove the old index. (Closed)
Patch Set: Created 3 years, 5 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/correction/status.dart'; 7 import 'package:analysis_server/src/services/correction/status.dart';
8 import 'package:analysis_server/src/services/index/index.dart';
9 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; 8 import 'package:analysis_server/src/services/refactoring/refactoring.dart';
10 import 'package:analysis_server/src/services/search/search_engine.dart'; 9 import 'package:analysis_server/src/services/search/search_engine.dart';
11 import 'package:analysis_server/src/services/search/search_engine_internal.dart' ; 10 import 'package:analysis_server/src/services/search/search_engine_internal.dart' ;
12 import 'package:analyzer/dart/ast/ast.dart'; 11 import 'package:analyzer/dart/ast/ast.dart';
13 import 'package:analyzer/dart/element/element.dart' show Element; 12 import 'package:analyzer/dart/element/element.dart' show Element;
14 import 'package:analyzer/file_system/file_system.dart'; 13 import 'package:analyzer/file_system/file_system.dart';
15 import 'package:analyzer/src/dart/analysis/ast_provider_driver.dart'; 14 import 'package:analyzer/src/dart/analysis/ast_provider_driver.dart';
16 import 'package:analyzer/src/dart/element/ast_provider.dart'; 15 import 'package:analyzer/src/dart/element/ast_provider.dart';
17 import 'package:analyzer/src/generated/source.dart'; 16 import 'package:analyzer/src/generated/source.dart';
18 import 'package:analyzer_plugin/protocol/protocol_common.dart' 17 import 'package:analyzer_plugin/protocol/protocol_common.dart'
(...skipping 18 matching lines...) Expand all
37 } 36 }
38 length++; 37 length++;
39 } 38 }
40 return length; 39 return length;
41 } 40 }
42 41
43 /** 42 /**
44 * The base class for all [Refactoring] tests. 43 * The base class for all [Refactoring] tests.
45 */ 44 */
46 abstract class RefactoringTest extends AbstractSingleUnitTest { 45 abstract class RefactoringTest extends AbstractSingleUnitTest {
47 Index index;
48 SearchEngine searchEngine; 46 SearchEngine searchEngine;
49 AstProvider astProvider; 47 AstProvider astProvider;
50 48
51 SourceChange refactoringChange; 49 SourceChange refactoringChange;
52 50
53 Refactoring get refactoring; 51 Refactoring get refactoring;
54 52
55 /** 53 /**
56 * Asserts that [refactoringChange] contains a [FileEdit] for the file 54 * Asserts that [refactoringChange] contains a [FileEdit] for the file
57 * with the given [path], and it results the [expectedCode]. 55 * with the given [path], and it results the [expectedCode].
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 Future<Null> indexUnit(String file, String code) async { 166 Future<Null> indexUnit(String file, String code) async {
169 addSource(file, code); 167 addSource(file, code);
170 } 168 }
171 169
172 void setUp() { 170 void setUp() {
173 super.setUp(); 171 super.setUp();
174 searchEngine = new SearchEngineImpl([driver]); 172 searchEngine = new SearchEngineImpl([driver]);
175 astProvider = new AstProviderForDriver(driver); 173 astProvider = new AstProviderForDriver(driver);
176 } 174 }
177 } 175 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/services/index/test_all.dart ('k') | pkg/analysis_server/test/services/test_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698