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

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

Issue 2879273002: Make server use the common protocol classes (Closed)
Patch Set: Created 3 years, 7 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/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 4705a1febee7515fce1e315b9b976759c6b21041..54728b5ce65cf0be9a3819db2fe91c2f976fd9e0 100644
--- a/pkg/analysis_server/test/domain_completion_test.dart
+++ b/pkg/analysis_server/test/domain_completion_test.dart
@@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library test.domain.completion;
-
import 'dart:async';
import 'package:analysis_server/protocol/protocol.dart';
@@ -14,7 +12,7 @@ import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
import 'package:analysis_server/src/services/completion/dart/completion_manager.dart';
import 'package:analysis_server/src/services/completion/dart/contribution_sorter.dart';
import 'package:analyzer_plugin/protocol/protocol.dart' as plugin;
-import 'package:analyzer_plugin/protocol/protocol_common.dart' as plugin;
+import 'package:analyzer_plugin/protocol/protocol_common.dart';
import 'package:analyzer_plugin/protocol/protocol_constants.dart' as plugin;
import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin;
import 'package:test/test.dart';
@@ -708,16 +706,9 @@ class B extends A {m() {^}}
''');
PluginInfo info = new DiscoveredPluginInfo('a', 'b', 'c', null, null);
plugin.CompletionGetSuggestionsResult result =
- new plugin.CompletionGetSuggestionsResult(
- 1, 2, <plugin.CompletionSuggestion>[
- new plugin.CompletionSuggestion(
- plugin.CompletionSuggestionKind.IDENTIFIER,
- DART_RELEVANCE_DEFAULT,
- 'plugin completion',
- 3,
- 0,
- false,
- false)
+ new plugin.CompletionGetSuggestionsResult(1, 2, <CompletionSuggestion>[
+ new CompletionSuggestion(CompletionSuggestionKind.IDENTIFIER,
+ DART_RELEVANCE_DEFAULT, 'plugin completion', 3, 0, false, false)
]);
pluginManager.broadcastResults = <PluginInfo, Future<plugin.Response>>{
info: new Future.value(result.toResponse('-'))
« no previous file with comments | « pkg/analysis_server/test/domain_analysis_test.dart ('k') | pkg/analysis_server/test/domain_completion_util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698