aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Mock
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-11-14 17:18:51 +0000
committerJustin Clark-Casey (justincc)2011-11-14 17:18:51 +0000
commitde895ee54a14f21ee0609e6a3636a31407495aa3 (patch)
treec6449e7ef1da31980644d36689f7fa158d5d6d0f /OpenSim/Tests/Common/Mock
parentIf a friends identifier which is too short is given to HGFriendsModule.GetOnl... (diff)
downloadopensim-SC-de895ee54a14f21ee0609e6a3636a31407495aa3.zip
opensim-SC-de895ee54a14f21ee0609e6a3636a31407495aa3.tar.gz
opensim-SC-de895ee54a14f21ee0609e6a3636a31407495aa3.tar.bz2
opensim-SC-de895ee54a14f21ee0609e6a3636a31407495aa3.tar.xz
Add very simple FriendsModuleTests.TestNoFriends()
Diffstat (limited to 'OpenSim/Tests/Common/Mock')
-rw-r--r--OpenSim/Tests/Common/Mock/TestClient.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs
index 4636961..3ba9ed4 100644
--- a/OpenSim/Tests/Common/Mock/TestClient.cs
+++ b/OpenSim/Tests/Common/Mock/TestClient.cs
@@ -56,6 +56,10 @@ namespace OpenSim.Tests.Common.Mock
56 56
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
60 public List<UUID> OfflineNotificationsReceived { get; private set; }
61 public List<UUID> OnlineNotificationsReceived { get; private set; }
62
59// disable warning: public events, part of the public API 63// disable warning: public events, part of the public API
60#pragma warning disable 67 64#pragma warning disable 67
61 65
@@ -440,6 +444,9 @@ namespace OpenSim.Tests.Common.Mock
440 m_circuitCode = agentData.circuitcode; 444 m_circuitCode = agentData.circuitcode;
441 m_scene = scene; 445 m_scene = scene;
442 CapsSeedUrl = agentData.CapsPath; 446 CapsSeedUrl = agentData.CapsPath;
447
448 OfflineNotificationsReceived = new List<UUID>();
449 OnlineNotificationsReceived = new List<UUID>();
443 } 450 }
444 451
445 /// <summary> 452 /// <summary>
@@ -827,12 +834,12 @@ namespace OpenSim.Tests.Common.Mock
827 834
828 public void SendAgentOffline(UUID[] agentIDs) 835 public void SendAgentOffline(UUID[] agentIDs)
829 { 836 {
830 837 OfflineNotificationsReceived.AddRange(agentIDs);
831 } 838 }
832 839
833 public void SendAgentOnline(UUID[] agentIDs) 840 public void SendAgentOnline(UUID[] agentIDs)
834 { 841 {
835 842 OnlineNotificationsReceived.AddRange(agentIDs);
836 } 843 }
837 844
838 public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot, 845 public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot,