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

Unified Diff: pkg/analyzer/test/src/context/cache_test.dart

Issue 2297343002: Flush results when contexts are made idle. (Closed)
Patch Set: Un-fail completion tests. Created 4 years, 4 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 | « pkg/analyzer/test/generated/engine_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b172dcfc1dcef220c544e0c4611765c6079439c2..369cbdd8f0cbaa846e7d72a630ab346b6d82cde6 100644
--- a/pkg/analyzer/test/src/context/cache_test.dart
+++ b/pkg/analyzer/test/src/context/cache_test.dart
@@ -933,7 +933,7 @@ class CacheFlushManagerTest {
test_new() {
expect(manager.maxActiveSize, 15);
expect(manager.maxIdleSize, 3);
- expect(manager.maxSize, 3);
+ expect(manager.maxSize, 15);
expect(manager.currentSize, 0);
expect(manager.recentlyUsed, isEmpty);
}
@@ -994,6 +994,8 @@ class CacheFlushManagerTest {
}
test_resultStored() {
+ CacheFlushManager manager = new CacheFlushManager(
+ new SimpleResultCachingPolicy(3, 3), (AnalysisTarget target) => false);
ResultDescriptor descriptor1 = new ResultDescriptor('result1', null);
ResultDescriptor descriptor2 = new ResultDescriptor('result2', null);
ResultDescriptor descriptor3 = new ResultDescriptor('result3', null);
« no previous file with comments | « pkg/analyzer/test/generated/engine_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698