Imported Upstream version 6.8.0.80

Former-commit-id: 6c79e92bc868a64c146c9562ab817ef0ea9053a4
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-12-19 08:39:53 +00:00
parent 3d05ea281d
commit 665300eaa7
147 changed files with 450 additions and 3962 deletions

View File

@@ -0,0 +1,10 @@
using Xunit;
namespace System.Net.Http.Functional.Tests
{
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "NetEventSource is only part of .NET Core.")]
[SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "NetEventSource is only part of .NET Core.")]
public abstract class DiagnosticsTest : HttpClientTestBase
{
}
}

View File

@@ -0,0 +1,9 @@
using Xunit;
namespace System.Net.Http.Functional.Tests
{
[SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "We don't support BrotliStream yet.")]
public abstract class HttpClientHandler_Decompression_Test : HttpClientTestBase
{
}
}

View File

@@ -2,16 +2,15 @@ thisdir = class/System.Net.Http/FunctionalTests
SUBDIRS =
include ../../../build/rules.make
ASSEMBLY = System.Net.Http.FunctionalTests
LIBRARY = System.Net.Http.FunctionalTests.dll
NO_BUILD = yes
NO_INSTALL = yes
XTEST_LIB_REFS = System System.Core Facades/System.Threading.Tasks
XTEST_LIB_REFS = System System.Core Facades/System.Threading.Tasks System.Net.Http
USE_XTEST_REMOTE_EXECUTOR = YES
XTEST_LIB_FLAGS = /resource:../../System/Test/TestData/testservereku.contoso.com.pfx
the_assembly = $(topdir)/class/lib/$(PROFILE_DIRECTORY)/System.Net.Http.dll
include ../../../build/tests.make
include ../../../build/library.make
TEST_RUNTIME := MONO_URI_DOTNETRELATIVEORABSOLUTE=true $(TEST_RUNTIME)

View File

@@ -0,0 +1 @@
#include legacy-test.sources

View File

@@ -0,0 +1,43 @@
../../test-helpers/Configuration.Certificates.cs
../../test-helpers/Configuration.Http.cs
../../test-helpers/NetworkStreamHelper.cs
../corefx/Interop.VersionInfo.cs
../corefx/PlatformDetection.cs
# Common Sources
../../../../external/corefx/src/Common/tests/System/Net/Configuration.Http.cs
# Test Utitities
../../../../external/corefx/src/CoreFx.Private.TestUtilities/src/System/AssertExtensions.cs
../../../../external/corefx/src/CoreFx.Private.TestUtilities/src/System/TestEnvironment.cs
../../../../external/corefx/src/CoreFx.Private.TestUtilities/src/System/TheoryExtensions.cs
# Common Test Sources
../../../../external/corefx/src/Common/tests/System/Buffers/NativeMemoryManager.cs
../../../../external/corefx/src/Common/tests/System/Diagnostics/Tracing/TestEventListener.cs
../../../../external/corefx/src/Common/tests/System/Diagnostics/Tracing/ConsoleEventListener.cs
../../../../external/corefx/src/Common/tests/System/IO/DelegateStream.cs
../../../../external/corefx/src/Common/tests/System/Net/RemoteServerQuery.cs
../../../../external/corefx/src/Common/tests/System/Net/EventSourceTestLogging.cs
../../../../external/corefx/src/Common/tests/System/Net/HttpsTestServer.cs
../../../../external/corefx/src/Common/tests/System/Net/Capability.Security.cs
../../../../external/corefx/src/Common/tests/System/Net/Configuration.cs
../../../../external/corefx/src/Common/tests/System/Net/Configuration.Http.cs
../../../../external/corefx/src/Common/tests/System/Net/Configuration.Security.cs
../../../../external/corefx/src/Common/tests/System/Net/TestWebProxies.cs
../../../../external/corefx/src/Common/tests/System/Net/VerboseTestLogging.cs
../../../../external/corefx/src/Common/tests/System/Net/Http/LoopbackServer.cs
../../../../external/corefx/src/Common/tests/System/Net/Http/LoopbackServer.AuthenticationHelpers.cs
../../../../external/corefx/src/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs
# System.Net.Http FunctionalTests
../../../../external/corefx/src/System.Net.Http/tests/FunctionalTests/*.cs:MultiInterfaceReadOnlyStream.cs,MultiInterfaceNonRewindableReadOnlyStream.cs,HttpClientHandlerTest.ServerCertificates.Windows.cs,HttpClientHandlerTest.SslProtocols.Windows.cs,HttpClientHandlerTest.Decompression.cs,PostScenarioUWPTest.cs,DiagnosticsTests.cs,FakeDiagnosticSourceListenerObserver.cs,PlatformHandlerTest.cs
# Stubbed out
DiagnosticsTests.cs
HttpClientHandlerTest.Decompression.cs

View File

@@ -0,0 +1 @@
#include functional-tests.sources

View File

@@ -0,0 +1 @@
#include functional-tests.sources

View File

@@ -0,0 +1 @@
#include functional-tests.sources

View File

@@ -2,15 +2,15 @@ thisdir = class/System.Net.Http/UnitTests
SUBDIRS =
include ../../../build/rules.make
ASSEMBLY = System.Net.Http.UnitTests
LIBRARY = System.Net.Http.UnitTests.dll
NO_BUILD = yes
NO_INSTALL = yes
XTEST_LIB_REFS = System System.Core Facades/System.Threading.Tasks
USE_XTEST_REMOTE_EXECUTOR = YES
XTEST_MCS_FLAGS = -nowarn:436
include ../../../build/tests.make
xtest_flags = $(xunit_libs_ref) $(XTEST_MCS_FLAGS) $(XTEST_LIB_MCS_FLAGS) /unsafe
include ../../../build/library.make
clean-local:
-rm -f $(tests_CLEAN_FILES) $(CLEAN_FILES)

View File

@@ -0,0 +1 @@
#include unit-tests.sources

View File

@@ -0,0 +1 @@
#include unit-tests.sources

View File

@@ -0,0 +1 @@
#include unit-tests.sources

View File

@@ -0,0 +1 @@
#include unit-tests.sources

View File

@@ -0,0 +1,75 @@
../../test-helpers/Configuration.Certificates.cs
../../corlib/corefx/SR.cs
../../corlib/ReferenceSources/SR.cs
../../../build/common/SR.cs
../HttpClient.DefaultHandler.cs
../HttpRequestMessage.Mono.cs
# Common Sources
../../../../external/corefx/src/Common/src/System/NotImplemented.cs
../../../../external/corefx/src/Common/src/System/CharArrayHelpers.cs
../../../../external/corefx/src/Common/src/System/StringExtensions.cs
../../../../external/corefx/src/Common/src/CoreLib/System/Text/StringBuilderCache.cs
../../../../external/corefx/src/Common/src/System/IO/DelegatingStream.cs
../../../../external/corefx/src/Common/src/System/IO/ReadOnlyMemoryStream.cs
../../../../external/corefx/src/Common/src/System/IO/StreamHelpers.CopyValidation.cs
../../../../external/corefx/src/Common/src/System/Net/HttpKnownHeaderNames.cs
../../../../external/corefx/src/Common/src/System/Net/HttpKnownHeaderNames.TryGetHeaderName.cs
../../../../external/corefx/src/Common/src/System/Net/HttpStatusDescription.cs
../../../../external/corefx/src/Common/src/System/Net/Logging/NetEventSource.Common.cs
../../../../external/corefx/src/Common/src/System/Net/SecurityProtocol.cs
../../../../external/corefx/src/Common/src/System/Net/UriScheme.cs
../../../../external/corefx/src/Common/src/System/Net/Mail/MailAddress.cs
../../../../external/corefx/src/Common/src/System/Net/Mail/DomainLiteralReader.cs
../../../../external/corefx/src/Common/src/System/Net/Mail/DotAtomReader.cs
../../../../external/corefx/src/Common/src/System/Net/Mail/MailAddressParser.cs
../../../../external/corefx/src/Common/src/System/Net/Mail/MailBnfHelper.cs
../../../../external/corefx/src/Common/src/System/Net/Mail/QuotedPairReader.cs
../../../../external/corefx/src/Common/src/System/Net/Mail/QuotedStringFormatReader.cs
../../../../external/corefx/src/Common/src/System/Net/Mail/WhitespaceReader.cs
../../../../external/corefx/src/Common/src/System/Threading/Tasks/TaskToApm.cs
../../../../external/corefx/src/Common/src/System/Net/Http/HttpHandlerDefaults.cs
# Test Utilities
../../../../external/corefx/src/CoreFx.Private.TestUtilities/src/System/AssertExtensions.cs
../../../../external/corefx/src/CoreFx.Private.TestUtilities/src/System/TestEnvironment.cs
../../../../external/corefx/src/CoreFx.Private.TestUtilities/src/System/TheoryExtensions.cs
# Common Test Sources
../../../../external/corefx/src/Common/tests/System/ShouldNotBeInvokedException.cs
../../../../external/corefx/src/Common/tests/System/Buffers/NativeMemoryManager.cs
../../../../external/corefx/src/Common/tests/System/Diagnostics/Tracing/TestEventListener.cs
../../../../external/corefx/src/Common/tests/System/Diagnostics/Tracing/ConsoleEventListener.cs
../../../../external/corefx/src/Common/tests/System/IO/DelegateStream.cs
../../../../external/corefx/src/Common/tests/System/Net/RemoteServerQuery.cs
../../../../external/corefx/src/Common/tests/System/Net/EventSourceTestLogging.cs
../../../../external/corefx/src/Common/tests/System/Net/HttpsTestServer.cs
../../../../external/corefx/src/Common/tests/System/Net/Capability.Security.cs
../../../../external/corefx/src/Common/tests/System/Net/Configuration.cs
../../../../external/corefx/src/Common/tests/System/Net/Configuration.Security.cs
../../../../external/corefx/src/Common/tests/System/Net/TestWebProxies.cs
../../../../external/corefx/src/Common/tests/System/Net/VerboseTestLogging.cs
../../../../external/corefx/src/Common/tests/System/Net/Http/LoopbackServer.cs
../../../../external/corefx/src/Common/tests/System/Net/Http/LoopbackServer.AuthenticationHelpers.cs
../../../../external/corefx/src/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs
# System.Net.Http Source Files
../../../../external/corefx/src/System.Net.Http/src/System/Net/Http/Headers/*.cs
../../../../external/corefx/src/System.Net.Http/src/System/Net/Http/*.cs:HttpClientHandler*.cs,DiagnosticsHandler.cs
../../../../external/corefx/src/System.Net.Http/src/System/Net/Http/CurlHandler/CurlResponseHeaderReader.cs
../../../../external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/AuthenticationHelper.Digest.cs
../../../../external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpEnvironmentProxy.cs
# UnitTests
../../../../external/corefx/src/System.Net.Http/tests/UnitTests/Fakes/HttpClientHandler.cs
../../../../external/corefx/src/System.Net.Http/tests/UnitTests/Headers/*.cs
../../../../external/corefx/src/System.Net.Http/tests/UnitTests/Headers/GenericHeaderParserTest/*.cs
../../../../external/corefx/src/System.Net.Http/tests/UnitTests/*.cs:HttpSystemProxyTest.cs