aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Setup
diff options
context:
space:
mode:
authorMic Bowman2011-04-13 15:41:17 -0700
committerMic Bowman2011-04-13 15:41:17 -0700
commit590d20903c6dd596cb8ae3337065f955bd207b67 (patch)
treef6b60205fd58b03f03c9110a68b2036a3ef075d2 /OpenSim/Tests/Common/Setup
parentMerge branch 'queuetest' of ssh://opensimulator.org/var/git/opensim into queu... (diff)
parentremove packet monitoring debugging code (diff)
downloadopensim-SC-590d20903c6dd596cb8ae3337065f955bd207b67.zip
opensim-SC-590d20903c6dd596cb8ae3337065f955bd207b67.tar.gz
opensim-SC-590d20903c6dd596cb8ae3337065f955bd207b67.tar.bz2
opensim-SC-590d20903c6dd596cb8ae3337065f955bd207b67.tar.xz
Merge branch 'testmerge' into queuetest
Conflicts: OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
Diffstat (limited to '')
-rw-r--r--OpenSim/Tests/Common/Setup/AssetHelpers.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Tests/Common/Setup/AssetHelpers.cs b/OpenSim/Tests/Common/Setup/AssetHelpers.cs
index ff4423f..af66d7f 100644
--- a/OpenSim/Tests/Common/Setup/AssetHelpers.cs
+++ b/OpenSim/Tests/Common/Setup/AssetHelpers.cs
@@ -71,6 +71,21 @@ namespace OpenSim.Tests.Common
71 Encoding.ASCII.GetBytes(SceneObjectSerializer.ToOriginalXmlFormat(sog)), 71 Encoding.ASCII.GetBytes(SceneObjectSerializer.ToOriginalXmlFormat(sog)),
72 sog.OwnerID); 72 sog.OwnerID);
73 } 73 }
74
75 /// <summary>
76 /// Create an asset from the given scene object.
77 /// </summary>
78 /// <param name="assetUuid"></param>
79 /// <param name="coa"></param>
80 /// <returns></returns>
81 public static AssetBase CreateAsset(UUID assetUuid, CoalescedSceneObjects coa)
82 {
83 return CreateAsset(
84 assetUuid,
85 AssetType.Object,
86 Encoding.ASCII.GetBytes(CoalescedSceneObjectsSerializer.ToXml(coa)),
87 coa.CreatorId);
88 }
74 89
75 /// <summary> 90 /// <summary>
76 /// Create an asset from the given data. 91 /// Create an asset from the given data.