Commit Graph
62 Commits
Author SHA1 Message Date
Cristian Pop 40dcf58810 Removing SSLv2 and SSLv3 support from System.Net.Security.
APIs will throw NotSupportedException if SSLv2 or v3 is used. This
behavior is different from .NET Desktop.
Tests have been changed to pin this new behavior.
Increased passing-test timeouts to 15s.

Fix dotnet/corefx#3114 (partial), dotnet/corefx#4467


Commit migrated from https://github.com/dotnet/corefx/commit/1f4deea8946d2e54dfd3c88e64c85bc3c3d9805c
2015-11-16 11:26:00 -08:00
Eric St. John 65210efd31 Update project.lock.json to latest and lock
Commit migrated from https://github.com/dotnet/corefx/commit/6aeea5eabf2aff3baf15f501cabd156dfc5b3f8f
2015-11-09 22:38:10 -08:00
Eric St. John cddddd29f5 Remove unused dependencies
Commit migrated from https://github.com/dotnet/corefx/commit/78fd45ec74afc507a40df519b4df650ac9bd4c42
2015-11-09 22:37:37 -08:00
David Shulman df05d9fc0f Rename HttpTestServers2.cs to HttpTestServers.cs
Commit migrated from https://github.com/dotnet/corefx/commit/36acb05abd55f62aad0c18bc6ede2cef1c58628e
2015-11-09 11:20:41 -08:00
David Shulman 34f36a7828 Cleanup System.Net.Http.WinHttpHandler tests
* Move tests to the new test server
* Fixup an SSL certificate test to handle wildcard certs
* Remove HttpTestServers.cs file. The next PR will then rename HttpTestServers2.cs to HttpTestServers.cs


Commit migrated from https://github.com/dotnet/corefx/commit/b543ace69e663e00c8c60c82d7cbf271b148b25d
2015-11-09 10:29:05 -08:00
stephentoub 70f11fba60 Remove non-Windows clutter from WinHttpHandler sln/projs
This project is and will always be Windows-specific.  There's no need for
all of the placeholders related to non-Windows targets.


Commit migrated from https://github.com/dotnet/corefx/commit/4b141937a40536536eb43272b45cb0b130079efd
2015-11-05 22:05:33 -08:00
David Shulman 64fd147514 Fix NuGet packaging build for System.Net.Http.WinHttpHandler, System.Net.WebHeaderCollection, System.Net.Websockets
[tfs-changeset: 1543747]


Commit migrated from https://github.com/dotnet/corefx/commit/d7024b97a2b0932a464a49c4d01279e54e7e75fc
2015-10-30 16:46:33 -07:00
David Shulman 10763035db WinHttpHandler WinHttpResponseStream reads should return back with partial data
.NET Stream.Read() semantics leave it to the implementation to decide how much data to return given a buffer of size N:

https://msdn.microsoft.com/en-us/library/system.io.stream.read(v=vs.110).aspx
"An implementation is free to return fewer bytes than requested even if the end of the stream has not been reached."

The behavior of System.Net HTTP APIs (i.e. .NET Framework) are such that stream reads are able to return as soon as data is available. They don't wait until the provided buffer is full. The current WinHttpHandler was not behaving that way because it didn't call WinHttpQueryDataAvailable before calling WinHttpReadData. WinHttpQueryDataAvailable would indicate how many bytes can be read immediately.

This fix changes the WinHttpResponseStream.Read* methods to use WinHttpQueryDataAvailable before calling WinHttpReadData.

Added both WinHttpHandler unit tests (helps with simulating/testing network errors) and HttpClientHandler functional tests (which will test x-plat).

Fixes dotnet/corefx#1825


Commit migrated from https://github.com/dotnet/corefx/commit/5386014a6b74a8d38010b244f9e9ced96df53b69
2015-10-30 10:39:32 -07:00
stephentoub ba797defff Replace Substring(...).Trim() with SubstringTrim(...)
System.Net.WebHeaderCollection already had a SubstringTrim helper that's used instead of Substring(...).Trim() to avoid first creating the substring and then trimming it, instead just offsetting the startIndex and length appropriately to do the Substring once.

I've factored this helper out into Common, added unit tests, cleaned it up a bit, and used it in several more places in System.Net.


Commit migrated from https://github.com/dotnet/corefx/commit/4e45e641c9d97c3a5d3b6fec4f6ffc33a2405fee
2015-10-28 12:29:59 -04:00
David Shulman 7421388e81 WinHttpHandler: Fix POSTs with zero length content
While researching dotnet/corefx#3292, I discovered that POST'ing zero length content throws an exception. This was because we were calling WinHttpWriteData() and passing in a zero length for the buffer size. This returns an error back from WinHTTP.

We don't need to call WinHTTP APIs to write zero length data. We simply need to return a completed task back to the caller.

Added tests to verify the fix.


Commit migrated from https://github.com/dotnet/corefx/commit/0776e741430e83fe72bf4be544701f0eeddce042
2015-10-23 15:19:30 -07:00
Stephen Toub 544c9f5354 Merge pull request dotnet/corefx#4078 from davidsh/requeststream_hang
Fix hang when writing request stream in WinHttpHandler

Commit migrated from https://github.com/dotnet/corefx/commit/e715350896154fc554f4d995c0c1294d6535ce08
2015-10-23 08:19:58 -04:00
David Shulman 779afbe587 Fix hang when writing request stream in WinHttpHandler
WinHttpHandler was hanging due to blocking on the WinHTTP status callback thread. The blocking was coming from a task continuation resuming on the same thread and subsequently calling a blocking Stream.Write method in a custom HttpContent class being written onto the request stream.

Blocking is not allowed on the WinHTTP callback thread. So any task continuations need to occur on a different thread. The fix is to create the TaskCompletionSources to use RunContinuationsAsynchronously. This allows them to unblock the WinHTTP thread. Additionally, I added some missing ConfigureAwait(false) settings to some await'd operations.

Added a new test which uses a custom HttpContent class that uses a blocking Write() call when serializing onto the request stream.

Fix dotnet/corefx#4077


Commit migrated from https://github.com/dotnet/corefx/commit/babb7c6c65bf1e02dab667cbda80f0e24af21ed8
2015-10-22 16:44:06 -07:00
Matt Ellis 006851c7fc Merge pull request dotnet/corefx#4079 from dotnet-bot/from-tfs
Merge changes from TFS

Commit migrated from https://github.com/dotnet/corefx/commit/a3050bacc9b716f52f086751bfb4bf0384019f53
2015-10-22 16:36:18 -07:00
Pat Gavlin 60199ab1f4 Merge pull request dotnet/corefx#4041 from pgavlin/GH2542
Unify the two definitions of WinHttpException.

Commit migrated from https://github.com/dotnet/corefx/commit/3d6b27087fecdd9144329c5f49164e5f022a6213
2015-10-22 15:05:26 -07:00
David Shulman 73f2dc3917 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/2d3bfddf2a684ddd2532b7d50407d1d1c0bfdaf6
2015-10-22 13:03:23 -07:00
David Shulman 44efbd5248 Fix WinHttpHandler on Win7
When WinHttpHandler was recently switched to use async WinHTTP pattern, it started setting an option which improves performance. However, the WINHTTP_OPTION_ASSURED_NON_BLOCKING_CALLBACKS option is not available on downlevel Windows versions. This was causing an exception to be thrown when sending an HTTP request.

The fix is to ignore the ERROR_WINHTTP_INVALID_OPTION error code when trying to set this option.


Commit migrated from https://github.com/dotnet/corefx/commit/4b9494cce56b8762b55688310a3529f71958dda4
2015-10-22 12:33:32 -07:00
Eric St. John 8cc3c24b51 Update lock files that were missed in previous restore.
A change was made to DNX to no longer restore project.jsons
that are in nested folders.  This caused my batch update to miss
a number of tests and reference assembly projects.

This fixes the stale lock files, but restore is still broken.

[tfs-changeset: 1540448]


Commit migrated from https://github.com/dotnet/corefx/commit/3622cccc1b22fa1947a72d5126b59864e9d2fd0d
2015-10-21 18:59:09 -07:00
Eric St. John 543808303a Update dnx to v1.0.0-rc1-15838, update dotnet projects to generations
We need a new DNX to understand the latest packages.

We also need to move all "dotnet" projects to use dotnetX.X (generations)
now that the packages no longer have "dotnet" assets.

The new version of DNX dropped support for the aspnetcore
so I needed to update a few projects/packages that depended
on old package versions that had this moniker.

[tfs-changeset: 1540388]


Commit migrated from https://github.com/dotnet/corefx/commit/38f8d7a3ca1ee819c2b8eabb1c07ee4e99683c97
2015-10-21 17:03:48 -07:00
Pat Gavlin 0ac5f634bc Unify the two definitions of WinHttpException.
Fixes dotnet/corefx#2542.


