diff options
author | Justin Clark-Casey (justincc) | 2012-01-19 21:57:12 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-01-19 21:57:12 +0000 |
commit | d38e2c0c91b684d54974865d3ac2fb88c3354c21 (patch) | |
tree | 43a517d5df2b8b6d9444446c9d23ad7b394a883d /OpenSim/Tests | |
parent | refactor: separate out common parts of LLImageManagerTests (diff) | |
download | opensim-SC_OLD-d38e2c0c91b684d54974865d3ac2fb88c3354c21.zip opensim-SC_OLD-d38e2c0c91b684d54974865d3ac2fb88c3354c21.tar.gz opensim-SC_OLD-d38e2c0c91b684d54974865d3ac2fb88c3354c21.tar.bz2 opensim-SC_OLD-d38e2c0c91b684d54974865d3ac2fb88c3354c21.tar.xz |
Add image not in database test for LLImageManager
Diffstat (limited to 'OpenSim/Tests')
-rw-r--r-- | OpenSim/Tests/Common/Mock/TestClient.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs index 2fc6572..fad757a 100644 --- a/OpenSim/Tests/Common/Mock/TestClient.cs +++ b/OpenSim/Tests/Common/Mock/TestClient.cs | |||
@@ -60,6 +60,7 @@ namespace OpenSim.Tests.Common.Mock | |||
60 | 60 | ||
61 | public List<ImageDataPacket> SentImageDataPackets { get; private set; } | 61 | public List<ImageDataPacket> SentImageDataPackets { get; private set; } |
62 | public List<ImagePacketPacket> SentImagePacketPackets { get; private set; } | 62 | public List<ImagePacketPacket> SentImagePacketPackets { get; private set; } |
63 | public List<ImageNotInDatabasePacket> SentImageNotInDatabasePackets { get; private set; } | ||
63 | 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 |
@@ -455,6 +456,7 @@ namespace OpenSim.Tests.Common.Mock | |||
455 | 456 | ||
456 | SentImageDataPackets = new List<ImageDataPacket>(); | 457 | SentImageDataPackets = new List<ImageDataPacket>(); |
457 | SentImagePacketPackets = new List<ImagePacketPacket>(); | 458 | SentImagePacketPackets = new List<ImagePacketPacket>(); |
459 | SentImageNotInDatabasePackets = new List<ImageNotInDatabasePacket>(); | ||
458 | } | 460 | } |
459 | 461 | ||
460 | /// <summary> | 462 | /// <summary> |
@@ -822,6 +824,10 @@ namespace OpenSim.Tests.Common.Mock | |||
822 | 824 | ||
823 | public void SendImageNotFound(UUID imageid) | 825 | public void SendImageNotFound(UUID imageid) |
824 | { | 826 | { |
827 | ImageNotInDatabasePacket p = new ImageNotInDatabasePacket(); | ||
828 | p.ImageID.ID = imageid; | ||
829 | |||
830 | SentImageNotInDatabasePackets.Add(p); | ||
825 | } | 831 | } |
826 | 832 | ||
827 | public void SendShutdownConnectionNotice() | 833 | public void SendShutdownConnectionNotice() |