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

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

Issue 11787017: Initial implementation of MemoryIndexStoreImpl and IndexContributor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update for review comments Created 7 years, 11 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/index/IndexImplTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/index/IndexImplTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/index/IndexImplTest.java
index 909ce268c84b46e28aac71ccf828b6bece4f690e..13689e973606e665c8e2a8417e5cdb19e90bbac1 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/index/IndexImplTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/index/IndexImplTest.java
@@ -16,7 +16,7 @@ package com.google.dart.engine.internal.index;
import com.google.dart.engine.EngineTestCase;
import com.google.dart.engine.ast.CompilationUnit;
import com.google.dart.engine.element.CompilationUnitElement;
-import com.google.dart.engine.element.ElementLocation;
+import com.google.dart.engine.element.ElementProxy;
import com.google.dart.engine.index.IndexStore;
import com.google.dart.engine.index.Relationship;
import com.google.dart.engine.index.RelationshipCallback;
@@ -40,14 +40,14 @@ public class IndexImplTest extends EngineTestCase {
private IndexImpl index = new IndexImpl(store, queue, processor);
public void test_getRelationships() throws Exception {
- ElementLocation elementLocation = mock(ElementLocation.class);
+ ElementProxy element = mock(ElementProxy.class);
Relationship relationship = Relationship.getRelationship("test-relationship");
RelationshipCallback callback = mock(RelationshipCallback.class);
- index.getRelationships(elementLocation, relationship, callback);
+ index.getRelationships(element, relationship, callback);
// verify
ArgumentCaptor<GetRelationshipsOperation> argument = ArgumentCaptor.forClass(GetRelationshipsOperation.class);
verify(queue).enqueue(argument.capture());
- assertSame(elementLocation, argument.getValue().getElementLocation());
+ assertSame(element, argument.getValue().getElement());
assertSame(relationship, argument.getValue().getRelationship());
assertSame(callback, argument.getValue().getCallback());
}

Powered by Google App Engine
This is Rietveld 408576698