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

Unified Diff: pkg/analyzer_plugin/test/utilities/subscription_manager_test.dart

Issue 2846963004: Re-organize and comment clean-up (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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer_plugin/test/utilities/subscription_manager_test.dart
diff --git a/pkg/analyzer_plugin/test/utilities/subscription_manager_test.dart b/pkg/analyzer_plugin/test/utilities/subscription_manager_test.dart
deleted file mode 100644
index ef8f422ca79948d8b73c00aa804e5f77d763d32c..0000000000000000000000000000000000000000
--- a/pkg/analyzer_plugin/test/utilities/subscription_manager_test.dart
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
-// 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.
-
-import 'package:analyzer_plugin/protocol/protocol_generated.dart';
-import 'package:analyzer_plugin/utilities/subscription_manager.dart';
-import 'package:test/test.dart';
-import 'package:test_reflective_loader/test_reflective_loader.dart';
-
-void main() {
- defineReflectiveTests(SubscriptionManagerTest);
-}
-
-@reflectiveTest
-class SubscriptionManagerTest {
- SubscriptionManager manager = new SubscriptionManager();
-
- test_servicesForFile() {
- expect(manager.servicesForFile('/project/lib/test.dart'), hasLength(0));
- }
-
- test_setSubscriptions() {
- manager.setSubscriptions({
- AnalysisService.HIGHLIGHTS: [
- '/project/lib/foo.dart',
- '/project/lib/bar.dart'
- ],
- AnalysisService.NAVIGATION: ['/project/lib/foo.dart']
- });
- expect(manager.servicesForFile('/project/lib/test.dart'), hasLength(0));
- expect(manager.servicesForFile('/project/lib/bar.dart'),
- unorderedEquals([AnalysisService.HIGHLIGHTS]));
- expect(
- manager.servicesForFile('/project/lib/foo.dart'),
- unorderedEquals(
- [AnalysisService.HIGHLIGHTS, AnalysisService.NAVIGATION]));
- }
-}

Powered by Google App Engine
This is Rietveld 408576698