aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Mock/TestClient.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Tests/Common/Mock/TestClient.cs')
-rw-r--r--OpenSim/Tests/Common/Mock/TestClient.cs59
1 files changed, 50 insertions, 9 deletions
diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs
index 0e1bc8f..ff7ba00 100644
--- a/OpenSim/Tests/Common/Mock/TestClient.cs
+++ b/OpenSim/Tests/Common/Mock/TestClient.cs
@@ -88,7 +88,7 @@ namespace OpenSim.Tests.Common
88 public event MoneyTransferRequest OnMoneyTransferRequest; 88 public event MoneyTransferRequest OnMoneyTransferRequest;
89 public event ParcelBuy OnParcelBuy; 89 public event ParcelBuy OnParcelBuy;
90 public event Action<IClientAPI> OnConnectionClosed; 90 public event Action<IClientAPI> OnConnectionClosed;
91 91 public event MoveItemsAndLeaveCopy OnMoveItemsAndLeaveCopy;
92 public event ImprovedInstantMessage OnInstantMessage; 92 public event ImprovedInstantMessage OnInstantMessage;
93 public event ChatMessage OnChatFromClient; 93 public event ChatMessage OnChatFromClient;
94 public event TextureRequest OnRequestTexture; 94 public event TextureRequest OnRequestTexture;
@@ -105,6 +105,7 @@ namespace OpenSim.Tests.Common
105 public event ObjectDrop OnObjectDrop; 105 public event ObjectDrop OnObjectDrop;
106 public event StartAnim OnStartAnim; 106 public event StartAnim OnStartAnim;
107 public event StopAnim OnStopAnim; 107 public event StopAnim OnStopAnim;
108 public event ChangeAnim OnChangeAnim;
108 public event LinkObjects OnLinkObjects; 109 public event LinkObjects OnLinkObjects;
109 public event DelinkObjects OnDelinkObjects; 110 public event DelinkObjects OnDelinkObjects;
110 public event RequestMapBlocks OnRequestMapBlocks; 111 public event RequestMapBlocks OnRequestMapBlocks;
@@ -153,6 +154,7 @@ namespace OpenSim.Tests.Common
153 public event GenericCall7 OnObjectMaterial; 154 public event GenericCall7 OnObjectMaterial;
154 public event UpdatePrimFlags OnUpdatePrimFlags; 155 public event UpdatePrimFlags OnUpdatePrimFlags;
155 public event UpdatePrimTexture OnUpdatePrimTexture; 156 public event UpdatePrimTexture OnUpdatePrimTexture;
157 public event ClientChangeObject onClientChangeObject;
156 public event UpdateVector OnUpdatePrimGroupPosition; 158 public event UpdateVector OnUpdatePrimGroupPosition;
157 public event UpdateVector OnUpdatePrimSinglePosition; 159 public event UpdateVector OnUpdatePrimSinglePosition;
158 public event UpdatePrimRotation OnUpdatePrimGroupRotation; 160 public event UpdatePrimRotation OnUpdatePrimGroupRotation;
@@ -295,7 +297,7 @@ namespace OpenSim.Tests.Common
295 public event ClassifiedInfoRequest OnClassifiedInfoRequest; 297 public event ClassifiedInfoRequest OnClassifiedInfoRequest;
296 public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; 298 public event ClassifiedInfoUpdate OnClassifiedInfoUpdate;
297 public event ClassifiedDelete OnClassifiedDelete; 299 public event ClassifiedDelete OnClassifiedDelete;
298 public event ClassifiedDelete OnClassifiedGodDelete; 300 public event ClassifiedGodDelete OnClassifiedGodDelete;
299 301
300 public event EventNotificationAddRequest OnEventNotificationAddRequest; 302 public event EventNotificationAddRequest OnEventNotificationAddRequest;
301 public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; 303 public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest;
@@ -334,11 +336,12 @@ namespace OpenSim.Tests.Common
334 public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; 336 public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest;
335 public event SimWideDeletesDelegate OnSimWideDeletes; 337 public event SimWideDeletesDelegate OnSimWideDeletes;
336 public event SendPostcard OnSendPostcard; 338 public event SendPostcard OnSendPostcard;
339 public event ChangeInventoryItemFlags OnChangeInventoryItemFlags;
337 public event MuteListEntryUpdate OnUpdateMuteListEntry; 340 public event MuteListEntryUpdate OnUpdateMuteListEntry;
338 public event MuteListEntryRemove OnRemoveMuteListEntry; 341 public event MuteListEntryRemove OnRemoveMuteListEntry;
339 public event GodlikeMessage onGodlikeMessage; 342 public event GodlikeMessage onGodlikeMessage;
340 public event GodUpdateRegionInfoUpdate OnGodUpdateRegionInfoUpdate; 343 public event GodUpdateRegionInfoUpdate OnGodUpdateRegionInfoUpdate;
341 344 public event GenericCall2 OnUpdateThrottles;
342#pragma warning restore 67 345#pragma warning restore 67
343 346
344 /// <value> 347 /// <value>
@@ -387,6 +390,8 @@ namespace OpenSim.Tests.Common
387 get { return FirstName + " " + LastName; } 390 get { return FirstName + " " + LastName; }
388 } 391 }
389 392
393 public int PingTimeMS { get { return 0; } }
394
390 public bool IsActive 395 public bool IsActive
391 { 396 {
392 get { return true; } 397 get { return true; }
@@ -448,6 +453,8 @@ namespace OpenSim.Tests.Common
448 get { return new IPEndPoint(IPAddress.Loopback, (ushort)m_circuitCode); } 453 get { return new IPEndPoint(IPAddress.Loopback, (ushort)m_circuitCode); }
449 } 454 }
450 455
456 public List<uint> SelectedObjects {get; private set;}
457
451 /// <summary> 458 /// <summary>
452 /// Constructor 459 /// Constructor
453 /// </summary> 460 /// </summary>
@@ -570,10 +577,27 @@ namespace OpenSim.Tests.Common
570 ReceivedKills.AddRange(localID); 577 ReceivedKills.AddRange(localID);
571 } 578 }
572 579
580 public void SendPartFullUpdate(ISceneEntity ent, uint? parentID)
581 {
582 }
583
573 public virtual void SetChildAgentThrottle(byte[] throttle) 584 public virtual void SetChildAgentThrottle(byte[] throttle)
574 { 585 {
575 } 586 }
576 587
588 public virtual void SetChildAgentThrottle(byte[] throttle, float factor)
589 {
590 }
591
592 public void SetAgentThrottleSilent(int throttle, int setting)
593 {
594 }
595
596 public int GetAgentThrottleSilent(int throttle)
597 {
598 return 0;
599 }
600
577 public byte[] GetThrottlesPacked(float multiplier) 601 public byte[] GetThrottlesPacked(float multiplier)
578 { 602 {
579 return new byte[0]; 603 return new byte[0];
@@ -608,6 +632,11 @@ namespace OpenSim.Tests.Common
608 632
609 } 633 }
610 634
635 public virtual bool CanSendLayerData()
636 {
637 return false;
638 }
639
611 public virtual void SendLayerData(float[] map) 640 public virtual void SendLayerData(float[] map)
612 { 641 {
613 } 642 }
@@ -755,6 +784,10 @@ namespace OpenSim.Tests.Common
755 { 784 {
756 } 785 }
757 786
787 public void SendInventoryItemCreateUpdate(InventoryItemBase Item, UUID transactionID, uint callbackId)
788 {
789 }
790
758 public virtual void SendRemoveInventoryItem(UUID itemID) 791 public virtual void SendRemoveInventoryItem(UUID itemID)
759 { 792 {
760 } 793 }
@@ -771,7 +804,7 @@ namespace OpenSim.Tests.Common
771 { 804 {
772 } 805 }
773 806
774 public virtual void SendXferPacket(ulong xferID, uint packet, byte[] data) 807 public virtual void SendXferPacket(ulong xferID, uint packet, byte[] data, bool isTaskInventory)
775 { 808 {
776 } 809 }
777 810
@@ -910,8 +943,13 @@ namespace OpenSim.Tests.Common
910 ReceivedOnlineNotifications.AddRange(agentIDs); 943 ReceivedOnlineNotifications.AddRange(agentIDs);
911 } 944 }
912 945
913 public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot, 946 public void SendFindAgent(UUID HunterID, UUID PreyID, double GlobalX, double GlobalY)
914 Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook) 947 {
948 }
949
950 public void SendSitResponse(UUID TargetID, Vector3 OffsetPos,
951 Quaternion SitOrientation, bool autopilot,
952 Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook)
915 { 953 {
916 } 954 }
917 955
@@ -966,10 +1004,10 @@ namespace OpenSim.Tests.Common
966 1004
967 public void Close() 1005 public void Close()
968 { 1006 {
969 Close(false); 1007 Close(true, false);
970 } 1008 }
971 1009
972 public void Close(bool force) 1010 public void Close(bool sendStop, bool force)
973 { 1011 {
974 // Fire the callback for this connection closing 1012 // Fire the callback for this connection closing
975 // This is necesary to get the presence detector to notice that a client has logged out. 1013 // This is necesary to get the presence detector to notice that a client has logged out.
@@ -1175,6 +1213,10 @@ namespace OpenSim.Tests.Common
1175 { 1213 {
1176 } 1214 }
1177 1215
1216 public void SendAgentGroupDataUpdate(UUID avatarID, GroupMembershipData[] data)
1217 {
1218 }
1219
1178 public void SendJoinGroupReply(UUID groupID, bool success) 1220 public void SendJoinGroupReply(UUID groupID, bool success)
1179 { 1221 {
1180 } 1222 }
@@ -1318,6 +1360,5 @@ namespace OpenSim.Tests.Common
1318 public void SendPartPhysicsProprieties(ISceneEntity entity) 1360 public void SendPartPhysicsProprieties(ISceneEntity entity)
1319 { 1361 {
1320 } 1362 }
1321
1322 } 1363 }
1323} 1364}