forked from dotnet/runtime
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect Unix paths on Unix and Dos&Unc paths on Windows (dotnet/corefx…
…#15925) * Uri: detect Unix path on Unix, detect Dos&Unc path on Windows * Update System.IO.Packaging/tests * Update System.Xml.XmlSchema.XmlSchemaValidatorApi.Tests * Update Common.Tests * Update System.Private.Uri.Functional.Tests * Update System.Private.Uri.ExtendedFunctional.Tests * Update System.Runtime/tests * Uri.MethodsTests.cs: comment out failing inputs * Restore uri minimal length of 3 * Require unix paths to start with a / * Allow Unix path file uri to start with '\' * FileWebRequestTest: revert extra slashes added (file:/// back to file://) * Uri: fix empty newHost bug and revert workaround in IriTest * Annotate PlatformSpecific tests * IdentityHelperTests: use file path that works on Windows and Linux * System.IO.Packaging/tests: rename s_LocalFile to s_fullPathToLocalFile * Uri: update comments on minimal Uri length check, don't check length twice on Windows * Use PlatformDetection.IsWindows * Ensure Roslyn gets rid of UnixPath checks on Windows by adding IsWindowsSystem (const bool) checks * Uri: Fix uapaot build by including Uri.Windows.cs * IdentityHelperTests: rename GetNormalizedUrlHash_Unix -> GetNormalizedUrlHash * Uri.MethodsTests: don't require GetHashCode to return different values when Uris only differ in case * s_IsWindowsSystem -> s_isWindowsSystem * Detect Dos and Unc paths on Unix * Update tests * Clean-up * Clean-up II * Clean-up III * Clean-up IV * Clean-up V * Move Flags.UnixPath to the end of the Flags enum Commit migrated from dotnet/corefx@7df6b74
- Loading branch information
1 parent
b8aa4c0
commit 7129659
Showing
15 changed files
with
289 additions
and
77 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace System | ||
{ | ||
public partial class Uri | ||
{ | ||
private const bool IsWindowsSystem = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace System | ||
{ | ||
public partial class Uri | ||
{ | ||
private const bool IsWindowsSystem = true; | ||
} | ||
} |
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
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
Oops, something went wrong.