diff options
author | Melanie | 2012-01-21 19:52:33 +0000 |
---|---|---|
committer | Melanie | 2012-01-21 19:52:33 +0000 |
commit | ba3b0c69f11aaa3b4305cddd57099e98325a146d (patch) | |
tree | cf70355a8cac0579354e67eeb3632a6706d41012 /OpenSim/Tests/Common/Mock/TestClient.cs | |
parent | Add some logging (diff) | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-ba3b0c69f11aaa3b4305cddd57099e98325a146d.zip opensim-SC-ba3b0c69f11aaa3b4305cddd57099e98325a146d.tar.gz opensim-SC-ba3b0c69f11aaa3b4305cddd57099e98325a146d.tar.bz2 opensim-SC-ba3b0c69f11aaa3b4305cddd57099e98325a146d.tar.xz |
Merge branch 'master' into careminster
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 c8b1936..b06bff6 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 | ||
@@ -453,6 +455,10 @@ namespace OpenSim.Tests.Common.Mock | |||
453 | ReceivedOfflineNotifications = new List<UUID>(); | 455 | ReceivedOfflineNotifications = new List<UUID>(); |
454 | ReceivedOnlineNotifications = new List<UUID>(); | 456 | ReceivedOnlineNotifications = new List<UUID>(); |
455 | ReceivedFriendshipTerminations = new List<UUID>(); | 457 | ReceivedFriendshipTerminations = new List<UUID>(); |
458 | |||
459 | SentImageDataPackets = new List<ImageDataPacket>(); | ||
460 | SentImagePacketPackets = new List<ImagePacketPacket>(); | ||
461 | SentImageNotInDatabasePackets = new List<ImageNotInDatabasePacket>(); | ||
456 | } | 462 | } |
457 | 463 | ||
458 | /// <summary> | 464 | /// <summary> |
@@ -805,7 +811,7 @@ namespace OpenSim.Tests.Common.Mock | |||
805 | im.ImageData.Data = ImageData; | 811 | im.ImageData.Data = ImageData; |
806 | im.ImageID.Codec = imageCodec; | 812 | im.ImageID.Codec = imageCodec; |
807 | im.Header.Zerocoded = true; | 813 | im.Header.Zerocoded = true; |
808 | sentdatapkt.Add(im); | 814 | SentImageDataPackets.Add(im); |
809 | } | 815 | } |
810 | 816 | ||
811 | public void SendImageNextPart(ushort partNumber, UUID imageUuid, byte[] imageData) | 817 | public void SendImageNextPart(ushort partNumber, UUID imageUuid, byte[] imageData) |
@@ -815,11 +821,15 @@ namespace OpenSim.Tests.Common.Mock | |||
815 | im.ImageID.Packet = partNumber; | 821 | im.ImageID.Packet = partNumber; |
816 | im.ImageID.ID = imageUuid; | 822 | im.ImageID.ID = imageUuid; |
817 | im.ImageData.Data = imageData; | 823 | im.ImageData.Data = imageData; |
818 | sentpktpkt.Add(im); | 824 | SentImagePacketPackets.Add(im); |
819 | } | 825 | } |
820 | 826 | ||
821 | public void SendImageNotFound(UUID imageid) | 827 | public void SendImageNotFound(UUID imageid) |
822 | { | 828 | { |
829 | ImageNotInDatabasePacket p = new ImageNotInDatabasePacket(); | ||
830 | p.ImageID.ID = imageid; | ||
831 | |||
832 | SentImageNotInDatabasePackets.Add(p); | ||
823 | } | 833 | } |
824 | 834 | ||
825 | public void SendShutdownConnectionNotice() | 835 | public void SendShutdownConnectionNotice() |
@@ -947,6 +957,10 @@ namespace OpenSim.Tests.Common.Mock | |||
947 | { | 957 | { |
948 | } | 958 | } |
949 | 959 | ||
960 | public void SendTelehubInfo(UUID ObjectID, string ObjectName, Vector3 ObjectPos, Quaternion ObjectRot, List<Vector3> SpawnPoint) | ||
961 | { | ||
962 | } | ||
963 | |||
950 | public void SendEstateList(UUID invoice, int code, UUID[] Data, uint estateID) | 964 | public void SendEstateList(UUID invoice, int code, UUID[] Data, uint estateID) |
951 | { | 965 | { |
952 | } | 966 | } |