Imported Upstream version 3.10.0

Former-commit-id: 172c8e3c300b39d5785c7a3e8dfb08ebdbc1a99b
This commit is contained in:
Jo Shields
2014-10-04 11:27:48 +01:00
parent fe777c5c82
commit 8b9b85e7f5
970 changed files with 20242 additions and 31308 deletions

View File

@ -25,9 +25,7 @@ namespace MonoTests.System.Threading
{
public static void NoPrincipal ()
{
#if !TARGET_JVM // AppDomain.SetPrincipalPolicy not supported for TARGET_JVM
AppDomain.CurrentDomain.SetPrincipalPolicy (PrincipalPolicy.NoPrincipal);
#endif
IPrincipal p = Thread.CurrentPrincipal;
Assert.IsNull (p, "#1");
@ -39,7 +37,6 @@ namespace MonoTests.System.Threading
// in this case we can return to null
}
#if !TARGET_JVM // AppDomain.SetPrincipalPolicy not supported for TARGET_JVM
public static void UnauthenticatedPrincipal ()
{
AppDomain.CurrentDomain.SetPrincipalPolicy (PrincipalPolicy.UnauthenticatedPrincipal);
@ -76,7 +73,6 @@ namespace MonoTests.System.Threading
Assert.IsNotNull (Thread.CurrentPrincipal, "#7");
// in this case we can't return to null
}
#endif // TARGET_JVM
public static void CopyOnNewThread ()
{
@ -684,7 +680,6 @@ namespace MonoTests.System.Threading
}
}
#if !TARGET_JVM // AppDomain.SetPrincipalPolicy not supported for TARGET_JVM
[Test]
[Ignore ("see comment below.")]
public void CurrentPrincipal_PrincipalPolicy_UnauthenticatedPrincipal ()
@ -713,7 +708,6 @@ namespace MonoTests.System.Threading
t.Abort ();
}
}
#endif // TARGET_JVM
[Test]
public void IPrincipal_CopyOnNewThread ()