Commit migrated from https://github.com/dotnet/corefx/commit/2cad4090903ddfd1f11b78156f11bb614f391aa8
2015-10-21 14:56:45 -07:00
Eric St. John 1cd121b072 Refine package validation for generations
When calculating generations I wasn't considering transient
dependencies.  I was assuming that if a dependency wasn't
tracked by generations it wouldn't impact the generation
of the depender.  That was incorrect since every assembly
effectively has a generation.  This updates the algorithm to
walk the entire dependency graph when calculating the generation

I also wasn't validating support for targeting generations: PCLs
consuming the packages.  I was only testing for specific
platforms.   I added validation for generation monikers and
derived the support matrix for these from the specific platforms.

This uncovered a handful of bugs which I have fixed.

[tfs-changeset: 1540300]


Commit migrated from https://github.com/dotnet/corefx/commit/8d609579a4ef3127372400faa664796c1435d634
2015-10-21 14:42:53 -07:00
David Shulman 8b1e8b7b62 Fix assert and leak of WinHttpRequestState object when disposing response stream
Discovered during testing with DEBUG version of CoreCLR running internal ToF tests. The design of the WinHttpRequestState is such that it stays alive due to a GCHandle.Alloc(this) in its constructor. This keeps the object alive during any of the native WinHTTP callbacks. However, the object was being prematurely disposed during the Dispose() of the WinHttpResponseStream. Instead, it should have been explicitly disposed during the final HANDLE_CLOSING callback from WinHTTP when the request handle was disposed. The early disposing of the WinHttpRequestState object was doing a GCHandle.Free() of the state object. This later caused an Assert() in the DEBUG version of the CoreCLR when doing GCHandle.FromIntPtr() indicating that the handle was already deallocated.


Commit migrated from https://github.com/dotnet/corefx/commit/ca4fca0513c72af811e2541f530526e8c02c5f75
2015-10-21 06:57:06 -07:00
bartonjs a768025131 Update all project.lock.json files
Built Windows_NT, Linux, OSX with /p:LockDependencies=true.

CoreFX beta-* => 23419
xunit.netcore.extensions => 00107


Commit migrated from https://github.com/dotnet/corefx/commit/a14b22705df253508bd5f2dab0407bd2c7e4d639
2015-10-19 16:00:44 -07:00
David Shulman 4640c3cefb WinHttpHandler uses async WinHTTP patterns
This is a large PR and addresses work item dotnet/corefx#3000. I apologize for not being able to structure it in a series of smaller commits.

The bulk of this PR is switching WinHttpHandler to use the async pattern of calling WinHTTP APIs. This involved a significant restructuring of the code. As part of that, I split up the large WinHttpHandler class into multiple, smaller, helper classes.

While the intent of using async WinHTTP calls is better performance and cancel-ability, this PR has not been fully optimized yet. Due to the schedule of RC1 code complete next week, it's important that this PR get in and get mileage on it in the next few weeks.

There are several TODO items that will be done in later PR's. There is still work being tracked in dotnet/corefx#2165 for various follow-up items. For example, re-conciling the best SafeHandle pattern to use for WinHTTP between WebSockets.Client and WinHttpHandler.

I'm currently using a simple Debug.WriteLine for verbose debug logging which can be turned on/off via environment variable. I plan to switch this to System.Net ETW trace loggers in the next commit and/or PR. But the logging has proved very useful in diagnosing issues.

Please provide feedback. Depending on the feedback, some of it will be marked as follow-up items for future PRs.


Commit migrated from https://github.com/dotnet/corefx/commit/d8e5371a5d0f9f4bb3aa85127cb78adf89dde1fb
2015-10-16 13:33:35 -07:00
David Shulman 9dc49446e3 Re-enable some WinHttpHandler unit tests
Turned on tests:

SendAsync_NoWinHttpDecompressionSupportAndResponseBodyIsDeflateCompressed_ExpectedResponse
SendAsync_NoWinHttpDecompressionSupportAndResponseBodyIsGZipCompressed_ExpectedResponse

since the issue with clrcompression.dll was resolved a while ago.

Removed a *Nix annotation suppressing a unit test. This is not needed in
the test sources since the WinHttpHandler library and tests are only
supported on Windows and won't run anymore in CI (disabled in CSPROJ
files) for non-Windows platforms.


Commit migrated from https://github.com/dotnet/corefx/commit/b652828b662f0052deeddea9151f34fccafe3d2a
2015-10-13 20:45:30 -07:00
David Shulman 180631efc7 Add more WinHttpHandler client certificate tests
Added a fake X509Store to the unit tests. Add tests related to
WinHttpHandler ClientCertificateOption.Automatic property setting.


Commit migrated from https://github.com/dotnet/corefx/commit/58c709f1521ab55a7e358d32bd331987259fdc43
2015-10-09 11:40:04 -07:00
David Shulman b7b2027a1e Add more HTTP tests
Ported some missing tests to GitHub. Cleaned up some of the existing
tests.


Commit migrated from https://github.com/dotnet/corefx/commit/870810a3a50b41acc088a907dd7a5ea88a214ec8
2015-10-08 14:05:35 -07:00
David Shulman 940366be3a WinHttpHandler client SSL certificate fixes and tests
Fixed a couple of bugs discovered in WinHttpHandler where it was not
sending out client SSL certificates. Changed the final parameter to the
X509Certificate2Collection.Find() method to false. I had originally set
this parameter to true. The parameter tells the .Find() API to only
select "valid" certificates from the collection. The problem is that
"valid" also means "trusted by the client". But a lot of client SSL
certificates are not trusted by the client. They are only trusted by the
server since many servers issue client certificates based on a different
trust root.

Added more tests for client SSL certificates.


Commit migrated from https://github.com/dotnet/corefx/commit/4fa89d2b9b8949bdb261909748808180f2fe1ef5
2015-10-06 11:27:01 -07:00
Ian Hays 0f8197a86c Update CoreFX to xunit 2.1.0
Commit migrated from https://github.com/dotnet/corefx/commit/87b48c58936d66fcb201b3a8ad0961fa055f23b9
2015-10-01 19:56:49 -07:00
David Shulman faecfe5a93 Merge pull request dotnet/corefx#3554 from davidsh/more_http_tests
Add more HTTP tests

Commit migrated from https://github.com/dotnet/corefx/commit/1338765c9d6be95506edcdf2dab00f4c5d9153d2
2015-09-30 20:49:57 -07:00
David Shulman a6002ce802 Add more HTTP tests
* Add more tests ported from the internal ToF tests.
* Cleanup existing tests to be consistent in style and format as it has
drifted due to many different people working on the tests.
* Disposing the HttpClient object will dispose the handler as well so we
don't need multiple 'using' statements unless we are explicitly testing
dispose ordering semantics.


Commit migrated from https://github.com/dotnet/corefx/commit/ad55c1d5685afc4009cb2481fcc7c5e4f4a551f8
2015-09-30 20:11:07 -07:00
bartonjs a52f41057c Update all CoreFx package references to 23328 build.
`build.cmd /p:LockDependencies=true` was the start of this change, but some errors with xunit build numbers led to all xunit upgrades being reset back to what they had in master.

project.json changes:
* System.Net.Security\src Switch off of explicit beta versioning, use the same baseline as everyone else.  The S.S.C.Algorithms explicit upgrade is no longer required.
* System.Net.Requests\tests didn't build.  Looking at the project.lock.json change, it appeared that a System.Net.Http reference was lost, restored it.
* System.Net.Http\tests didn't build. Looking at the project.lock.json change, it appeared that a System.IO.FileSystem reference was lost, restored it.
* System.Net.WebSockets.Client\src didn't build. Looking at the project.lock.json change, it appeared that a System.Collections (4.0.10) reference was lost, restored it.
* System.Diagnostics.TextWriterTraceListener\tests needed the runtime reference to load the correct System.Diagnostics.TraceSource binary.


Commit migrated from https://github.com/dotnet/corefx/commit/cec3a0f2db542bfa9d9c56bf988d966eacc35ad9
2015-09-29 11:40:37 -07:00
David Shulman 9d997536f4 Port additional System.Net.Http tests to CoreFx
Added more http tests to open source from the original internal ToF tests. Some of
the tests should be refactored in the future to avoid Assert'ing multiple
logical things.

Fixed up test namespaces for System.Net.Http and
System.Net.Http.WinHttpHandler.


Commit migrated from https://github.com/dotnet/corefx/commit/e5a017cb6ca01e99b1f1462298bc0cbf60c06ee0
2015-09-21 11:48:34 -07:00
stephentoub cb6ce9a1b3 Remove delegate allocation from WinHttpHandler.SendAsync
Each SendAsync call was allocating a new delegate for StartRequest.


