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

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

Issue 2861373005: Improve default support provided for plugins (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/analyzer_plugin/test/plugin/plugin_test.dart
diff --git a/pkg/analyzer_plugin/test/plugin/plugin_test.dart b/pkg/analyzer_plugin/test/plugin/plugin_test.dart
index c460ed4665886ddc90722fde5269824646126e39..3cee9bf50e748c2bef8a03a0e5b5d374605e86b0 100644
--- a/pkg/analyzer_plugin/test/plugin/plugin_test.dart
+++ b/pkg/analyzer_plugin/test/plugin/plugin_test.dart
@@ -82,14 +82,12 @@ class ServerPluginTest {
expect(plugin.contextRootContaining(filePath2), isNull);
}
- @failingTest
void test_handleAnalysisHandleWatchEvents() {
var result = plugin.handleAnalysisHandleWatchEvents(
new AnalysisHandleWatchEventsParams([]));
expect(result, isNotNull);
}
- @failingTest
void test_handleAnalysisReanalyze_all() {
plugin.handleAnalysisSetContextRoots(
new AnalysisSetContextRootsParams([contextRoot1]));
@@ -254,6 +252,8 @@ class ServerPluginTest {
* A concrete implementation of a server plugin that is suitable for testing.
*/
class TestServerPlugin extends ServerPlugin {
+ Map<String, List<AnalysisService>> latestSubscriptions;
+
TestServerPlugin(ResourceProvider resourceProvider) : super(resourceProvider);
@override
@@ -269,4 +269,10 @@ class TestServerPlugin extends ServerPlugin {
AnalysisDriverGeneric createAnalysisDriver(ContextRoot contextRoot) {
return new MockAnalysisDriver();
}
+
+ @override
+ void sendNotificationsForSubscriptions(
+ Map<String, List<AnalysisService>> subscriptions) {
+ latestSubscriptions = subscriptions;
+ }
}

Powered by Google App Engine
This is Rietveld 408576698