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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/cache/AnalysisCacheTest.java

Issue 24481002: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/cache/AnalysisCacheTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/cache/AnalysisCacheTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/cache/AnalysisCacheTest.java
index 191ec5764add583c3c805a0b42c359cb32f1b90f..9ca6b96ddb90a38e506ba7846478a3413dd27dcc 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/cache/AnalysisCacheTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/cache/AnalysisCacheTest.java
@@ -21,9 +21,9 @@ import com.google.dart.engine.source.TestSource;
import static com.google.dart.engine.ast.ASTFactory.compilationUnit;
import static com.google.dart.engine.utilities.io.FileUtilities2.createFile;
+import java.util.Collection;
import java.util.Map;
import java.util.Map.Entry;
-import java.util.Set;
public class AnalysisCacheTest extends EngineTestCase {
public void test_creation() {
@@ -73,8 +73,8 @@ public class AnalysisCacheTest extends EngineTestCase {
TestSource source = new TestSource();
DartEntryImpl entry = new DartEntryImpl();
cache.put(source, entry);
- Set<Entry<Source, SourceEntry>> result = cache.entrySet();
- assertSize(1, result);
+ Collection<Entry<Source, SourceEntry>> result = cache.entrySet();
+ assertCollectionSize(1, result);
Map.Entry<Source, SourceEntry> mapEntry = result.iterator().next();
assertSame(source, mapEntry.getKey());
assertSame(entry, mapEntry.getValue());

Powered by Google App Engine
This is Rietveld 408576698