Commit migrated from https://github.com/dotnet/corefx/commit/7c553bc3e68736d1fec2f82d87e7cb4178cbcf14
2015-09-19 20:03:09 -04:00
David Shulman 138469108b Disable SafeHandle leak checking in WinHttpHandler Unit Tests
Addresses issue dotnet/corefx#3312.


Commit migrated from https://github.com/dotnet/corefx/commit/b30b39707bfc9359c46e4749552f879ae37fcf13
2015-09-19 08:16:11 -07:00
Alexander Köplinger 3e20a867b2 Update build to use DNX beta7 instead of beta5
The corefx build used an older beta5 version of DNX which hardcoded the path to bash in dnu, breaking the build on FreeBSD.
Updating DNX to the latest "stable" beta7 release fixes this.

After updating I noticed a few test projects didn't build anymore as they were missing some dependencies in project.json, added those.

Fixes dotnet/corefx#3173


Commit migrated from https://github.com/dotnet/corefx/commit/6df77fdbb6cf8e0d35a3074bb325f7810085daa3
2015-09-16 02:12:26 +02:00
David Shulman 9d7de1b937 Merge pull request dotnet/corefx#3096 from davidsh/winhttphandler_leaks
Improve WinHttpHandler and SafeWinHttpHandle reference counting logic

Commit migrated from https://github.com/dotnet/corefx/commit/407ea6bac4200608d86c91b6e32b925d6a3580e0
2015-09-09 11:52:42 -07:00
David Shulman e0c3d074dd Improve WinHttpHandler and SafeWinHttpHandle reference counting logic
This PR mainly addresses "handle leaks" dotnet/corefx#2963, dotnet/corefx#2762, dotnet/corefx#2793. In investigating the leaks, I discovered that our use of the SafeHandle pattern was not quite right. Native Windows WinHTTP handles wrapped by SafeHandle need additional lifetime management protection to preserve parent-child relationships. Closing the parent handle too early will invalidate the child handle. So, added a SetParentHandle() method to SafeWinHttpHandle to protect against this. This also simplified the passing of handles to the WinHttpResponseStream class.

After adding leak detection, I discovered a race condition caused by an CancellationToken.Register that should not exist in WinHttpHandler.
This inadvertently provided a way for the awaited SendAsync() task to return back to the caller even though the StartRequest() method is still
running.

Added unit tests to validate the behavior assumptions and to track leaks in the WinHttpHandler logic.

This change does not affect the SafeWinHttpHandleWithCallback class that is used by System.Net.WebSocket.Client. But that class is incorrectly using the SafeHandle pattern w.r.t. Dispose() and I will be fixing that in a later PR.


Commit migrated from https://github.com/dotnet/corefx/commit/a75ec027daa53114c788464878e2947ae7d5a65e
2015-09-08 08:27:04 -07:00
Alexander Köplinger 919950a89d Use SR.Format instead of string.Format
See https://github.com/dotnet/corefx/pull/3078.
This applies the same fix to all other places in the codebase.


Commit migrated from https://github.com/dotnet/corefx/commit/d2bb418da30f27f4ef4203f46f7bd3b57a9433a0
2015-09-04 00:03:05 +02:00
David Shulman ad147f22f2 Fix error handling in WinHttpHandler StartRequest
Addresses dnu restore exception 2547
https://github.com/aspnet/dnx/issues/2547

- Fix a code path where `requestHandle` could be `null`.
- Add unit test to simulate this error code path.
- Simply use of Assert.ThrowsAsync<T>


Commit migrated from https://github.com/dotnet/corefx/commit/11d048b399788c26268819eef962b130ecf472c8
2015-08-31 18:44:33 -07:00
David Shulman 34bd120067 Merge pull request dotnet/corefx#2524 from bbowyersmyth/NetRequests
Reduce HttpWebResponse header allocations

Commit migrated from https://github.com/dotnet/corefx/commit/366af5bad1e182c2d193fb7ef8cf90abe8fb4a17
2015-08-25 10:19:43 -07:00
Rajan Singh 680c39d776 Merge pull request dotnet/corefx#2810 from rajansingh10/myfeature
Moving shared default between winHttp & Unix Handler to a seperate common file

Commit migrated from https://github.com/dotnet/corefx/commit/e2e6dcc236c0c01463a1a43349be14761eabf442
2015-08-21 12:03:44 +05:30
David Shulman 94fd9ab990 [HIGH PRIORITY - Proposed fix to be included for ASP.NET Beta7]
This fixes a bug found with chunked uploads using custom content that repeatedly calls Flush() on the stream passed into SerializeToStreamAsync.

