Revision 174bbb6e trunk/Pithos.Core.Test/MockStatusKeeper.cs
b/trunk/Pithos.Core.Test/MockStatusKeeper.cs | ||
---|---|---|
6 | 6 |
using System.Linq; |
7 | 7 |
using System.Text; |
8 | 8 |
using System.Threading; |
9 |
using System.Threading.Tasks; |
|
9 | 10 |
using Pithos.Interfaces; |
10 | 11 |
using Pithos.Network; |
11 | 12 |
|
... | ... | |
146 | 147 |
throw new NotImplementedException(); |
147 | 148 |
} |
148 | 149 |
|
150 |
public void EnsureFileState(string path) |
|
151 |
{ |
|
152 |
throw new NotImplementedException(); |
|
153 |
} |
|
154 |
|
|
149 | 155 |
|
150 | 156 |
private PithosStatus _pithosStatus = PithosStatus.InSynch; |
151 | 157 |
public void SetPithosStatus(PithosStatus status) |
... | ... | |
158 | 164 |
return _pithosStatus; |
159 | 165 |
} |
160 | 166 |
|
161 |
public void SetFileOverlayStatus(string path, FileOverlayStatus overlayStatus)
|
|
167 |
public Task SetFileOverlayStatus(string path, FileOverlayStatus overlayStatus, string shortHash = null)
|
|
162 | 168 |
{ |
163 | 169 |
_overlayCache[path] = overlayStatus; |
170 |
return Task.Factory.StartNew(()=>{}); |
|
164 | 171 |
} |
165 | 172 |
|
166 | 173 |
public void RemoveFileOverlayStatus(string path) |
... | ... | |
177 | 184 |
_overlayCache.TryRemove(oldPath, out value); |
178 | 185 |
} |
179 | 186 |
|
180 |
public void UpdateFileChecksum(string path, string checksum) |
|
187 |
public void UpdateFileChecksum(string path, string shortHash, string checksum)
|
|
181 | 188 |
{ |
182 | 189 |
_checksums[path] = checksum; |
183 | 190 |
} |
Also available in: Unified diff