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

Unified Diff: pkg/analyzer/test/src/task/html_work_manager_test.dart

Issue 2454233003: Ensure HtmlWorkManager is subscribed to the right stream for invalidations in the presence of Sourc… (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
Index: pkg/analyzer/test/src/task/html_work_manager_test.dart
diff --git a/pkg/analyzer/test/src/task/html_work_manager_test.dart b/pkg/analyzer/test/src/task/html_work_manager_test.dart
index ee102d40f0fa2e23e340fa6637e4eed1697ac325..079cf4184543c51abbf332aeee94d947aff84b68 100644
--- a/pkg/analyzer/test/src/task/html_work_manager_test.dart
+++ b/pkg/analyzer/test/src/task/html_work_manager_test.dart
@@ -311,6 +311,12 @@ class _InternalAnalysisContextMock extends TypedMock
@override
AnalysisCache analysisCache;
+ // the production version is a stream that carries messages from the cache
scheglov 2016/10/28 19:04:45 Write full sentences please :-) Start with a capit
+ // since the cache changes. Here, we can just pass the inner stream because
+ // it doesn't change
+ @override
+ get onResultInvalidated => analysisCache.onResultInvalidated;
+
Map<Source, ChangeNoticeImpl> _pendingNotices = <Source, ChangeNoticeImpl>{};
_InternalAnalysisContextMock() {

Powered by Google App Engine
This is Rietveld 408576698