diff options
author | Kunnis | 2009-08-16 23:25:12 -0500 |
---|---|---|
committer | Melanie | 2009-08-19 23:46:25 +0100 |
commit | b1853d9f265fb32cf51d65fdcf2d5b4741911f00 (patch) | |
tree | c3d814cc0a53ef3a68310e5872eafc3f5acc0280 /OpenSim/Tests | |
parent | * Switching IAssetData to follow the new naming schema, removing the separate... (diff) | |
download | opensim-SC_OLD-b1853d9f265fb32cf51d65fdcf2d5b4741911f00.zip opensim-SC_OLD-b1853d9f265fb32cf51d65fdcf2d5b4741911f00.tar.gz opensim-SC_OLD-b1853d9f265fb32cf51d65fdcf2d5b4741911f00.tar.bz2 opensim-SC_OLD-b1853d9f265fb32cf51d65fdcf2d5b4741911f00.tar.xz |
Fixing a spot I missed in assets. Switching Grid to the new naming schema with Store/Get
Diffstat (limited to 'OpenSim/Tests')
-rw-r--r-- | OpenSim/Tests/Common/Mock/TestAssetDataPlugin.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Tests/Common/Mock/TestAssetDataPlugin.cs b/OpenSim/Tests/Common/Mock/TestAssetDataPlugin.cs index 8ab72dc..3981fe9 100644 --- a/OpenSim/Tests/Common/Mock/TestAssetDataPlugin.cs +++ b/OpenSim/Tests/Common/Mock/TestAssetDataPlugin.cs | |||
@@ -25,6 +25,7 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
28 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
29 | using OpenMetaverse; | 30 | using OpenMetaverse; |
30 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
@@ -46,6 +47,18 @@ namespace OpenSim.Tests.Common.Mock | |||
46 | public void Initialise(string connect) {} | 47 | public void Initialise(string connect) {} |
47 | public void Dispose() {} | 48 | public void Dispose() {} |
48 | 49 | ||
50 | private readonly List<AssetBase> assets = new List<AssetBase>(); | ||
51 | |||
52 | public AssetBase GetAsset(UUID uuid) | ||
53 | { | ||
54 | return assets.Find(x=>x.FullID == uuid); | ||
55 | } | ||
56 | |||
57 | public void StoreAsset(AssetBase asset) | ||
58 | { | ||
59 | assets.Add(asset); | ||
60 | } | ||
61 | |||
49 | public List<AssetMetadata> FetchAssetMetadataSet(int start, int count) { return new List<AssetMetadata>(count); } | 62 | public List<AssetMetadata> FetchAssetMetadataSet(int start, int count) { return new List<AssetMetadata>(count); } |
50 | } | 63 | } |
51 | } \ No newline at end of file | 64 | } \ No newline at end of file |