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

Side by Side Diff: packages/plugin/test/plugin_impl_test.dart

Issue 3015713002: Roll to pickup pool changes
Patch Set: Created 3 years, 2 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
« no previous file with comments | « packages/plugin/pubspec.yaml ('k') | packages/pool/.analysis_options » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 library test.operation; 5 library test.operation;
6 6
7 import 'package:plugin/plugin.dart'; 7 import 'package:plugin/plugin.dart';
8 import 'package:plugin/src/plugin_impl.dart'; 8 import 'package:plugin/src/plugin_impl.dart';
9 import 'package:test/test.dart'; 9 import 'package:unittest/unittest.dart';
10 10
11 main() { 11 main() {
12 groupSep = ' | ';
13
12 group('ExtensionManager', () { 14 group('ExtensionManager', () {
13 test('processPlugins', () { 15 test('processPlugins', () {
14 TestPlugin plugin1 = new TestPlugin('plugin1'); 16 TestPlugin plugin1 = new TestPlugin('plugin1');
15 TestPlugin plugin2 = new TestPlugin('plugin1'); 17 TestPlugin plugin2 = new TestPlugin('plugin1');
16 ExtensionManagerImpl manager = new ExtensionManagerImpl(); 18 ExtensionManagerImpl manager = new ExtensionManagerImpl();
17 manager.processPlugins([plugin1, plugin2]); 19 manager.processPlugins([plugin1, plugin2]);
18 expect(plugin1.extensionPointsRegistered, true); 20 expect(plugin1.extensionPointsRegistered, true);
19 expect(plugin1.extensionsRegistered, true); 21 expect(plugin1.extensionsRegistered, true);
20 expect(plugin2.extensionPointsRegistered, true); 22 expect(plugin2.extensionPointsRegistered, true);
21 expect(plugin2.extensionsRegistered, true); 23 expect(plugin2.extensionsRegistered, true);
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 @override 169 @override
168 void registerExtensionPoints(RegisterExtensionPoint register) { 170 void registerExtensionPoints(RegisterExtensionPoint register) {
169 extensionPointsRegistered = true; 171 extensionPointsRegistered = true;
170 } 172 }
171 173
172 @override 174 @override
173 void registerExtensions(RegisterExtension register) { 175 void registerExtensions(RegisterExtension register) {
174 extensionsRegistered = true; 176 extensionsRegistered = true;
175 } 177 }
176 } 178 }
OLDNEW
« no previous file with comments | « packages/plugin/pubspec.yaml ('k') | packages/pool/.analysis_options » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698