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

Side by Side Diff: pkg/analysis_server/test/services/linter/linter_test.dart

Issue 2569603002: Remove the options plugin (Closed)
Patch Set: Created 4 years 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) 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.services.linter; 5 library test.services.linter;
6 6
7 import 'package:analysis_server/src/services/linter/linter.dart';
8 import 'package:analyzer/analyzer.dart'; 7 import 'package:analyzer/analyzer.dart';
9 import 'package:analyzer/source/analysis_options_provider.dart'; 8 import 'package:analyzer/source/analysis_options_provider.dart';
10 import 'package:analyzer/src/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
11 import 'package:analyzer/src/generated/source.dart'; 10 import 'package:analyzer/src/generated/source.dart';
11 import 'package:analyzer/src/lint/options_rule_validator.dart';
12 import 'package:linter/src/rules.dart'; 12 import 'package:linter/src/rules.dart';
13 import 'package:test/test.dart'; 13 import 'package:test/test.dart';
14 import 'package:test_reflective_loader/test_reflective_loader.dart'; 14 import 'package:test_reflective_loader/test_reflective_loader.dart';
15 15
16 main() { 16 main() {
17 defineReflectiveSuite(() { 17 defineReflectiveSuite(() {
18 defineReflectiveTests(LinterRuleOptionsValidatorTest); 18 defineReflectiveTests(LinterRuleOptionsValidatorTest);
19 }); 19 });
20 } 20 }
21 21
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 validator.validate(reporter, options); 80 validator.validate(reporter, options);
81 expect(errors.map((AnalysisError e) => e.errorCode), 81 expect(errors.map((AnalysisError e) => e.errorCode),
82 unorderedEquals(expected)); 82 unorderedEquals(expected));
83 } 83 }
84 } 84 }
85 85
86 class _TestSource implements Source { 86 class _TestSource implements Source {
87 @override 87 @override
88 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 88 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
89 } 89 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/domain_diagnostic_test.dart ('k') | pkg/analysis_server/test/single_context_manager_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698