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

Unified Diff: pkg/analysis_server/test/services/dependencies/reachable_source_collector_test.dart

Issue 2942433002: Cleanup some unused code in some of the tests (Closed)
Patch Set: Created 3 years, 6 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/analysis_server/test/services/dependencies/reachable_source_collector_test.dart
diff --git a/pkg/analysis_server/test/services/dependencies/reachable_source_collector_test.dart b/pkg/analysis_server/test/services/dependencies/reachable_source_collector_test.dart
index 9e843dcf6f5d4d23689f0d2ac7ea0d6392a8aec9..1a823281fd21cd4d313a4c8989fe0aa0534c0dc3 100644
--- a/pkg/analysis_server/test/services/dependencies/reachable_source_collector_test.dart
+++ b/pkg/analysis_server/test/services/dependencies/reachable_source_collector_test.dart
@@ -18,7 +18,7 @@ main() {
@reflectiveTest
class ReachableSourceCollectorTest extends AbstractContextTest {
Map<String, List<String>> importsFor(Source source) =>
- new ReachableSourceCollector(source, context).collectSources();
+ new ReachableSourceCollector(source, null).collectSources();
test_null_context() {
Source lib = addSource('/lib.dart', '');
@@ -30,7 +30,7 @@ class ReachableSourceCollectorTest extends AbstractContextTest {
test_null_source() {
// See https://github.com/dart-lang/sdk/issues/29311
fail('The analysis.getReachableSources is not implemented.');
- expect(() => new ReachableSourceCollector(null, context),
+ expect(() => new ReachableSourceCollector(null, null),
throwsA(new isInstanceOf<ArgumentError>()));
}

Powered by Google App Engine
This is Rietveld 408576698