WASM: Fix System.Net.Primitives and tests (#39748)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Thu, 23 Jul 2020 14:43:07 +0000 (16:43 +0200)
committerGitHub <noreply@github.com>
Thu, 23 Jul 2020 14:43:07 +0000 (16:43 +0200)
commit7de187a2a28ce02bf7000bdbf3f2c82092ef643b
tree5760f663038ba07c0ac10db24055577f8e593fd0
parent30e6b797883a49afc57954bd0dc73e0d124e5aa0
WASM: Fix System.Net.Primitives and tests (#39748)

Add HostInformationPal and InterfaceInfoPal implementations for Browser.

In CookiePortTest.cs use example.com instead of localhost for the tests since Browser uses `localhost` as the `Environment.MachineName` and that changes the test values.

Allows the tests to run on WebAssembly:
```
System.Net.Primitives.Pal.Tests: Tests run: 60, Errors: 0, Failures: 0, Skipped: 0. Time: 0.15872s
System.Net.Primitives.Functional.Tests: Tests run: 2620, Errors: 0, Failures: 0, Skipped: 1. Time: 3.145804s
```
src/libraries/Common/src/System/Net/NetworkInformation/HostInformationPal.Browser.cs [new file with mode: 0644]
src/libraries/Common/src/System/Net/NetworkInformation/InterfaceInfoPal.Browser.cs [new file with mode: 0644]
src/libraries/System.Net.Primitives/src/System.Net.Primitives.csproj
src/libraries/System.Net.Primitives/tests/FunctionalTests/CookieTest/CookiePortTest.cs
src/libraries/System.Net.Primitives/tests/FunctionalTests/SocketAddressTest.cs
src/libraries/System.Net.Primitives/tests/PalTests/System.Net.Primitives.Pal.Tests.csproj
src/libraries/tests.proj