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

Unified Diff: pkg/analyzer_plugin/test/plugin/navigation_mixin_test.dart

Issue 2953093002: Update the plugin API (Closed)
Patch Set: Update FixesRequest Created 3 years, 6 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/analyzer_plugin/test/plugin/navigation_mixin_test.dart
diff --git a/pkg/analyzer_plugin/test/plugin/navigation_mixin_test.dart b/pkg/analyzer_plugin/test/plugin/navigation_mixin_test.dart
index 295c76c87e158489f0446cdd77f13e8fbfd30e6e..a1f9a92d65901c33ffa7c14a5754a05668827afe 100644
--- a/pkg/analyzer_plugin/test/plugin/navigation_mixin_test.dart
+++ b/pkg/analyzer_plugin/test/plugin/navigation_mixin_test.dart
@@ -4,13 +4,13 @@
import 'dart:async';
-import 'package:analyzer/dart/analysis/results.dart' hide AnalysisResult;
import 'package:analyzer/file_system/file_system.dart';
import 'package:analyzer/file_system/memory_file_system.dart';
import 'package:analyzer/src/dart/analysis/driver.dart';
import 'package:analyzer_plugin/plugin/navigation_mixin.dart';
import 'package:analyzer_plugin/protocol/protocol_common.dart';
import 'package:analyzer_plugin/protocol/protocol_generated.dart';
+import 'package:analyzer_plugin/src/utilities/navigation/navigation.dart';
import 'package:analyzer_plugin/utilities/navigation/navigation.dart';
import 'package:path/src/context.dart';
import 'package:test/test.dart';
@@ -88,9 +88,12 @@ class _TestServerPlugin extends MockServerPlugin with NavigationMixin {
}
@override
- Future<ResolveResult> getResolveResultForNavigation(
- AnalysisDriverGeneric driver, String path) async {
- return new AnalysisResult(
+ Future<NavigationRequest> getNavigationRequest(
+ AnalysisGetNavigationParams parameters,
+ covariant AnalysisDriver driver) async {
+ AnalysisResult result = new AnalysisResult(
null, null, null, null, null, null, null, null, null, null, null);
+ return new DartNavigationRequestImpl(
+ resourceProvider, parameters.offset, parameters.length, result);
}
}

Powered by Google App Engine
This is Rietveld 408576698