Add some basic RefControl tests for delegated ownership

While trying to understand what was wrong in issue 672 I started
to write up some unit tests for RefControl.  These don't give us
a whole lot of code coverage here, but its a simple start that
we can build on later.

Change-Id: Ib216a3d911c8447004528074a000e9424bcd711d
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2010-08-21 17:30:57 -07:00
parent 4d1885af42
commit ccecfe4d5d
2 changed files with 223 additions and 0 deletions

View File

@@ -97,6 +97,10 @@ public class ProjectState {
return inheritedRights;
}
void setInheritedRights(Collection<RefRight> all) {
inheritedRights = all;
}
private Collection<RefRight> computeInheritedRights() {
if (isSpecialWildProject()) {
return Collections.emptyList();