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

Unified Diff: pkg/analysis_server/test/domain_completion_test.dart

Issue 946803002: Create package: URIs everywhere (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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
« no previous file with comments | « pkg/analysis_server/test/context_manager_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
}
« no previous file with comments | « pkg/analysis_server/test/context_manager_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698