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

Unified Diff: test/rule_test.dart

Issue 2417463002: Move MockSdk into tests. (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mock_sdk.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/rule_test.dart
diff --git a/test/rule_test.dart b/test/rule_test.dart
index 402d69488c8f89899caabec0fbb6e542e60938d6..18fcb99f1b3ca4630ea1fbb6f28c4f7c75a3d0d0 100644
--- a/test/rule_test.dart
+++ b/test/rule_test.dart
@@ -6,6 +6,7 @@ library linter.test.rule;
import 'dart:io';
+import 'mock_sdk.dart';
import 'package:analyzer/src/generated/engine.dart';
import 'package:analyzer/src/generated/error.dart';
import 'package:analyzer/src/generated/source.dart';
@@ -409,7 +410,7 @@ testRule(String ruleName, File file, {bool debug: false}) {
}
LinterOptions options = new LinterOptions([rule])
- ..useMockSdk = true
+ ..mockSdk = new MockSdk()
..packageRootPath = '.';
DartLinter driver = new DartLinter(options);
« no previous file with comments | « test/mock_sdk.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698