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 6ba9e2d5489026ac22f0a9159e596a1f074a273d..a2ae03b8589068bb14e2cfc4d1a108be4c4b7986 100644 |
--- a/pkg/analysis_server/test/analysis/update_content_test.dart |
+++ b/pkg/analysis_server/test/analysis/update_content_test.dart |
@@ -96,7 +96,7 @@ class UpdateContentTest extends AbstractAnalysisTest { |
createProject(); |
addTestFile('main() { print(1); }'); |
await server.onAnalysisComplete; |
- verify(server.index.index(anyObject, testUnitMatcher)).times(1); |
+ verify(server.index.indexUnit(testUnitMatcher)).times(1); |
// add an overlay |
server.updateContent( |
'1', {testFile: new AddContentOverlay('main() { print(2); }')}); |
@@ -108,7 +108,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.index(anyObject, testUnitMatcher)).times(3); |
+ verify(server.index.indexUnit(testUnitMatcher)).times(3); |
} |
test_multiple_contexts() async { |