diff options
author | Diva Canto | 2010-01-10 21:00:03 -0800 |
---|---|---|
committer | Diva Canto | 2010-01-10 21:00:03 -0800 |
commit | cddd48aeeaee98d14fd4ae887cdf32abc6110c40 (patch) | |
tree | 139f66b5da9e23db4ab65b74ebdd1c06bced11f0 /OpenSim/Tests | |
parent | All Framework.Communications.Clients and Framework.Communications.Services de... (diff) | |
download | opensim-SC_OLD-cddd48aeeaee98d14fd4ae887cdf32abc6110c40.zip opensim-SC_OLD-cddd48aeeaee98d14fd4ae887cdf32abc6110c40.tar.gz opensim-SC_OLD-cddd48aeeaee98d14fd4ae887cdf32abc6110c40.tar.bz2 opensim-SC_OLD-cddd48aeeaee98d14fd4ae887cdf32abc6110c40.tar.xz |
Some more unnecessary things deleted in Framework.Communications.
Diffstat (limited to 'OpenSim/Tests')
-rw-r--r-- | OpenSim/Tests/Common/Mock/MockUserService.cs | 149 | ||||
-rw-r--r-- | OpenSim/Tests/Common/Mock/TestCommunicationsManager.cs | 5 |
2 files changed, 0 insertions, 154 deletions
diff --git a/OpenSim/Tests/Common/Mock/MockUserService.cs b/OpenSim/Tests/Common/Mock/MockUserService.cs deleted file mode 100644 index 396ef25..0000000 --- a/OpenSim/Tests/Common/Mock/MockUserService.cs +++ /dev/null | |||
@@ -1,149 +0,0 @@ | |||
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 | |||
28 | using System; | ||
29 | using System.Collections.Generic; | ||
30 | using OpenMetaverse; | ||
31 | using OpenSim.Framework; | ||
32 | using OpenSim.Framework.Communications; | ||
33 | using OpenSim.Framework.Communications.Cache; | ||
34 | using OpenSim.Services.Interfaces; | ||
35 | |||
36 | namespace OpenSim.Tests.Common | ||
37 | { | ||
38 | public class MockUserService : IUserService | ||
39 | { | ||
40 | public void AddTemporaryUserProfile(UserProfileData userProfile) | ||
41 | { | ||
42 | throw new NotImplementedException(); | ||
43 | } | ||
44 | |||
45 | public UserProfileData GetUserProfile(string firstName, string lastName) | ||
46 | { | ||
47 | throw new NotImplementedException(); | ||
48 | } | ||
49 | |||
50 | public UserProfileData GetUserProfile(UUID userId) | ||
51 | { | ||
52 | throw new NotImplementedException(); | ||
53 | } | ||
54 | |||
55 | public UserProfileData GetUserProfile(Uri uri) | ||
56 | { | ||
57 | UserProfileData userProfile = new UserProfileData(); | ||
58 | |||
59 | // userProfile.ID = new UUID(Util.GetHashGuid(uri.ToString(), AssetCache.AssetInfo.Secret)); | ||
60 | |||
61 | return userProfile; | ||
62 | } | ||
63 | |||
64 | public Uri GetUserUri(UserProfileData userProfile) | ||
65 | { | ||
66 | throw new NotImplementedException(); | ||
67 | } | ||
68 | |||
69 | public UserAgentData GetAgentByUUID(UUID userId) | ||
70 | { | ||
71 | throw new NotImplementedException(); | ||
72 | } | ||
73 | |||
74 | public void ClearUserAgent(UUID avatarID) | ||
75 | { | ||
76 | throw new NotImplementedException(); | ||
77 | } | ||
78 | |||
79 | public List<AvatarPickerAvatar> GenerateAgentPickerRequestResponse(UUID QueryID, string Query) | ||
80 | { | ||
81 | throw new NotImplementedException(); | ||
82 | } | ||
83 | |||
84 | public UserProfileData SetupMasterUser(string firstName, string lastName) | ||
85 | { | ||
86 | throw new NotImplementedException(); | ||
87 | } | ||
88 | |||
89 | public UserProfileData SetupMasterUser(string firstName, string lastName, string password) | ||
90 | { | ||
91 | throw new NotImplementedException(); | ||
92 | } | ||
93 | |||
94 | public UserProfileData SetupMasterUser(UUID userId) | ||
95 | { | ||
96 | throw new NotImplementedException(); | ||
97 | } | ||
98 | |||
99 | public bool UpdateUserProfile(UserProfileData data) | ||
100 | { | ||
101 | throw new NotImplementedException(); | ||
102 | } | ||
103 | |||
104 | public void AddNewUserFriend(UUID friendlistowner, UUID friend, uint perms) | ||
105 | { | ||
106 | throw new NotImplementedException(); | ||
107 | } | ||
108 | |||
109 | public void RemoveUserFriend(UUID friendlistowner, UUID friend) | ||
110 | { | ||
111 | throw new NotImplementedException(); | ||
112 | } | ||
113 | |||
114 | public void UpdateUserFriendPerms(UUID friendlistowner, UUID friend, uint perms) | ||
115 | { | ||
116 | throw new NotImplementedException(); | ||
117 | } | ||
118 | |||
119 | public void LogOffUser(UUID userid, UUID regionid, ulong regionhandle, Vector3 position, Vector3 lookat) | ||
120 | { | ||
121 | throw new NotImplementedException(); | ||
122 | } | ||
123 | |||
124 | public void LogOffUser(UUID userid, UUID regionid, ulong regionhandle, float posx, float posy, float posz) | ||
125 | { | ||
126 | throw new NotImplementedException(); | ||
127 | } | ||
128 | |||
129 | public List<FriendListItem> GetUserFriendList(UUID friendlistowner) | ||
130 | { | ||
131 | throw new NotImplementedException(); | ||
132 | } | ||
133 | |||
134 | public bool VerifySession(UUID userID, UUID sessionID) | ||
135 | { | ||
136 | return true; | ||
137 | } | ||
138 | |||
139 | public void SetInventoryService(IInventoryService inv) | ||
140 | { | ||
141 | throw new NotImplementedException(); | ||
142 | } | ||
143 | |||
144 | public virtual bool AuthenticateUserByPassword(UUID userID, string password) | ||
145 | { | ||
146 | throw new NotImplementedException(); | ||
147 | } | ||
148 | } | ||
149 | } | ||
diff --git a/OpenSim/Tests/Common/Mock/TestCommunicationsManager.cs b/OpenSim/Tests/Common/Mock/TestCommunicationsManager.cs index fccc282..d4cdcd6 100644 --- a/OpenSim/Tests/Common/Mock/TestCommunicationsManager.cs +++ b/OpenSim/Tests/Common/Mock/TestCommunicationsManager.cs | |||
@@ -58,11 +58,6 @@ namespace OpenSim.Tests.Common.Mock | |||
58 | : base(serversInfo, null) | 58 | : base(serversInfo, null) |
59 | { | 59 | { |
60 | 60 | ||
61 | LocalUserServices lus = new LocalUserServices(991, 992, this); | ||
62 | lus.AddPlugin(new TemporaryUserProfilePlugin()); | ||
63 | m_userDataPlugin = new TestUserDataPlugin(); | ||
64 | lus.AddPlugin(m_userDataPlugin); | ||
65 | |||
66 | } | 61 | } |
67 | } | 62 | } |
68 | } | 63 | } |