-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle platform not supported during test discovery.
When Browser is doing test discovery, it now more eagerly reads some static initialization that we were previously depending on conditionals preventing. This changes the initialization to handle platform not supported in more scenarios.
- Loading branch information
Showing
7 changed files
with
70 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/libraries/System.Security.Cryptography/tests/DefaultECDiffieHellmanProvider.Browser.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Runtime.InteropServices; | ||
|
||
namespace System.Security.Cryptography.EcDiffieHellman.Tests | ||
{ | ||
public partial class ECDiffieHellmanProvider : IECDiffieHellmanProvider | ||
{ | ||
public bool IsCurveValid(Oid oid) => false; | ||
public bool ExplicitCurvesSupported => false; | ||
public bool CanDeriveNewPublicKey => false; | ||
public bool SupportsRawDerivation => false; | ||
public bool SupportsSha3 => false; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/libraries/System.Security.Cryptography/tests/DefaultECDsaProvider.Browser.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Runtime.InteropServices; | ||
|
||
namespace System.Security.Cryptography.EcDsa.Tests | ||
{ | ||
public partial class ECDsaProvider : IECDsaProvider | ||
{ | ||
public bool IsCurveValid(Oid oid) => false; | ||
public bool ExplicitCurvesSupported => false; | ||
private static bool IsValueOrFriendlyNameValid(string friendlyNameOrValue) => false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters