diff options
Diffstat (limited to 'OpenSim/Tests')
-rw-r--r-- | OpenSim/Tests/Common/Mock/MockAssetDataPlugin.cs | 3 | ||||
-rw-r--r-- | OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs | 10 | ||||
-rw-r--r-- | OpenSim/Tests/Common/Mock/TestClient.cs | 26 | ||||
-rw-r--r-- | OpenSim/Tests/Performance/NPCPerformanceTests.cs | 2 |
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 664ecb6..32f6a64 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> |
@@ -539,6 +542,12 @@ namespace OpenSim.Tests.Common.Mock | |||
539 | public virtual void SetChildAgentThrottle(byte[] throttle) | 542 | public virtual void SetChildAgentThrottle(byte[] throttle) |
540 | { | 543 | { |
541 | } | 544 | } |
545 | |||
546 | public void SetAgentThrottleSilent(int throttle, int setting) | ||
547 | { | ||
548 | |||
549 | |||
550 | } | ||
542 | public byte[] GetThrottlesPacked(float multiplier) | 551 | public byte[] GetThrottlesPacked(float multiplier) |
543 | { | 552 | { |
544 | return new byte[0]; | 553 | return new byte[0]; |
@@ -712,6 +721,10 @@ namespace OpenSim.Tests.Common.Mock | |||
712 | { | 721 | { |
713 | } | 722 | } |
714 | 723 | ||
724 | public void SendInventoryItemCreateUpdate(InventoryItemBase Item, UUID transactionID, uint callbackId) | ||
725 | { | ||
726 | } | ||
727 | |||
715 | public virtual void SendRemoveInventoryItem(UUID itemID) | 728 | public virtual void SendRemoveInventoryItem(UUID itemID) |
716 | { | 729 | { |
717 | } | 730 | } |
@@ -728,7 +741,7 @@ namespace OpenSim.Tests.Common.Mock | |||
728 | { | 741 | { |
729 | } | 742 | } |
730 | 743 | ||
731 | public virtual void SendXferPacket(ulong xferID, uint packet, byte[] data) | 744 | public virtual void SendXferPacket(ulong xferID, uint packet, byte[] data, bool isTaskInventory) |
732 | { | 745 | { |
733 | } | 746 | } |
734 | 747 | ||
@@ -933,10 +946,10 @@ namespace OpenSim.Tests.Common.Mock | |||
933 | 946 | ||
934 | public void Close() | 947 | public void Close() |
935 | { | 948 | { |
936 | Close(false); | 949 | Close(true, false); |
937 | } | 950 | } |
938 | 951 | ||
939 | public void Close(bool force) | 952 | public void Close(bool sendStop, bool force) |
940 | { | 953 | { |
941 | // Fire the callback for this connection closing | 954 | // Fire the callback for this connection closing |
942 | // This is necesary to get the presence detector to notice that a client has logged out. | 955 | // This is necesary to get the presence detector to notice that a client has logged out. |
@@ -1283,6 +1296,5 @@ namespace OpenSim.Tests.Common.Mock | |||
1283 | public void SendPartPhysicsProprieties(ISceneEntity entity) | 1296 | public void SendPartPhysicsProprieties(ISceneEntity entity) |
1284 | { | 1297 | { |
1285 | } | 1298 | } |
1286 | |||
1287 | } | 1299 | } |
1288 | } | 1300 | } |
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 | ||