aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Tests')
-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.cs26
-rw-r--r--OpenSim/Tests/Performance/NPCPerformanceTests.cs2
4 files changed, 32 insertions, 9 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 41402a4..e7c1633 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;
@@ -277,7 +279,7 @@ namespace OpenSim.Tests.Common.Mock
277 public event ClassifiedInfoRequest OnClassifiedInfoRequest; 279 public event ClassifiedInfoRequest OnClassifiedInfoRequest;
278 public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; 280 public event ClassifiedInfoUpdate OnClassifiedInfoUpdate;
279 public event ClassifiedDelete OnClassifiedDelete; 281 public event ClassifiedDelete OnClassifiedDelete;
280 public event ClassifiedDelete OnClassifiedGodDelete; 282 public event ClassifiedGodDelete OnClassifiedGodDelete;
281 283
282 public event EventNotificationAddRequest OnEventNotificationAddRequest; 284 public event EventNotificationAddRequest OnEventNotificationAddRequest;
283 public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; 285 public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest;
@@ -316,11 +318,12 @@ namespace OpenSim.Tests.Common.Mock
316 public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; 318 public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest;
317 public event SimWideDeletesDelegate OnSimWideDeletes; 319 public event SimWideDeletesDelegate OnSimWideDeletes;
318 public event SendPostcard OnSendPostcard; 320 public event SendPostcard OnSendPostcard;
321 public event ChangeInventoryItemFlags OnChangeInventoryItemFlags;
319 public event MuteListEntryUpdate OnUpdateMuteListEntry; 322 public event MuteListEntryUpdate OnUpdateMuteListEntry;
320 public event MuteListEntryRemove OnRemoveMuteListEntry; 323 public event MuteListEntryRemove OnRemoveMuteListEntry;
321 public event GodlikeMessage onGodlikeMessage; 324 public event GodlikeMessage onGodlikeMessage;
322 public event GodUpdateRegionInfoUpdate OnGodUpdateRegionInfoUpdate; 325 public event GodUpdateRegionInfoUpdate OnGodUpdateRegionInfoUpdate;
323 326 public event GenericCall2 OnUpdateThrottles;
324#pragma warning restore 67 327#pragma warning restore 67
325 328
326 /// <value> 329 /// <value>
@@ -533,6 +536,12 @@ namespace OpenSim.Tests.Common.Mock
533 public virtual void SetChildAgentThrottle(byte[] throttle) 536 public virtual void SetChildAgentThrottle(byte[] throttle)
534 { 537 {
535 } 538 }
539
540 public void SetAgentThrottleSilent(int throttle, int setting)
541 {
542
543
544 }
536 public byte[] GetThrottlesPacked(float multiplier) 545 public byte[] GetThrottlesPacked(float multiplier)
537 { 546 {
538 return new byte[0]; 547 return new byte[0];
@@ -706,6 +715,10 @@ namespace OpenSim.Tests.Common.Mock
706 { 715 {
707 } 716 }
708 717
718 public void SendInventoryItemCreateUpdate(InventoryItemBase Item, UUID transactionID, uint callbackId)
719 {
720 }
721
709 public virtual void SendRemoveInventoryItem(UUID itemID) 722 public virtual void SendRemoveInventoryItem(UUID itemID)
710 { 723 {
711 } 724 }
@@ -722,7 +735,7 @@ namespace OpenSim.Tests.Common.Mock
722 { 735 {
723 } 736 }
724 737
725 public virtual void SendXferPacket(ulong xferID, uint packet, byte[] data) 738 public virtual void SendXferPacket(ulong xferID, uint packet, byte[] data, bool isTaskInventory)
726 { 739 {
727 } 740 }
728 741
@@ -927,10 +940,10 @@ namespace OpenSim.Tests.Common.Mock
927 940
928 public void Close() 941 public void Close()
929 { 942 {
930 Close(false); 943 Close(true, false);
931 } 944 }
932 945
933 public void Close(bool force) 946 public void Close(bool sendStop, bool force)
934 { 947 {
935 // Fire the callback for this connection closing 948 // Fire the callback for this connection closing
936 // This is necesary to get the presence detector to notice that a client has logged out. 949 // This is necesary to get the presence detector to notice that a client has logged out.
@@ -1277,6 +1290,5 @@ namespace OpenSim.Tests.Common.Mock
1277 public void SendPartPhysicsProprieties(ISceneEntity entity) 1290 public void SendPartPhysicsProprieties(ISceneEntity entity)
1278 { 1291 {
1279 } 1292 }
1280
1281 } 1293 }
1282} 1294}
diff --git a/OpenSim/Tests/Performance/NPCPerformanceTests.cs b/OpenSim/Tests/Performance/NPCPerformanceTests.cs
index 2026a88..fde1b91 100644
--- a/OpenSim/Tests/Performance/NPCPerformanceTests.cs
+++ b/OpenSim/Tests/Performance/NPCPerformanceTests.cs
@@ -144,7 +144,7 @@ namespace OpenSim.Tests.Performance
144 // ScenePresence.SendInitialData() to reset our entire appearance. 144 // ScenePresence.SendInitialData() to reset our entire appearance.
145 scene.AssetService.Store(AssetHelpers.CreateNotecardAsset(originalFace8TextureId)); 145 scene.AssetService.Store(AssetHelpers.CreateNotecardAsset(originalFace8TextureId));
146 146
147 afm.SetAppearance(sp, originalTe, null); 147 afm.SetAppearance(sp, originalTe, null, new WearableCacheItem[0]);
148 148
149 INPCModule npcModule = scene.RequestModuleInterface<INPCModule>(); 149 INPCModule npcModule = scene.RequestModuleInterface<INPCModule>();
150 150