diff options
author | Justin Clarke Casey | 2009-01-12 18:45:03 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-01-12 18:45:03 +0000 |
commit | d4d2c1959481d6d5e04a646c0b34f954b1bc727d (patch) | |
tree | 1fc9425201a226b77805a4709200f5ded14738e4 /OpenSim/Region/ClientStack/LindenUDP/Tests/PacketHandlerTests.cs | |
parent | * Apply http://opensimulator.org/mantis/view.php?id=2913 (diff) | |
download | opensim-SC-d4d2c1959481d6d5e04a646c0b34f954b1bc727d.zip opensim-SC-d4d2c1959481d6d5e04a646c0b34f954b1bc727d.tar.gz opensim-SC-d4d2c1959481d6d5e04a646c0b34f954b1bc727d.tar.bz2 opensim-SC-d4d2c1959481d6d5e04a646c0b34f954b1bc727d.tar.xz |
* Extend PacketHandlerTest to fire in a packet.
* Can't test result yet since the Client thread handles it with unpredictable timing
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/Tests/PacketHandlerTests.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/Tests/PacketHandlerTests.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/Tests/PacketHandlerTests.cs b/OpenSim/Region/ClientStack/LindenUDP/Tests/PacketHandlerTests.cs index 305a620..ac5175c 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/Tests/PacketHandlerTests.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/Tests/PacketHandlerTests.cs | |||
@@ -27,7 +27,9 @@ | |||
27 | 27 | ||
28 | using Nini.Config; | 28 | using Nini.Config; |
29 | using NUnit.Framework; | 29 | using NUnit.Framework; |
30 | using NUnit.Framework.SyntaxHelpers; | ||
30 | using OpenMetaverse; | 31 | using OpenMetaverse; |
32 | using OpenMetaverse.Packets; | ||
31 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
32 | using OpenSim.Region.ClientStack.LindenUDP; | 34 | using OpenSim.Region.ClientStack.LindenUDP; |
33 | using OpenSim.Tests.Common.Mock; | 35 | using OpenSim.Tests.Common.Mock; |
@@ -63,7 +65,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests | |||
63 | AgentCircuitManager acm; | 65 | AgentCircuitManager acm; |
64 | SetupStack(new MockScene(), out testLLUDPServer, out testLLPacketServer, out acm); | 66 | SetupStack(new MockScene(), out testLLUDPServer, out testLLPacketServer, out acm); |
65 | 67 | ||
66 | new LLPacketHandler(new TestClient(agent), testLLPacketServer, new ClientStackUserSettings()); | 68 | ILLPacketHandler packetHandler |
69 | = new LLPacketHandler(new TestClient(agent), testLLPacketServer, new ClientStackUserSettings()); | ||
70 | |||
71 | packetHandler.InPacket(new AgentAnimationPacket()); | ||
72 | //Assert.That(Is.Not.Null(packetHandler.PacketQueue.Dequeue())); | ||
67 | } | 73 | } |
68 | 74 | ||
69 | /// <summary> | 75 | /// <summary> |