New test.
[mono.git] / mcs / class / System.Web / System.Web / HttpBrowserCapabilities.cs
index d0377760377aaa1e6e35ffd73a06814ac42373f6..3276fe904cdc8a77bacda88300f941fba57f8e5c 100644 (file)
@@ -5,9 +5,7 @@
 //   Patrik Torstensson (Patrik.Torstensson@labs2.com)
 //   Gonzalo Paniagua Javier (gonzalo@ximian.com)
 //
-// (c) 2003 Novell, Inc. (http://www.novell.com)
-//
-
+// Copyright (C) 2003,2005 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
@@ -28,8 +26,9 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;
-using System.Collections;
+
+#if NET_2_0
+using System.Security.Permissions;
 using System.Web.Configuration;
 using System.Web.UI;
 
@@ -38,11 +37,26 @@ namespace System.Web
        //
        // The real implementation lives in System.Web/BrowserCapabilities.cs
        //
-       public partial class HttpBrowserCapabilities : HttpCapabilitiesBase
+
+       // CAS
+       [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
+       [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
+       public class HttpBrowserCapabilities : HttpCapabilitiesBase, IFilterResolutionService
        {
                public HttpBrowserCapabilities ()
                {
                }
+
+               bool IFilterResolutionService.EvaluateFilter (string filterName)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               int IFilterResolutionService.CompareFilters (string filter1, string filter2)
+               {
+                       throw new NotImplementedException ();
+               }
        }
 }
 
+#endif