This bug was discovered by WCF tests and reported via GitHub: https://github.com/dotnet/corefx/issues/2897

It was a mistake to use the Flush() method on the stream to send the final terminating chunk for the upload since that method can be called by custom content via the SerializeToStreamAsync method. The typical use pattern is that depending on the actual streams involved, upper layer software typically can call Flush() one or more times when writing to a stream. The fix here is to simply leave Flush() as a no-op (which it basically is for the WinHttpRequestStream) and have an internal method to handle the writing of the final terminating chunk.

This fix is being checked into TFS instead of using a GitHub PR. The reason is that the tests for this need to use our current internal server that correctly echoes the request headers in order to verify 'Transfer-Encoding: chunked' was sent by the client. I tried to put this test into the current GitHub tests using the current "http://httpbin.org" test server, but I discovered that httpbin.org doesn't properly echo the request headers when 'Transfer-Encoding' is sent. Instead, it ends up replacing that header and sending back 'Content-Length' (even though we didn't send that in the request headers). We have a backlog work item to port our remaining ToF tests to GitHub over the next several weeks.

[tfs-changeset: 1516976]


Commit migrated from https://github.com/dotnet/corefx/commit/ac9e5d9426ce28216a9d49d0753c8790e7aac0d2
2015-08-20 16:53:43 -07:00
Rajan Singh 9b679bfb53 Moving shared default between winHttp & Unix Handler to a seperate common file
Commit migrated from https://github.com/dotnet/corefx/commit/756ed1131ced4649c6a23940b9707012ec1d2ff2
2015-08-17 13:03:42 +05:30
Eric St. John d7a0ae297b Update corefx packages to latest
Commit migrated from https://github.com/dotnet/corefx/commit/23f0b695bd162e0f665427c95180dc21931e5c70
2015-08-14 15:43:23 -07:00
Eric St. John 24877d3ce7 Move System.Net tests up to latest pre-release version
This change undoes the workaround from https://github.com/dotnet/corefx/commit/dotnet/corefx@5d9f9d4c6ea450366c7b70af6e6006a401284d14#diff-53766f09e26c8b4b422d2946d05c83a6


Commit migrated from https://github.com/dotnet/corefx/commit/ccdf7bb4a2a87de13f8dba69ac7a0df3818c69b1
2015-08-14 10:21:53 -07:00
Eric St. John 77309d4821 Update the version of all assemblies
This change updates the assembly versions of all of the corefx assemblies
as needed after we shipped stable versions.  Assemblies with API differences
get a minor version bump.  Assemblies with only bugfixes get a build version
bump.

In order to facilitate this I had to update the reference assemblies, so I took
the opportunity to port them all to the open.

[tfs-changeset: 1514419]


Commit migrated from https://github.com/dotnet/corefx/commit/40723b795917f2e98b64d45c17effb2546dd0cae
2015-08-13 17:07:57 -07:00
Guillermo Rangel 5057608a6d Fixing potential integer overflow in arithmetic operation (+).
Using a - operation instead of + so we don't need casting to long.


Commit migrated from https://github.com/dotnet/corefx/commit/e537fb7c9e24d608ab5c85e52e39ddfcbbf5f41b
2015-08-12 14:39:26 -07:00
Guillermo Rangel ff81931a13 Fixing CancellationToken not propagating properly and adding some Tests to verify it.
Addressing Feedback in GitHub

Renaming TestHandler to SendAsyncWinHttpMockHandler and adding missing spaces.

Added missing line in json file to use System.Runtime.InteropServices.RuntimeInformation.


Commit migrated from https://github.com/dotnet/corefx/commit/e76774df88b497107e8289fce314ea149abc7811
2015-08-11 13:58:39 -07:00
Eric Mellino 66969e748b Re-lock dependencies with latest xunit
Commit migrated from https://github.com/dotnet/corefx/commit/795cbc75f8e167047a7c19cd7e21e99b9b9f4308
2015-08-03 16:40:33 -07:00
Eric Mellino 219af47e0c Update test dependencies
Fixes all test warnings about 'different versions of the same dependent
assembly'


Commit migrated from https://github.com/dotnet/corefx/commit/b84f53f744ba0418255cbe471b783dde2a700a8e
2015-08-03 13:44:34 -07:00