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

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

Issue 2344933002: Fix recently introduced strong-mode errors (Closed)
Patch Set: Created 4 years, 3 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/dart_work_manager_test.dart
diff --git a/pkg/analyzer/test/src/task/dart_work_manager_test.dart b/pkg/analyzer/test/src/task/dart_work_manager_test.dart
index 461bd8cb704a9873e4ad27a973bbe5fe5e3e735d..84f3f6332cc5db2ad431c0aa8d9ec73da58beefa 100644
--- a/pkg/analyzer/test/src/task/dart_work_manager_test.dart
+++ b/pkg/analyzer/test/src/task/dart_work_manager_test.dart
@@ -655,7 +655,7 @@ class DartWorkManagerTest {
when(context.prioritySources).thenReturn(<Source>[]);
when(context.shouldErrorsBeAnalyzed(anyObject)).thenReturn(false);
// library1 parts
- manager.resultsComputed(library1, {
+ manager.resultsComputed(library1, <ResultDescriptor, dynamic>{
INCLUDED_PARTS: [part1, part2],
SOURCE_KIND: SourceKind.LIBRARY
});
@@ -665,7 +665,7 @@ class DartWorkManagerTest {
expect(manager.libraryPartsMap[library1], [part1, part2]);
expect(manager.libraryPartsMap[library2], isNull);
// library2 parts
- manager.resultsComputed(library2, {
+ manager.resultsComputed(library2, <ResultDescriptor, dynamic>{
INCLUDED_PARTS: [part2, part3],
SOURCE_KIND: SourceKind.LIBRARY
});
@@ -787,8 +787,10 @@ class DartWorkManagerTest {
Source part = new TestSource('part.dart');
expect(manager.libraryPartsMap, isEmpty);
// part.dart parsed, no changes is the map of libraries
- manager.resultsComputed(
- part, {SOURCE_KIND: SourceKind.PART, INCLUDED_PARTS: <Source>[]});
+ manager.resultsComputed(part, <ResultDescriptor, dynamic>{
+ SOURCE_KIND: SourceKind.PART,
+ INCLUDED_PARTS: <Source>[]
+ });
expect(manager.libraryPartsMap, isEmpty);
}

Powered by Google App Engine
This is Rietveld 408576698