Index: pkg/analysis_server/test/domain_completion_test.dart |
diff --git a/pkg/analysis_server/test/domain_completion_test.dart b/pkg/analysis_server/test/domain_completion_test.dart |
index 0444f8a34c9b7cafdfcc6d9e3b23fe014edd15ad..e042afabb901778c2ec82e9f5f64046528e99a4a 100644 |
--- a/pkg/analysis_server/test/domain_completion_test.dart |
+++ b/pkg/analysis_server/test/domain_completion_test.dart |
@@ -571,8 +571,12 @@ class MockCompletionManager implements CompletionManager { |
* Mock [AnaysisContext] for tracking usage of onSourcesChanged. |
*/ |
class MockContext implements AnalysisContext { |
+ static final SourceFactory DEFAULT_SOURCE_FACTORY = new SourceFactory([]); |
+ |
MockStream<SourcesChangedEvent> mockStream; |
+ SourceFactory sourceFactory = DEFAULT_SOURCE_FACTORY; |
+ |
MockContext() { |
mockStream = new MockStream<SourcesChangedEvent>(); |
} |
@@ -688,10 +692,10 @@ main() { |
} |
'''); |
await waitForTasksFinished(); |
- Request request = |
- new CompletionGetSuggestionsParams(testFile, 0).toRequest('0'); |
- Response response = handler.handleRequest(request); |
- expect(response.error, isNotNull); |
- expect(response.error.code, RequestErrorCode.NO_INDEX_GENERATED); |
+ Request request = |
+ new CompletionGetSuggestionsParams(testFile, 0).toRequest('0'); |
+ Response response = handler.handleRequest(request); |
+ expect(response.error, isNotNull); |
+ expect(response.error.code, RequestErrorCode.NO_INDEX_GENERATED); |
} |
} |