diff options
author | Dan Lake | 2012-02-01 16:25:35 -0800 |
---|---|---|
committer | Dan Lake | 2012-02-01 16:25:35 -0800 |
commit | c10193c72b1f029a958f04d2f5d7ee384e693aaa (patch) | |
tree | 052ec7e973c15b158310511197affad14eb9c64f /OpenSim/Tests/Common/Mock/TestClient.cs | |
parent | Trigger event when prims are scheduled for an update. This gives modules earl... (diff) | |
parent | Small optimization to last commit (diff) | |
download | opensim-SC_OLD-c10193c72b1f029a958f04d2f5d7ee384e693aaa.zip opensim-SC_OLD-c10193c72b1f029a958f04d2f5d7ee384e693aaa.tar.gz opensim-SC_OLD-c10193c72b1f029a958f04d2f5d7ee384e693aaa.tar.bz2 opensim-SC_OLD-c10193c72b1f029a958f04d2f5d7ee384e693aaa.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Tests/Common/Mock/TestClient.cs')
-rw-r--r-- | OpenSim/Tests/Common/Mock/TestClient.cs | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs index 37b90e1..ab89fe0 100644 --- a/OpenSim/Tests/Common/Mock/TestClient.cs +++ b/OpenSim/Tests/Common/Mock/TestClient.cs | |||
@@ -44,9 +44,6 @@ namespace OpenSim.Tests.Common.Mock | |||
44 | { | 44 | { |
45 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 45 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
46 | 46 | ||
47 | // Mock testing variables | ||
48 | public List<ImageDataPacket> sentdatapkt = new List<ImageDataPacket>(); | ||
49 | public List<ImagePacketPacket> sentpktpkt = new List<ImagePacketPacket>(); | ||
50 | EventWaitHandle wh = new EventWaitHandle (false, EventResetMode.AutoReset, "Crossing"); | 47 | EventWaitHandle wh = new EventWaitHandle (false, EventResetMode.AutoReset, "Crossing"); |
51 | 48 | ||
52 | // TODO: This is a really nasty (and temporary) means of telling the test client which scene to invoke setup | 49 | // TODO: This is a really nasty (and temporary) means of telling the test client which scene to invoke setup |
@@ -61,6 +58,10 @@ namespace OpenSim.Tests.Common.Mock | |||
61 | public List<UUID> ReceivedOnlineNotifications { get; private set; } | 58 | public List<UUID> ReceivedOnlineNotifications { get; private set; } |
62 | public List<UUID> ReceivedFriendshipTerminations { get; private set; } | 59 | public List<UUID> ReceivedFriendshipTerminations { get; private set; } |
63 | 60 | ||
61 | public List<ImageDataPacket> SentImageDataPackets { get; private set; } | ||
62 | public List<ImagePacketPacket> SentImagePacketPackets { get; private set; } | ||
63 | public List<ImageNotInDatabasePacket> SentImageNotInDatabasePackets { get; private set; } | ||
64 | |||
64 | // disable warning: public events, part of the public API | 65 | // disable warning: public events, part of the public API |
65 | #pragma warning disable 67 | 66 | #pragma warning disable 67 |
66 | 67 | ||
@@ -193,6 +194,7 @@ namespace OpenSim.Tests.Common.Mock | |||
193 | public event RegionInfoRequest OnRegionInfoRequest; | 194 | public event RegionInfoRequest OnRegionInfoRequest; |
194 | public event EstateCovenantRequest OnEstateCovenantRequest; | 195 | public event EstateCovenantRequest OnEstateCovenantRequest; |
195 | public event EstateChangeInfo OnEstateChangeInfo; | 196 | public event EstateChangeInfo OnEstateChangeInfo; |
197 | public event EstateManageTelehub OnEstateManageTelehub; | ||
196 | 198 | ||
197 | public event ObjectDuplicateOnRay OnObjectDuplicateOnRay; | 199 | public event ObjectDuplicateOnRay OnObjectDuplicateOnRay; |
198 | 200 | ||
@@ -452,6 +454,10 @@ namespace OpenSim.Tests.Common.Mock | |||
452 | ReceivedOfflineNotifications = new List<UUID>(); | 454 | ReceivedOfflineNotifications = new List<UUID>(); |
453 | ReceivedOnlineNotifications = new List<UUID>(); | 455 | ReceivedOnlineNotifications = new List<UUID>(); |
454 | ReceivedFriendshipTerminations = new List<UUID>(); | 456 | ReceivedFriendshipTerminations = new List<UUID>(); |
457 | |||
458 | SentImageDataPackets = new List<ImageDataPacket>(); | ||
459 | SentImagePacketPackets = new List<ImagePacketPacket>(); | ||
460 | SentImageNotInDatabasePackets = new List<ImageNotInDatabasePacket>(); | ||
455 | } | 461 | } |
456 | 462 | ||
457 | /// <summary> | 463 | /// <summary> |
@@ -804,7 +810,7 @@ namespace OpenSim.Tests.Common.Mock | |||
804 | im.ImageData.Data = ImageData; | 810 | im.ImageData.Data = ImageData; |
805 | im.ImageID.Codec = imageCodec; | 811 | im.ImageID.Codec = imageCodec; |
806 | im.Header.Zerocoded = true; | 812 | im.Header.Zerocoded = true; |
807 | sentdatapkt.Add(im); | 813 | SentImageDataPackets.Add(im); |
808 | } | 814 | } |
809 | 815 | ||
810 | public void SendImageNextPart(ushort partNumber, UUID imageUuid, byte[] imageData) | 816 | public void SendImageNextPart(ushort partNumber, UUID imageUuid, byte[] imageData) |
@@ -814,11 +820,15 @@ namespace OpenSim.Tests.Common.Mock | |||
814 | im.ImageID.Packet = partNumber; | 820 | im.ImageID.Packet = partNumber; |
815 | im.ImageID.ID = imageUuid; | 821 | im.ImageID.ID = imageUuid; |
816 | im.ImageData.Data = imageData; | 822 | im.ImageData.Data = imageData; |
817 | sentpktpkt.Add(im); | 823 | SentImagePacketPackets.Add(im); |
818 | } | 824 | } |
819 | 825 | ||
820 | public void SendImageNotFound(UUID imageid) | 826 | public void SendImageNotFound(UUID imageid) |
821 | { | 827 | { |
828 | ImageNotInDatabasePacket p = new ImageNotInDatabasePacket(); | ||
829 | p.ImageID.ID = imageid; | ||
830 | |||
831 | SentImageNotInDatabasePackets.Add(p); | ||
822 | } | 832 | } |
823 | 833 | ||
824 | public void SendShutdownConnectionNotice() | 834 | public void SendShutdownConnectionNotice() |
@@ -942,6 +952,10 @@ namespace OpenSim.Tests.Common.Mock | |||
942 | { | 952 | { |
943 | } | 953 | } |
944 | 954 | ||
955 | public void SendTelehubInfo(UUID ObjectID, string ObjectName, Vector3 ObjectPos, Quaternion ObjectRot, List<Vector3> SpawnPoint) | ||
956 | { | ||
957 | } | ||
958 | |||
945 | public void SendEstateList(UUID invoice, int code, UUID[] Data, uint estateID) | 959 | public void SendEstateList(UUID invoice, int code, UUID[] Data, uint estateID) |
946 | { | 960 | { |
947 | } | 961 | } |