Allow at max one Remove operation to fail in tests.
[mono.git] / mcs / class / corlib / System.Security.AccessControl / DiscretionaryAcl.cs
index 39a7fd511c1ae339c91a8adfe3df08069733fa06..3538fc415d9f038bcf8eb92243b02fed2531713a 100644 (file)
@@ -1,10 +1,11 @@
 //
 // System.Security.AccessControl.DiscretionaryAcl implementation
 //
-// Author:
+// Authors:
 //     Dick Porter  <dick@ximian.com>
+//     Atsushi Enomoto  <atsushi@ximian.com>
 //
-// Copyright (C) 2006 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2006-2007 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
-
 using System.Security.Principal;
 
 namespace System.Security.AccessControl {
        public sealed class DiscretionaryAcl : CommonAcl
        {
+//             RawAcl raw_acl;
+               
                public DiscretionaryAcl (bool isContainer, bool isDS,
                                         int capacity)
+                       : this (isContainer, isDS, 0, capacity)
                {
                        throw new NotImplementedException ();
                }
                
                public DiscretionaryAcl (bool isContainer, bool isDS,
                                         RawAcl rawAcl)
+                       : base (isContainer, isDS, 0)
                {
-                       throw new NotImplementedException ();
+//                     this.raw_acl = rawAcl;
                }
                
                public DiscretionaryAcl (bool isContainer, bool isDS,
                                         byte revision, int capacity)
+                       : base (isContainer, isDS, revision, capacity)
                {
-                       throw new NotImplementedException ();
                }
-               
+
                public void AddAccess (AccessControlType accessType,
                                       SecurityIdentifier sid, int accessMask,
                                       InheritanceFlags inheritanceFlags,
                                       PropagationFlags propagationFlags)
                {
                        throw new NotImplementedException ();
+                       // CommonAce?
                }
                
                public void AddAccess (AccessControlType accessType,
@@ -67,6 +71,7 @@ namespace System.Security.AccessControl {
                                       Guid objectType,
                                       Guid inheritedObjectType)
                {
+                       // ObjectAce?
                        throw new NotImplementedException ();
                }
                
@@ -135,4 +140,3 @@ namespace System.Security.AccessControl {
        }
 }
 
-#endif