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

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

Issue 1130263002: Some clean ups for cache partitions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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/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 6d977d60730f03d92af1ba39c5c9c1d0b515b17c..fd7e955cb40afca594b1603d5da87997898a85bf 100644
--- a/pkg/analyzer/test/src/context/cache_test.dart
+++ b/pkg/analyzer/test/src/context/cache_test.dart
@@ -728,7 +728,7 @@ class SdkCachePartitionTest extends CachePartitionTest {
void test_contains_false() {
CachePartition partition = createPartition();
AnalysisTarget target = new TestSource();
- expect(partition.contains(target), isFalse);
+ expect(partition.isResponsibleFor(target), isFalse);
}
void test_contains_true() {
@@ -736,7 +736,7 @@ class SdkCachePartitionTest extends CachePartitionTest {
SourceFactory factory = new SourceFactory(
[new DartUriResolver(DirectoryBasedDartSdk.defaultSdk)]);
AnalysisTarget target = factory.forUri("dart:core");
- expect(partition.contains(target), isTrue);
+ expect(partition.isResponsibleFor(target), isTrue);
}
}
@@ -749,7 +749,7 @@ class UniversalCachePartitionTest extends CachePartitionTest {
void test_contains() {
UniversalCachePartition partition = new UniversalCachePartition(null);
TestSource source = new TestSource();
- expect(partition.contains(source), isTrue);
+ expect(partition.isResponsibleFor(source), isTrue);
}
}
« pkg/analyzer/lib/src/context/cache.dart ('K') | « pkg/analyzer/lib/src/context/cache.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698