Commit eb78e849 authored by pcc's avatar pcc Committed by Commit bot

net: Remove static_cast of socket in HttpProxyClientSocketPoolTest.AsyncHaveAuth.

This socket is a SpdyProxyClientSocket. Fixes this test under
-fsanitize=cfi-vptr.

BUG=457523
TEST=net_unittests
R=rch@chromium.org

Review URL: https://codereview.chromium.org/955553002

Cr-Commit-Position: refs/heads/master@{#317758}
parent 4d912161
......@@ -526,9 +526,7 @@ TEST_P(HttpProxyClientSocketPoolTest, AsyncHaveAuth) {
EXPECT_EQ(OK, callback_.WaitForResult());
EXPECT_TRUE(handle_.is_initialized());
ASSERT_TRUE(handle_.socket());
HttpProxyClientSocket* tunnel_socket =
static_cast<HttpProxyClientSocket*>(handle_.socket());
EXPECT_TRUE(tunnel_socket->IsConnected());
EXPECT_TRUE(handle_.socket()->IsConnected());
proxy_delegate->VerifyOnTunnelRequestCompleted(
"www.google.com:443",
proxy_host_port.c_str());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment