aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Mock
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Tests/Common/Mock')
-rw-r--r--OpenSim/Tests/Common/Mock/MockAssetDataPlugin.cs3
-rw-r--r--OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs10
-rw-r--r--OpenSim/Tests/Common/Mock/TestClient.cs24
3 files changed, 29 insertions, 8 deletions
diff --git a/OpenSim/Tests/Common/Mock/MockAssetDataPlugin.cs b/OpenSim/Tests/Common/Mock/MockAssetDataPlugin.cs
index 4a15cf2..5bab62c 100644
--- a/OpenSim/Tests/Common/Mock/MockAssetDataPlugin.cs
+++ b/OpenSim/Tests/Common/Mock/MockAssetDataPlugin.cs
@@ -54,9 +54,10 @@ namespace OpenSim.Tests.Common.Mock
54 return assets.Find(x=>x.FullID == uuid); 54 return assets.Find(x=>x.FullID == uuid);
55 } 55 }
56 56
57 public void StoreAsset(AssetBase asset) 57 public bool StoreAsset(AssetBase asset)
58 { 58 {
59 assets.Add(asset); 59 assets.Add(asset);
60 return true;
60 } 61 }
61 62
62 public List<AssetMetadata> FetchAssetMetadataSet(int start, int count) { return new List<AssetMetadata>(count); } 63 public List<AssetMetadata> FetchAssetMetadataSet(int start, int count) { return new List<AssetMetadata>(count); }
diff --git a/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs b/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs
index ed29c39..5c1ec0b 100644
--- a/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs
+++ b/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs
@@ -128,6 +128,11 @@ namespace OpenSim.Data.Null
128 m_store.RemoveRegionEnvironmentSettings(regionUUID); 128 m_store.RemoveRegionEnvironmentSettings(regionUUID);
129 } 129 }
130 130
131 public UUID[] GetObjectIDs(UUID regionID)
132 {
133 return new UUID[0];
134 }
135
131 public void SaveExtra(UUID regionID, string name, string value) 136 public void SaveExtra(UUID regionID, string name, string value)
132 { 137 {
133 } 138 }
@@ -332,6 +337,11 @@ namespace OpenSim.Data.Null
332 { 337 {
333 } 338 }
334 339
340 public UUID[] GetObjectIDs(UUID regionID)
341 {
342 return new UUID[0];
343 }
344
335 public void SaveExtra(UUID regionID, string name, string value) 345 public void SaveExtra(UUID regionID, string name, string value)
336 { 346 {
337 } 347 }
diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs
index 9370102..e8520f2 100644
--- a/OpenSim/Tests/Common/Mock/TestClient.cs
+++ b/OpenSim/Tests/Common/Mock/TestClient.cs
@@ -77,7 +77,7 @@ namespace OpenSim.Tests.Common.Mock
77 public event MoneyTransferRequest OnMoneyTransferRequest; 77 public event MoneyTransferRequest OnMoneyTransferRequest;
78 public event ParcelBuy OnParcelBuy; 78 public event ParcelBuy OnParcelBuy;
79 public event Action<IClientAPI> OnConnectionClosed; 79 public event Action<IClientAPI> OnConnectionClosed;
80 80 public event MoveItemsAndLeaveCopy OnMoveItemsAndLeaveCopy;
81 public event ImprovedInstantMessage OnInstantMessage; 81 public event ImprovedInstantMessage OnInstantMessage;
82 public event ChatMessage OnChatFromClient; 82 public event ChatMessage OnChatFromClient;
83 public event TextureRequest OnRequestTexture; 83 public event TextureRequest OnRequestTexture;
@@ -94,6 +94,7 @@ namespace OpenSim.Tests.Common.Mock
94 public event ObjectDrop OnObjectDrop; 94 public event ObjectDrop OnObjectDrop;
95 public event StartAnim OnStartAnim; 95 public event StartAnim OnStartAnim;
96 public event StopAnim OnStopAnim; 96 public event StopAnim OnStopAnim;
97 public event ChangeAnim OnChangeAnim;
97 public event LinkObjects OnLinkObjects; 98 public event LinkObjects OnLinkObjects;
98 public event DelinkObjects OnDelinkObjects; 99 public event DelinkObjects OnDelinkObjects;
99 public event RequestMapBlocks OnRequestMapBlocks; 100 public event RequestMapBlocks OnRequestMapBlocks;
@@ -142,6 +143,7 @@ namespace OpenSim.Tests.Common.Mock
142 public event GenericCall7 OnObjectMaterial; 143 public event GenericCall7 OnObjectMaterial;
143 public event UpdatePrimFlags OnUpdatePrimFlags; 144 public event UpdatePrimFlags OnUpdatePrimFlags;
144 public event UpdatePrimTexture OnUpdatePrimTexture; 145 public event UpdatePrimTexture OnUpdatePrimTexture;
146 public event ClientChangeObject onClientChangeObject;
145 public event UpdateVector OnUpdatePrimGroupPosition; 147 public event UpdateVector OnUpdatePrimGroupPosition;
146 public event UpdateVector OnUpdatePrimSinglePosition; 148 public event UpdateVector OnUpdatePrimSinglePosition;
147 public event UpdatePrimRotation OnUpdatePrimGroupRotation; 149 public event UpdatePrimRotation OnUpdatePrimGroupRotation;
@@ -284,7 +286,7 @@ namespace OpenSim.Tests.Common.Mock
284 public event ClassifiedInfoRequest OnClassifiedInfoRequest; 286 public event ClassifiedInfoRequest OnClassifiedInfoRequest;
285 public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; 287 public event ClassifiedInfoUpdate OnClassifiedInfoUpdate;
286 public event ClassifiedDelete OnClassifiedDelete; 288 public event ClassifiedDelete OnClassifiedDelete;
287 public event ClassifiedDelete OnClassifiedGodDelete; 289 public event ClassifiedGodDelete OnClassifiedGodDelete;
288 290
289 public event EventNotificationAddRequest OnEventNotificationAddRequest; 291 public event EventNotificationAddRequest OnEventNotificationAddRequest;
290 public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; 292 public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest;
@@ -323,11 +325,12 @@ namespace OpenSim.Tests.Common.Mock
323 public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; 325 public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest;
324 public event SimWideDeletesDelegate OnSimWideDeletes; 326 public event SimWideDeletesDelegate OnSimWideDeletes;
325 public event SendPostcard OnSendPostcard; 327 public event SendPostcard OnSendPostcard;
328 public event ChangeInventoryItemFlags OnChangeInventoryItemFlags;
326 public event MuteListEntryUpdate OnUpdateMuteListEntry; 329 public event MuteListEntryUpdate OnUpdateMuteListEntry;
327 public event MuteListEntryRemove OnRemoveMuteListEntry; 330 public event MuteListEntryRemove OnRemoveMuteListEntry;
328 public event GodlikeMessage onGodlikeMessage; 331 public event GodlikeMessage onGodlikeMessage;
329 public event GodUpdateRegionInfoUpdate OnGodUpdateRegionInfoUpdate; 332 public event GodUpdateRegionInfoUpdate OnGodUpdateRegionInfoUpdate;
330 333 public event GenericCall2 OnUpdateThrottles;
331#pragma warning restore 67 334#pragma warning restore 67
332 335
333 /// <value> 336 /// <value>
@@ -535,6 +538,10 @@ namespace OpenSim.Tests.Common.Mock
535 { 538 {
536 } 539 }
537 540
541 public void SetAgentThrottleSilent(int throttle, int setting)
542 {
543 }
544
538 public byte[] GetThrottlesPacked(float multiplier) 545 public byte[] GetThrottlesPacked(float multiplier)
539 { 546 {
540 return new byte[0]; 547 return new byte[0];
@@ -711,6 +718,10 @@ namespace OpenSim.Tests.Common.Mock
711 { 718 {
712 } 719 }
713 720
721 public void SendInventoryItemCreateUpdate(InventoryItemBase Item, UUID transactionID, uint callbackId)
722 {
723 }
724
714 public virtual void SendRemoveInventoryItem(UUID itemID) 725 public virtual void SendRemoveInventoryItem(UUID itemID)
715 { 726 {
716 } 727 }
@@ -727,7 +738,7 @@ namespace OpenSim.Tests.Common.Mock
727 { 738 {
728 } 739 }
729 740
730 public virtual void SendXferPacket(ulong xferID, uint packet, byte[] data) 741 public virtual void SendXferPacket(ulong xferID, uint packet, byte[] data, bool isTaskInventory)
731 { 742 {
732 } 743 }
733 744
@@ -927,10 +938,10 @@ namespace OpenSim.Tests.Common.Mock
927 938
928 public void Close() 939 public void Close()
929 { 940 {
930 Close(false); 941 Close(true, false);
931 } 942 }
932 943
933 public void Close(bool force) 944 public void Close(bool sendStop, bool force)
934 { 945 {
935 // Fire the callback for this connection closing 946 // Fire the callback for this connection closing
936 // This is necesary to get the presence detector to notice that a client has logged out. 947 // This is necesary to get the presence detector to notice that a client has logged out.
@@ -1277,6 +1288,5 @@ namespace OpenSim.Tests.Common.Mock
1277 public void SendPartPhysicsProprieties(ISceneEntity entity) 1288 public void SendPartPhysicsProprieties(ISceneEntity entity)
1278 { 1289 {
1279 } 1290 }
1280
1281 } 1291 }
1282} 1292}