make HTTP2 tests run for platform handler as well
authorGeoff Kizer <geoffrek>
Wed, 9 Jan 2019 11:21:24 +0000 (03:21 -0800)
committerGeoff Kizer <geoffrek>
Wed, 6 Feb 2019 18:48:22 +0000 (10:48 -0800)
Commit migrated from https://github.com/dotnet/corefx/commit/686bf6eb6973713f4845fbb874b53f81ea16e50b

src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Http2.cs [moved from src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.Http2.cs with 99% similarity]
src/libraries/System.Net.Http/tests/FunctionalTests/PlatformHandlerTest.cs
src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs
src/libraries/System.Net.Http/tests/FunctionalTests/System.Net.Http.Functional.Tests.csproj

@@ -11,7 +11,7 @@ namespace System.Net.Http.Functional.Tests
 {
     using Configuration = System.Net.Test.Common.Configuration;
 
-    public sealed class SocketsHttpHandler_HttpClientHandler_Http2_Test : HttpClientHandlerTestBase
+    public abstract class HttpClientHandlerTest_Http2 : HttpClientHandlerTestBase
     {
         protected override bool UseSocketsHttpHandler => true;
         public static bool SupportsAlpn => PlatformDetection.SupportsAlpn;
index befc655..798290a 100644 (file)
@@ -153,4 +153,9 @@ namespace System.Net.Http.Functional.Tests
     {
         protected override bool UseSocketsHttpHandler => false;
     }
+
+    public sealed class PlatformHandlerTest_Http2 : HttpClientHandlerTest_Http2
+    {
+        protected override bool UseSocketsHttpHandler => false;
+    }
 }
index a40efce..0d2bc7e 100644 (file)
@@ -1632,4 +1632,9 @@ namespace System.Net.Http.Functional.Tests
             }).Dispose();
         }
     }
+
+    public sealed class SocketsHttpHandlerTest_Http2 : HttpClientHandlerTest_Http2
+    {
+        protected override bool UseSocketsHttpHandler => true;
+    }
 }
index dfcaa43..a752414 100644 (file)
     <Compile Include="NtAuthTests.cs" />
     <Compile Include="ReadOnlyMemoryContentTest.cs" />
     <Compile Include="SocketsHttpHandlerTest.cs" />
-    <Compile Include="SocketsHttpHandlerTest.Http2.cs" />
+    <Compile Include="HttpClientHandlerTest.Http2.cs" />
     <Compile Include="$(CommonTestPath)\System\Net\Http\Http2Frames.cs">
       <Link>Common\System\Net\Http\Http2Frames.cs</Link>
     </Compile>