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

Side by Side Diff: pkg/analysis_server/test/src/plugin/plugin_manager_test.dart

Issue 2795743002: Add context information to driver and add hooks for plugin management (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:io' as io; 6 import 'dart:io' as io;
7 7
8 import 'package:analysis_server/src/plugin/notification_manager.dart'; 8 import 'package:analysis_server/src/plugin/notification_manager.dart';
9 import 'package:analysis_server/src/plugin/plugin_manager.dart'; 9 import 'package:analysis_server/src/plugin/plugin_manager.dart';
10 import 'package:analyzer/context/context_root.dart';
10 import 'package:analyzer/file_system/memory_file_system.dart'; 11 import 'package:analyzer/file_system/memory_file_system.dart';
11 import 'package:analyzer/file_system/physical_file_system.dart'; 12 import 'package:analyzer/file_system/physical_file_system.dart';
12 import 'package:analyzer/instrumentation/instrumentation.dart'; 13 import 'package:analyzer/instrumentation/instrumentation.dart';
13 import 'package:analyzer_plugin/channel/channel.dart'; 14 import 'package:analyzer_plugin/channel/channel.dart';
14 import 'package:analyzer_plugin/protocol/protocol.dart'; 15 import 'package:analyzer_plugin/protocol/protocol.dart';
15 import 'package:analyzer_plugin/protocol/protocol_generated.dart'; 16 import 'package:analyzer_plugin/protocol/protocol_generated.dart'
17 hide ContextRoot;
16 import 'package:path/path.dart' as path; 18 import 'package:path/path.dart' as path;
17 import 'package:test/test.dart'; 19 import 'package:test/test.dart';
18 import 'package:test_reflective_loader/test_reflective_loader.dart'; 20 import 'package:test_reflective_loader/test_reflective_loader.dart';
19 21
20 main() { 22 main() {
21 defineReflectiveSuite(() { 23 defineReflectiveSuite(() {
22 defineReflectiveTests(PluginInfoTest); 24 defineReflectiveTests(PluginInfoTest);
23 defineReflectiveTests(PluginManagerTest); 25 defineReflectiveTests(PluginManagerTest);
24 defineReflectiveTests(PluginManagerFromDiskTest); 26 defineReflectiveTests(PluginManagerFromDiskTest);
25 defineReflectiveTests(PluginSessionTest); 27 defineReflectiveTests(PluginSessionTest);
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 void onNotification(Notification notification), 547 void onNotification(Notification notification),
546 {Function onError, void onDone()}) { 548 {Function onError, void onDone()}) {
547 fail('Unexpected invocation of listen'); 549 fail('Unexpected invocation of listen');
548 } 550 }
549 551
550 @override 552 @override
551 void sendRequest(Request request) { 553 void sendRequest(Request request) {
552 sentRequests.add(request); 554 sentRequests.add(request);
553 } 555 }
554 } 556 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698