diff options
author | Melanie | 2012-03-31 02:18:02 +0100 |
---|---|---|
committer | Melanie | 2012-03-31 02:18:02 +0100 |
commit | f3132c45d98af7bb38251ad95013c433b5eda9e5 (patch) | |
tree | efc3d6c0529678c0a56f5a505a52944012ea607a /OpenSim/Tests/Common/Mock | |
parent | Merge branch 'master' into careminster (diff) | |
parent | refactor: Rename SOG.GetChildPart() to GetPart() since it can also return the... (diff) | |
download | opensim-SC-f3132c45d98af7bb38251ad95013c433b5eda9e5.zip opensim-SC-f3132c45d98af7bb38251ad95013c433b5eda9e5.tar.gz opensim-SC-f3132c45d98af7bb38251ad95013c433b5eda9e5.tar.bz2 opensim-SC-f3132c45d98af7bb38251ad95013c433b5eda9e5.tar.xz |
Merge branch 'master' into careminster
Conflicts:
OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
OpenSim/Tests/Common/Mock/TestClient.cs
Diffstat (limited to 'OpenSim/Tests/Common/Mock')
-rw-r--r-- | OpenSim/Tests/Common/Mock/TestClient.cs | 43 |
1 files changed, 27 insertions, 16 deletions
diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs index 64dd1e4..6a7cb0a 100644 --- a/OpenSim/Tests/Common/Mock/TestClient.cs +++ b/OpenSim/Tests/Common/Mock/TestClient.cs | |||
@@ -349,15 +349,9 @@ namespace OpenSim.Tests.Common.Mock | |||
349 | get { return m_agentId; } | 349 | get { return m_agentId; } |
350 | } | 350 | } |
351 | 351 | ||
352 | public UUID SessionId | 352 | public UUID SessionId { get; set; } |
353 | { | ||
354 | get { return UUID.Zero; } | ||
355 | } | ||
356 | 353 | ||
357 | public UUID SecureSessionId | 354 | public UUID SecureSessionId { get; set; } |
358 | { | ||
359 | get { return UUID.Zero; } | ||
360 | } | ||
361 | 355 | ||
362 | public virtual string FirstName | 356 | public virtual string FirstName |
363 | { | 357 | { |
@@ -381,11 +375,9 @@ namespace OpenSim.Tests.Common.Mock | |||
381 | get { return true; } | 375 | get { return true; } |
382 | set { } | 376 | set { } |
383 | } | 377 | } |
384 | public bool IsLoggingOut | 378 | |
385 | { | 379 | public bool IsLoggingOut { get; set; } |
386 | get { return false; } | 380 | |
387 | set { } | ||
388 | } | ||
389 | public UUID ActiveGroupId | 381 | public UUID ActiveGroupId |
390 | { | 382 | { |
391 | get { return UUID.Zero; } | 383 | get { return UUID.Zero; } |
@@ -451,6 +443,8 @@ namespace OpenSim.Tests.Common.Mock | |||
451 | m_lastName = agentData.lastname; | 443 | m_lastName = agentData.lastname; |
452 | m_circuitCode = agentData.circuitcode; | 444 | m_circuitCode = agentData.circuitcode; |
453 | m_scene = scene; | 445 | m_scene = scene; |
446 | SessionId = agentData.SessionID; | ||
447 | SecureSessionId = agentData.SecureSessionID; | ||
454 | CapsSeedUrl = agentData.CapsPath; | 448 | CapsSeedUrl = agentData.CapsPath; |
455 | 449 | ||
456 | ReceivedOfflineNotifications = new List<UUID>(); | 450 | ReceivedOfflineNotifications = new List<UUID>(); |
@@ -902,12 +896,29 @@ namespace OpenSim.Tests.Common.Mock | |||
902 | { | 896 | { |
903 | } | 897 | } |
904 | 898 | ||
905 | public void Close() | 899 | /// <summary> |
900 | /// This is a TestClient only method to do shutdown tasks that are normally carried out by LLUDPServer.RemoveClient() | ||
901 | /// </summary> | ||
902 | public void Logout() | ||
903 | { | ||
904 | // We must set this here so that the presence is removed from the PresenceService by the PresenceDetector | ||
905 | IsLoggingOut = true; | ||
906 | |||
907 | Close(); | ||
908 | } | ||
909 | |||
910 | public void Close(bool c) | ||
906 | { | 911 | { |
907 | Close(true); | 912 | Close(); |
908 | } | 913 | } |
909 | public void Close(bool sendStop) | 914 | |
915 | public void Close() | ||
910 | { | 916 | { |
917 | // Fire the callback for this connection closing | ||
918 | // This is necesary to get the presence detector to notice that a client has logged out. | ||
919 | if (OnConnectionClosed != null) | ||
920 | OnConnectionClosed(this); | ||
921 | |||
911 | m_scene.RemoveClient(AgentId, true); | 922 | m_scene.RemoveClient(AgentId, true); |
912 | } | 923 | } |
913 | 924 | ||