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

Unified Diff: pkg/analysis_server/test/analysis/update_content_test.dart

Issue 1359113002: Use IndexContributor(s) in LocalIndex. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/test/analysis/update_content_test.dart
diff --git a/pkg/analysis_server/test/analysis/update_content_test.dart b/pkg/analysis_server/test/analysis/update_content_test.dart
index 9681c47e90726913d836349e7aae339fb79c158c..5dbdaa580ecb8e22eb5defdabc1690ea3f5ff1e1 100644
--- a/pkg/analysis_server/test/analysis/update_content_test.dart
+++ b/pkg/analysis_server/test/analysis/update_content_test.dart
@@ -95,7 +95,7 @@ class UpdateContentTest extends AbstractAnalysisTest {
createProject();
addTestFile('main() { print(1); }');
await server.onAnalysisComplete;
- verify(server.index.indexUnit(anyObject, testUnitMatcher)).times(1);
+ verify(server.index.index(anyObject, testUnitMatcher)).times(1);
// add an overlay
server.updateContent(
'1', {testFile: new AddContentOverlay('main() { print(2); }')});
@@ -107,7 +107,7 @@ class UpdateContentTest extends AbstractAnalysisTest {
server.updateContent('2', {testFile: new RemoveContentOverlay()});
// Validate that at the end the unit was indexed.
await server.onAnalysisComplete;
- verify(server.index.indexUnit(anyObject, testUnitMatcher)).times(2);
+ verify(server.index.index(anyObject, testUnitMatcher)).times(2);
}
test_multiple_contexts() async {

Powered by Google App Engine
This is Rietveld 408576698