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

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

Issue 11787017: Initial implementation of MemoryIndexStoreImpl and IndexContributor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/ContributedLocationTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/index/ContributedLocationTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/index/ContributedLocationTest.java
index aba79c704957e0b07dd6c3ae2649c8cad1aedc0d..c30a0cba41c8e4db71afbbb0b003debc3f71ab82 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/index/ContributedLocationTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/index/ContributedLocationTest.java
@@ -16,7 +16,6 @@ package com.google.dart.engine.internal.index;
import com.google.common.collect.Lists;
import com.google.dart.engine.EngineTestCase;
import com.google.dart.engine.index.Location;
-import com.google.dart.engine.source.Source;
import static org.mockito.Mockito.mock;
@@ -24,12 +23,15 @@ import java.util.List;
public class ContributedLocationTest extends EngineTestCase {
public void test_new() throws Exception {
- List<ContributedLocation> owner = Lists.newArrayList();
- Source contributor = mock(Source.class);
+ List<ContributedLocation> declarationOwner = Lists.newArrayList();
+ List<ContributedLocation> locationOwner = Lists.newArrayList();
Location location = mock(Location.class);
- ContributedLocation contributedLocation = new ContributedLocation(owner, contributor, location);
- assertSame(owner, contributedLocation.getOwner());
- assertSame(contributor, contributedLocation.getContributor());
+ ContributedLocation contributedLocation = new ContributedLocation(
+ declarationOwner,
+ locationOwner,
+ location);
+ assertSame(declarationOwner, contributedLocation.getDeclarationOwner());
+ assertSame(locationOwner, contributedLocation.getLocationOwner());
assertSame(location, contributedLocation.getLocation());
}
}

Powered by Google App Engine
This is Rietveld 408576698