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

Unified Diff: pkg/analyzer/test/src/dart/analysis/driver_test.dart

Issue 2673683003: Split core file tracking functionality from AnalysisDriver. (Closed)
Patch Set: Created 3 years, 11 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/test/src/dart/analysis/driver_test.dart
diff --git a/pkg/analyzer/test/src/dart/analysis/driver_test.dart b/pkg/analyzer/test/src/dart/analysis/driver_test.dart
index 469fda26e0c260163bc26cdcdfca174604000d32..a9359a11dc683a2fdb404d4628728be6bfe01278 100644
--- a/pkg/analyzer/test/src/dart/analysis/driver_test.dart
+++ b/pkg/analyzer/test/src/dart/analysis/driver_test.dart
@@ -450,7 +450,7 @@ var A = B;
driver.changeFile(b);
// "b" is not an added file, so it is not scheduled for analysis.
- expect(driver.test.filesToAnalyze, isEmpty);
+ expect(driver.test.fileTracker.hasPendingFiles, isFalse);
// While "b" is not analyzed explicitly, it is analyzed implicitly.
// The change causes "a" to be reanalyzed.
@@ -568,7 +568,7 @@ var A2 = B1;
driver.changeFile(testFile);
// The file was added, so it is scheduled for analysis.
- expect(driver.test.filesToAnalyze, contains(testFile));
+ expect(driver.test.fileTracker.isFilePending(testFile), isTrue);
// We get a new result.
{

Powered by Google App Engine
This is Rietveld 408576698