From 5f18f2ce6a4308fe30de8b7816058bd5d4b962ca Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 1 Nov 2015 19:37:14 +0100 Subject: More EntityTransferContext plumbing --- OpenSim/Framework/Tests/AgentCircuitDataTest.cs | 3 ++- OpenSim/Framework/Tests/MundaneFrameworkTests.cs | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'OpenSim/Framework/Tests') diff --git a/OpenSim/Framework/Tests/AgentCircuitDataTest.cs b/OpenSim/Framework/Tests/AgentCircuitDataTest.cs index a2a2eea..e8ae728 100644 --- a/OpenSim/Framework/Tests/AgentCircuitDataTest.cs +++ b/OpenSim/Framework/Tests/AgentCircuitDataTest.cs @@ -311,8 +311,9 @@ namespace OpenSim.Framework.Tests Agent1Data.SessionID = SessionId; Agent1Data.startpos = StartPos; + EntityTransferContext ctx = new EntityTransferContext(); OSDMap map2; - OSDMap map = Agent1Data.PackAgentCircuitData(-1); + OSDMap map = Agent1Data.PackAgentCircuitData(ctx); try { string str = OSDParser.SerializeJsonString(map); diff --git a/OpenSim/Framework/Tests/MundaneFrameworkTests.cs b/OpenSim/Framework/Tests/MundaneFrameworkTests.cs index 08f2af5..d8072c7 100644 --- a/OpenSim/Framework/Tests/MundaneFrameworkTests.cs +++ b/OpenSim/Framework/Tests/MundaneFrameworkTests.cs @@ -116,7 +116,8 @@ namespace OpenSim.Framework.Tests position2 = new AgentPosition(); Assert.IsFalse(position2.AgentID == position1.AgentID, "Test Error, position2 should be a blank uninitialized AgentPosition"); - position2.Unpack(position1.Pack(), null); + EntityTransferContext ctx = new EntityTransferContext(); + position2.Unpack(position1.Pack(ctx), null, ctx); Assert.IsTrue(position2.AgentID == position1.AgentID, "Agent ID didn't unpack the same way it packed"); Assert.IsTrue(position2.Position == position1.Position, "Position didn't unpack the same way it packed"); @@ -305,4 +306,4 @@ namespace OpenSim.Framework.Tests } } -} \ No newline at end of file +} -- cgit v1.1