Commit 60bcb857 authored by Eric Roman's avatar Eric Roman Committed by Commit Bot

Remove some unnecessary casts.

Change-Id: Iab1194d9b98a6460847627e94fb385ce31db43ea
Reviewed-on: https://chromium-review.googlesource.com/1028456Reviewed-by: default avatarBence Béky <bnc@chromium.org>
Commit-Queue: Eric Roman <eroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553870}
parent 2aff5b63
......@@ -443,7 +443,7 @@ class JobControllerReconsiderProxyAfterErrorTest
session_ = std::make_unique<HttpNetworkSession>(
SpdySessionDependencies::CreateSessionParams(&session_deps_),
SpdySessionDependencies::CreateSessionContext(&session_deps_));
factory_ = static_cast<HttpStreamFactory*>(session_->http_stream_factory());
factory_ = session_->http_stream_factory();
}
std::unique_ptr<HttpStreamRequest> CreateJobController(
......@@ -2514,7 +2514,7 @@ class HttpStreamFactoryImplJobControllerPreconnectTest
session_deps_.http_server_properties =
std::make_unique<MockHttpServerProperties>();
session_ = SpdySessionDependencies::SpdyCreateSession(&session_deps_);
factory_ = static_cast<HttpStreamFactory*>(session_->http_stream_factory());
factory_ = session_->http_stream_factory();
request_info_.method = "GET";
request_info_.url = GURL("https://www.example.com");
job_controller_ = new HttpStreamFactory::JobController(
......
......@@ -30,8 +30,7 @@ TEST(HttpStreamRequestTest, SetPriority) {
std::unique_ptr<HttpNetworkSession> session =
SpdySessionDependencies::SpdyCreateSession(&session_deps);
HttpStreamFactory* factory =
static_cast<HttpStreamFactory*>(session->http_stream_factory());
HttpStreamFactory* factory = session->http_stream_factory();
MockHttpStreamRequestDelegate request_delegate;
TestJobFactory job_factory;
HttpRequestInfo request_info;
......
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