diff options
author | Justin Clark-Casey (justincc) | 2011-11-14 20:56:56 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-11-14 20:56:56 +0000 |
commit | 89632f3ea8c355e5e860eb787aa21f90e79762d8 (patch) | |
tree | ff57923dd8ce7ca63e5b57bc2f2d05f745065691 /OpenSim/Tests | |
parent | Merge branch 'remove-scene-viewer' (diff) | |
download | opensim-SC-89632f3ea8c355e5e860eb787aa21f90e79762d8.zip opensim-SC-89632f3ea8c355e5e860eb787aa21f90e79762d8.tar.gz opensim-SC-89632f3ea8c355e5e860eb787aa21f90e79762d8.tar.bz2 opensim-SC-89632f3ea8c355e5e860eb787aa21f90e79762d8.tar.xz |
Add test for removing a friendship.
Diffstat (limited to 'OpenSim/Tests')
-rw-r--r-- | OpenSim/Tests/Common/Mock/TestClient.cs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs index 3ba9ed4..b83ef9b 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, |
@@ -1109,6 +1111,7 @@ namespace OpenSim.Tests.Common.Mock | |||
1109 | 1111 | ||
1110 | public void SendTerminateFriend(UUID exFriendID) | 1112 | public void SendTerminateFriend(UUID exFriendID) |
1111 | { | 1113 | { |
1114 | ReceivedFriendshipTerminations.Add(exFriendID); | ||
1112 | } | 1115 | } |
1113 | 1116 | ||
1114 | public bool AddGenericPacketHandler(string MethodName, GenericMessage handler) | 1117 | public bool AddGenericPacketHandler(string MethodName, GenericMessage handler) |