aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Tests/Common')
-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 09e751a..26479be 100644
--- a/OpenSim/Tests/Common/Mock/TestClient.cs
+++ b/OpenSim/Tests/Common/Mock/TestClient.cs
@@ -72,7 +72,7 @@ namespace OpenSim.Tests.Common.Mock
72 public event MoneyTransferRequest OnMoneyTransferRequest; 72 public event MoneyTransferRequest OnMoneyTransferRequest;
73 public event ParcelBuy OnParcelBuy; 73 public event ParcelBuy OnParcelBuy;
74 public event Action<IClientAPI> OnConnectionClosed; 74 public event Action<IClientAPI> OnConnectionClosed;
75 75 public event MoveItemsAndLeaveCopy OnMoveItemsAndLeaveCopy;
76 public event ImprovedInstantMessage OnInstantMessage; 76 public event ImprovedInstantMessage OnInstantMessage;
77 public event ChatMessage OnChatFromClient; 77 public event ChatMessage OnChatFromClient;
78 public event TextureRequest OnRequestTexture; 78 public event TextureRequest OnRequestTexture;
@@ -89,6 +89,7 @@ namespace OpenSim.Tests.Common.Mock
89 public event ObjectDrop OnObjectDrop; 89 public event ObjectDrop OnObjectDrop;
90 public event StartAnim OnStartAnim; 90 public event StartAnim OnStartAnim;
91 public event StopAnim OnStopAnim; 91 public event StopAnim OnStopAnim;
92 public event ChangeAnim OnChangeAnim;
92 public event LinkObjects OnLinkObjects; 93 public event LinkObjects OnLinkObjects;
93 public event DelinkObjects OnDelinkObjects; 94 public event DelinkObjects OnDelinkObjects;
94 public event RequestMapBlocks OnRequestMapBlocks; 95 public event RequestMapBlocks OnRequestMapBlocks;
@@ -136,6 +137,7 @@ namespace OpenSim.Tests.Common.Mock
136 public event GenericCall7 OnObjectMaterial; 137 public event GenericCall7 OnObjectMaterial;
137 public event UpdatePrimFlags OnUpdatePrimFlags; 138 public event UpdatePrimFlags OnUpdatePrimFlags;
138 public event UpdatePrimTexture OnUpdatePrimTexture; 139 public event UpdatePrimTexture OnUpdatePrimTexture;
140 public event ClientChangeObject onClientChangeObject;
139 public event UpdateVector OnUpdatePrimGroupPosition; 141 public event UpdateVector OnUpdatePrimGroupPosition;
140 public event UpdateVector OnUpdatePrimSinglePosition; 142 public event UpdateVector OnUpdatePrimSinglePosition;
141 public event UpdatePrimRotation OnUpdatePrimGroupRotation; 143 public event UpdatePrimRotation OnUpdatePrimGroupRotation;
@@ -278,7 +280,7 @@ namespace OpenSim.Tests.Common.Mock
278 public event ClassifiedInfoRequest OnClassifiedInfoRequest; 280 public event ClassifiedInfoRequest OnClassifiedInfoRequest;
279 public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; 281 public event ClassifiedInfoUpdate OnClassifiedInfoUpdate;
280 public event ClassifiedDelete OnClassifiedDelete; 282 public event ClassifiedDelete OnClassifiedDelete;
281 public event ClassifiedDelete OnClassifiedGodDelete; 283 public event ClassifiedGodDelete OnClassifiedGodDelete;
282 284
283 public event EventNotificationAddRequest OnEventNotificationAddRequest; 285 public event EventNotificationAddRequest OnEventNotificationAddRequest;
284 public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; 286 public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest;
@@ -317,11 +319,12 @@ namespace OpenSim.Tests.Common.Mock
317 public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; 319 public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest;
318 public event SimWideDeletesDelegate OnSimWideDeletes; 320 public event SimWideDeletesDelegate OnSimWideDeletes;
319 public event SendPostcard OnSendPostcard; 321 public event SendPostcard OnSendPostcard;
322 public event ChangeInventoryItemFlags OnChangeInventoryItemFlags;
320 public event MuteListEntryUpdate OnUpdateMuteListEntry; 323 public event MuteListEntryUpdate OnUpdateMuteListEntry;
321 public event MuteListEntryRemove OnRemoveMuteListEntry; 324 public event MuteListEntryRemove OnRemoveMuteListEntry;
322 public event GodlikeMessage onGodlikeMessage; 325 public event GodlikeMessage onGodlikeMessage;
323 public event GodUpdateRegionInfoUpdate OnGodUpdateRegionInfoUpdate; 326 public event GodUpdateRegionInfoUpdate OnGodUpdateRegionInfoUpdate;
324 327 public event GenericCall2 OnUpdateThrottles;
325#pragma warning restore 67 328#pragma warning restore 67
326 329
327 /// <value> 330 /// <value>
@@ -528,6 +531,10 @@ namespace OpenSim.Tests.Common.Mock
528 { 531 {
529 } 532 }
530 533
534 public void SetAgentThrottleSilent(int throttle, int setting)
535 {
536 }
537
531 public byte[] GetThrottlesPacked(float multiplier) 538 public byte[] GetThrottlesPacked(float multiplier)
532 { 539 {
533 return new byte[0]; 540 return new byte[0];
@@ -700,6 +707,10 @@ namespace OpenSim.Tests.Common.Mock
700 { 707 {
701 } 708 }
702 709
710 public void SendInventoryItemCreateUpdate(InventoryItemBase Item, UUID transactionID, uint callbackId)
711 {
712 }
713
703 public virtual void SendRemoveInventoryItem(UUID itemID) 714 public virtual void SendRemoveInventoryItem(UUID itemID)
704 { 715 {
705 } 716 }
@@ -716,7 +727,7 @@ namespace OpenSim.Tests.Common.Mock
716 { 727 {
717 } 728 }
718 729
719 public virtual void SendXferPacket(ulong xferID, uint packet, byte[] data) 730 public virtual void SendXferPacket(ulong xferID, uint packet, byte[] data, bool isTaskInventory)
720 { 731 {
721 } 732 }
722 733
@@ -921,10 +932,10 @@ namespace OpenSim.Tests.Common.Mock
921 932
922 public void Close() 933 public void Close()
923 { 934 {
924 Close(false); 935 Close(true, false);
925 } 936 }
926 937
927 public void Close(bool force) 938 public void Close(bool sendStop, bool force)
928 { 939 {
929 // Fire the callback for this connection closing 940 // Fire the callback for this connection closing
930 // This is necesary to get the presence detector to notice that a client has logged out. 941 // This is necesary to get the presence detector to notice that a client has logged out.
@@ -1271,6 +1282,5 @@ namespace OpenSim.Tests.Common.Mock
1271 public void SendPartPhysicsProprieties(ISceneEntity entity) 1282 public void SendPartPhysicsProprieties(ISceneEntity entity)
1272 { 1283 {
1273 } 1284 }
1274
1275 } 1285 }
1276} 1286}