Index: pkg/analyzer/test/src/context/cache_test.dart |
diff --git a/pkg/analyzer/test/src/context/cache_test.dart b/pkg/analyzer/test/src/context/cache_test.dart |
index bc8342a2400ce88725f3da4eae68e3e2ba9bcc4c..1d4bc4f18ece8cb1c5ce71a8c0aa3b197b10794a 100644 |
--- a/pkg/analyzer/test/src/context/cache_test.dart |
+++ b/pkg/analyzer/test/src/context/cache_test.dart |
@@ -70,7 +70,7 @@ class AnalysisCacheTest extends AbstractCacheTest { |
expect(cache.getValue(target, resultA), 'a'); |
expect(cache.getValue(target, resultB), 'b'); |
// flush A |
- cache.flush((target, result) => result == resultA); |
+ cache.flush((target) => true, (target, result) => result == resultA); |
expect(cache.getState(target, resultA), CacheState.FLUSHED); |
expect(cache.getState(target, resultB), CacheState.VALID); |
expect(cache.getValue(target, resultA), isNull); |
@@ -336,7 +336,7 @@ class CacheEntryTest extends AbstractCacheTest { |
expect(entry.getValue(resultA), 'a'); |
expect(entry.getValue(resultB), 'b'); |
// flush A |
- entry.flush((target, result) => result == resultA); |
+ entry.flush((target) => true, (target, result) => result == resultA); |
expect(entry.getState(resultA), CacheState.FLUSHED); |
expect(entry.getState(resultB), CacheState.VALID); |
expect(entry.getValue(resultA), isNull); |