From a7cbb9edc98fabc6d2705d69310f4356e84c7596 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Mon, 29 Apr 2013 20:50:49 +0100
Subject: Add regression test for offer, accept and subsequent receiver delete
of an item offered via instant message.
---
OpenSim/Tests/Common/Mock/TestClient.cs | 12 ++++++++++++
1 file changed, 12 insertions(+)
(limited to 'OpenSim/Tests/Common/Mock/TestClient.cs')
diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs
index d26e3f7..b7a7463 100644
--- a/OpenSim/Tests/Common/Mock/TestClient.cs
+++ b/OpenSim/Tests/Common/Mock/TestClient.cs
@@ -484,6 +484,18 @@ namespace OpenSim.Tests.Common.Mock
OnCompleteMovementToRegion(this, true);
}
+ ///
+ /// Emulate sending an IM from the viewer to the simulator.
+ ///
+ ///
+ public void HandleImprovedInstantMessage(GridInstantMessage im)
+ {
+ ImprovedInstantMessage handlerInstantMessage = OnInstantMessage;
+
+ if (handlerInstantMessage != null)
+ handlerInstantMessage(this, im);
+ }
+
public virtual void ActivateGesture(UUID assetId, UUID gestureId)
{
}
--
cgit v1.1
From 0beccf23c0c2e7b2420f4f150d5f2566f0d63370 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Mon, 29 Apr 2013 21:11:44 +0100
Subject: Add regression test for inventory item give, reject and subsequent
trash folder purge by receiver.
This commit also actually adds the InventoryTransferModuleTests file which I previously forgot
---
OpenSim/Tests/Common/Mock/TestClient.cs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Tests/Common/Mock/TestClient.cs')
diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs
index b7a7463..41402a4 100644
--- a/OpenSim/Tests/Common/Mock/TestClient.cs
+++ b/OpenSim/Tests/Common/Mock/TestClient.cs
@@ -61,6 +61,7 @@ namespace OpenSim.Tests.Common.Mock
// Test client specific events - for use by tests to implement some IClientAPI behaviour.
public event Action OnReceivedMoveAgentIntoRegion;
public event Action OnTestClientInformClientOfNeighbour;
+ public event Action OnReceivedInstantMessage;
// disable warning: public events, part of the public API
#pragma warning disable 67
@@ -550,7 +551,8 @@ namespace OpenSim.Tests.Common.Mock
public void SendInstantMessage(GridInstantMessage im)
{
-
+ if (OnReceivedInstantMessage != null)
+ OnReceivedInstantMessage(im);
}
public void SendGenericMessage(string method, UUID invoice, List message)
--
cgit v1.1