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

Side by Side Diff: pkg/analyzer/test/generated/test_support.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 analyzer.test.generated.test_support; 5 library analyzer.test.generated.test_support;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart' show AstNode, SimpleIdentifier; 9 import 'package:analyzer/dart/ast/ast.dart' show AstNode, SimpleIdentifier;
10 import 'package:analyzer/dart/element/element.dart'; 10 import 'package:analyzer/dart/element/element.dart';
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 } 93 }
94 } 94 }
95 fail("Could not find method named $methodName in ${type.displayName}"); 95 fail("Could not find method named $methodName in ${type.displayName}");
96 return null; 96 return null;
97 } 97 }
98 98
99 void setUp() { 99 void setUp() {
100 List<Plugin> plugins = <Plugin>[]; 100 List<Plugin> plugins = <Plugin>[];
101 plugins.addAll(AnalysisEngine.instance.requiredPlugins); 101 plugins.addAll(AnalysisEngine.instance.requiredPlugins);
102 plugins.add(AnalysisEngine.instance.commandLinePlugin); 102 plugins.add(AnalysisEngine.instance.commandLinePlugin);
103 plugins.add(AnalysisEngine.instance.optionsPlugin);
104 new ExtensionManager().processPlugins(plugins); 103 new ExtensionManager().processPlugins(plugins);
105 } 104 }
106 105
107 void tearDown() {} 106 void tearDown() {}
108 107
109 /** 108 /**
110 * Assert that the given object is an instance of the expected class. 109 * Assert that the given object is an instance of the expected class.
111 * 110 *
112 * @param expectedClass the class that the object is expected to be an instanc e of 111 * @param expectedClass the class that the object is expected to be an instanc e of
113 * @param object the object being tested 112 * @param object the object being tested
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 return UriKind.FILE_URI; 636 return UriKind.FILE_URI;
638 } 637 }
639 638
640 bool operator ==(Object other) { 639 bool operator ==(Object other) {
641 if (other is TestSource) { 640 if (other is TestSource) {
642 return other.uri == uri; 641 return other.uri == uri;
643 } 642 }
644 return false; 643 return false;
645 } 644 }
646 } 645 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/options.dart ('k') | pkg/analyzer/test/source/error_processor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698