AssetCacheTests.cs 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. /*
  2. * Copyright (c) Contributors, http://opensimulator.org/
  3. * See CONTRIBUTORS.TXT for a full list of copyright holders.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. * * Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * * Neither the name of the OpenSimulator Project nor the
  13. * names of its contributors may be used to endorse or promote products
  14. * derived from this software without specific prior written permission.
  15. *
  16. * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
  17. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  18. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  19. * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
  20. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  21. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  22. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  23. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  25. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. */
  27. using System;
  28. using System.Collections.Generic;
  29. using System.Threading;
  30. using NUnit.Framework;
  31. using NUnit.Framework.SyntaxHelpers;
  32. using OpenMetaverse;
  33. using OpenSim.Framework;
  34. using OpenSim.Framework.Communications.Cache;
  35. using OpenSim.Services.Interfaces;
  36. using OpenSim.Tests.Common.Mock;
  37. namespace OpenSim.Framework.Communications.Tests
  38. {
  39. /// <summary>
  40. /// Asset cache tests
  41. /// </summary>
  42. [TestFixture]
  43. public class AssetCacheTests
  44. {
  45. private class FakeUserService : IUserService
  46. {
  47. public void AddTemporaryUserProfile(UserProfileData userProfile)
  48. {
  49. throw new NotImplementedException();
  50. }
  51. public UserProfileData GetUserProfile(string firstName, string lastName)
  52. {
  53. throw new NotImplementedException();
  54. }
  55. public UserProfileData GetUserProfile(UUID userId)
  56. {
  57. throw new NotImplementedException();
  58. }
  59. public UserProfileData GetUserProfile(Uri uri)
  60. {
  61. UserProfileData userProfile = new UserProfileData();
  62. // userProfile.ID = new UUID(Util.GetHashGuid(uri.ToString(), AssetCache.AssetInfo.Secret));
  63. return userProfile;
  64. }
  65. public Uri GetUserUri(UserProfileData userProfile)
  66. {
  67. throw new NotImplementedException();
  68. }
  69. public UserAgentData GetAgentByUUID(UUID userId)
  70. {
  71. throw new NotImplementedException();
  72. }
  73. public void ClearUserAgent(UUID avatarID)
  74. {
  75. throw new NotImplementedException();
  76. }
  77. public List<AvatarPickerAvatar> GenerateAgentPickerRequestResponse(UUID QueryID, string Query)
  78. {
  79. throw new NotImplementedException();
  80. }
  81. public UserProfileData SetupMasterUser(string firstName, string lastName)
  82. {
  83. throw new NotImplementedException();
  84. }
  85. public UserProfileData SetupMasterUser(string firstName, string lastName, string password)
  86. {
  87. throw new NotImplementedException();
  88. }
  89. public UserProfileData SetupMasterUser(UUID userId)
  90. {
  91. throw new NotImplementedException();
  92. }
  93. public bool UpdateUserProfile(UserProfileData data)
  94. {
  95. throw new NotImplementedException();
  96. }
  97. public void AddNewUserFriend(UUID friendlistowner, UUID friend, uint perms)
  98. {
  99. throw new NotImplementedException();
  100. }
  101. public void RemoveUserFriend(UUID friendlistowner, UUID friend)
  102. {
  103. throw new NotImplementedException();
  104. }
  105. public void UpdateUserFriendPerms(UUID friendlistowner, UUID friend, uint perms)
  106. {
  107. throw new NotImplementedException();
  108. }
  109. public void LogOffUser(UUID userid, UUID regionid, ulong regionhandle, Vector3 position, Vector3 lookat)
  110. {
  111. throw new NotImplementedException();
  112. }
  113. public void LogOffUser(UUID userid, UUID regionid, ulong regionhandle, float posx, float posy, float posz)
  114. {
  115. throw new NotImplementedException();
  116. }
  117. public List<FriendListItem> GetUserFriendList(UUID friendlistowner)
  118. {
  119. throw new NotImplementedException();
  120. }
  121. public bool VerifySession(UUID userID, UUID sessionID)
  122. {
  123. return true;
  124. }
  125. public void SetInventoryService(IInventoryService inv)
  126. {
  127. throw new NotImplementedException();
  128. }
  129. }
  130. }
  131. }