diff options
author | Teravus Ovares (Dan Olivares) | 2009-10-30 19:13:57 -0400 |
---|---|---|
committer | Teravus Ovares (Dan Olivares) | 2009-10-30 19:13:57 -0400 |
commit | 5101f688ee887d5fa67a573591ec3b6a43c4e50b (patch) | |
tree | ce7ccf37f96563f0019b59cb7a2ce0c05aa726b2 /OpenSim/Framework/ACL.cs | |
parent | * Adding Tests for OpenSim.Framework.Cache. Some test cases disabled until m... (diff) | |
download | opensim-SC_OLD-5101f688ee887d5fa67a573591ec3b6a43c4e50b.zip opensim-SC_OLD-5101f688ee887d5fa67a573591ec3b6a43c4e50b.tar.gz opensim-SC_OLD-5101f688ee887d5fa67a573591ec3b6a43c4e50b.tar.bz2 opensim-SC_OLD-5101f688ee887d5fa67a573591ec3b6a43c4e50b.tar.xz |
* Add LocklessQueueTests. One Test is commented out because it fails. It should probably work.. but I'm awaiting clarification.
Diffstat (limited to 'OpenSim/Framework/ACL.cs')
-rw-r--r-- | OpenSim/Framework/ACL.cs | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/OpenSim/Framework/ACL.cs b/OpenSim/Framework/ACL.cs index 3b1c0f0..f76e8b7 100644 --- a/OpenSim/Framework/ACL.cs +++ b/OpenSim/Framework/ACL.cs | |||
@@ -248,35 +248,5 @@ namespace OpenSim.Framework | |||
248 | 248 | ||
249 | #endregion | 249 | #endregion |
250 | 250 | ||
251 | #region Tests | 251 | |
252 | |||
253 | /// <summary> | ||
254 | /// ACL Test class | ||
255 | /// </summary> | ||
256 | internal class ACLTester | ||
257 | { | ||
258 | public ACLTester() | ||
259 | { | ||
260 | ACL acl = new ACL(); | ||
261 | |||
262 | Role Guests = new Role("Guests"); | ||
263 | acl.AddRole(Guests); | ||
264 | |||
265 | Role[] parents = new Role[0]; | ||
266 | parents[0] = Guests; | ||
267 | |||
268 | Role JoeGuest = new Role("JoeGuest", parents); | ||
269 | acl.AddRole(JoeGuest); | ||
270 | |||
271 | Resource CanBuild = new Resource("CanBuild"); | ||
272 | acl.AddResource(CanBuild); | ||
273 | |||
274 | |||
275 | acl.GrantPermission("Guests", "CanBuild"); | ||
276 | |||
277 | acl.HasPermission("JoeGuest", "CanBuild"); | ||
278 | } | ||
279 | } | ||
280 | |||
281 | #endregion | ||
282 | } \ No newline at end of file | 252 | } \ No newline at end of file |