From daec85b78d9354c6f24186e367e5b34219f50cc4 Mon Sep 17 00:00:00 2001 From: "wtc@chromium.org" Date: Mon, 3 May 2010 19:04:22 +0000 Subject: Enable the regression test for issue 42538 for Windows. This requires mapping SEC_E_INVALID_TOKEN to ERR_SSL_PROTOCOL_ERROR. We were mapping SEC_E_INVALID_TOKEN to ERR_UNEXPECTED because previously I got SEC_E_INVALID_TOKEN when I called InitializeSecurityContext at the wrong time. If we call InitializeSecurityContext correctly, SEC_E_INVALID_TOKEN indicates an invalid SSL record. R=agl BUG=42538 TEST=the unit test SSLClientSocketTest.PrematureApplicationData should pass on Windows. Review URL: http://codereview.chromium.org/1718022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46260 0039d316-1c4b-4281-b951-d872f2087c98 --- net/socket/ssl_client_socket_unittest.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'net/socket/ssl_client_socket_unittest.cc') diff --git a/net/socket/ssl_client_socket_unittest.cc b/net/socket/ssl_client_socket_unittest.cc index 7b297f8..5c036b3 100644 --- a/net/socket/ssl_client_socket_unittest.cc +++ b/net/socket/ssl_client_socket_unittest.cc @@ -426,7 +426,6 @@ TEST_F(SSLClientSocketTest, Read_Interrupted) { EXPECT_GT(rv, 0); } -#if !defined(OS_WIN) // Regression test for http://crbug.com/42538 TEST_F(SSLClientSocketTest, PrematureApplicationData) { net::AddressList addr; @@ -469,4 +468,3 @@ TEST_F(SSLClientSocketTest, PrematureApplicationData) { rv = sock->Connect(&callback); EXPECT_EQ(net::ERR_SSL_PROTOCOL_ERROR, rv); } -#endif // !defined(OS_WIN) -- cgit v1.1