aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Mock/TestClient.cs
diff options
context:
space:
mode:
authorMelanie2011-11-17 19:15:41 +0100
committerMelanie2011-11-17 19:15:41 +0100
commitd1c80efd41d914ed91a51d129e8f08ad749e3397 (patch)
tree61aa8dbef7e0afa3f3a2c2eaa7f3ae3d4d8ef712 /OpenSim/Tests/Common/Mock/TestClient.cs
parentForce a sim exit when hearbeat isn't restarting successfully (diff)
parentMerge branch 'master' into bigmerge (diff)
downloadopensim-SC-d1c80efd41d914ed91a51d129e8f08ad749e3397.zip
opensim-SC-d1c80efd41d914ed91a51d129e8f08ad749e3397.tar.gz
opensim-SC-d1c80efd41d914ed91a51d129e8f08ad749e3397.tar.bz2
opensim-SC-d1c80efd41d914ed91a51d129e8f08ad749e3397.tar.xz
Merge branch 'bigmerge' of ssh://3dhosting.de/var/git/careminster into bigmerge
Diffstat (limited to 'OpenSim/Tests/Common/Mock/TestClient.cs')
-rw-r--r--OpenSim/Tests/Common/Mock/TestClient.cs15
1 files changed, 9 insertions, 6 deletions
diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs
index 5fe1985..cedd6c7 100644
--- a/OpenSim/Tests/Common/Mock/TestClient.cs
+++ b/OpenSim/Tests/Common/Mock/TestClient.cs
@@ -57,8 +57,9 @@ namespace OpenSim.Tests.Common.Mock
57 private IScene m_scene; 57 private IScene m_scene;
58 58
59 // Properties so that we can get at received data for test purposes 59 // Properties so that we can get at received data for test purposes
60 public List<UUID> OfflineNotificationsReceived { get; private set; } 60 public List<UUID> ReceivedOfflineNotifications { get; private set; }
61 public List<UUID> OnlineNotificationsReceived { get; private set; } 61 public List<UUID> ReceivedOnlineNotifications { get; private set; }
62 public List<UUID> ReceivedFriendshipTerminations { get; private set; }
62 63
63// disable warning: public events, part of the public API 64// disable warning: public events, part of the public API
64#pragma warning disable 67 65#pragma warning disable 67
@@ -445,8 +446,9 @@ namespace OpenSim.Tests.Common.Mock
445 m_scene = scene; 446 m_scene = scene;
446 CapsSeedUrl = agentData.CapsPath; 447 CapsSeedUrl = agentData.CapsPath;
447 448
448 OfflineNotificationsReceived = new List<UUID>(); 449 ReceivedOfflineNotifications = new List<UUID>();
449 OnlineNotificationsReceived = new List<UUID>(); 450 ReceivedOnlineNotifications = new List<UUID>();
451 ReceivedFriendshipTerminations = new List<UUID>();
450 } 452 }
451 453
452 /// <summary> 454 /// <summary>
@@ -834,12 +836,12 @@ namespace OpenSim.Tests.Common.Mock
834 836
835 public void SendAgentOffline(UUID[] agentIDs) 837 public void SendAgentOffline(UUID[] agentIDs)
836 { 838 {
837 OfflineNotificationsReceived.AddRange(agentIDs); 839 ReceivedOfflineNotifications.AddRange(agentIDs);
838 } 840 }
839 841
840 public void SendAgentOnline(UUID[] agentIDs) 842 public void SendAgentOnline(UUID[] agentIDs)
841 { 843 {
842 OnlineNotificationsReceived.AddRange(agentIDs); 844 ReceivedOnlineNotifications.AddRange(agentIDs);
843 } 845 }
844 846
845 public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot, 847 public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot,
@@ -1113,6 +1115,7 @@ namespace OpenSim.Tests.Common.Mock
1113 1115
1114 public void SendTerminateFriend(UUID exFriendID) 1116 public void SendTerminateFriend(UUID exFriendID)
1115 { 1117 {
1118 ReceivedFriendshipTerminations.Add(exFriendID);
1116 } 1119 }
1117 1120
1118 public bool AddGenericPacketHandler(string MethodName, GenericMessage handler) 1121 public bool AddGenericPacketHandler(string MethodName, GenericMessage handler)