Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: net/http/http_stream_factory_impl_request_unittest.cc

Issue 502163003: Remove implicit conversions from scoped_refptr to T* in net/http/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/http/http_response_headers_unittest.cc ('k') | net/http/http_stream_parser_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/http/http_stream_factory_impl_request.h" 5 #include "net/http/http_stream_factory_impl_request.h"
6 6
7 #include "net/http/http_stream_factory_impl_job.h" 7 #include "net/http/http_stream_factory_impl_job.h"
8 #include "net/proxy/proxy_info.h" 8 #include "net/proxy/proxy_info.h"
9 #include "net/proxy/proxy_service.h" 9 #include "net/proxy/proxy_service.h"
10 #include "net/spdy/spdy_test_util_common.h" 10 #include "net/spdy/spdy_test_util_common.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 session(SpdySessionDependencies::SpdyCreateSession(&session_deps)); 69 session(SpdySessionDependencies::SpdyCreateSession(&session_deps));
70 HttpStreamFactoryImpl* factory = 70 HttpStreamFactoryImpl* factory =
71 static_cast<HttpStreamFactoryImpl*>(session->http_stream_factory()); 71 static_cast<HttpStreamFactoryImpl*>(session->http_stream_factory());
72 72
73 DoNothingRequestDelegate request_delegate; 73 DoNothingRequestDelegate request_delegate;
74 HttpStreamFactoryImpl::Request request( 74 HttpStreamFactoryImpl::Request request(
75 GURL(), factory, &request_delegate, NULL, BoundNetLog()); 75 GURL(), factory, &request_delegate, NULL, BoundNetLog());
76 76
77 HttpStreamFactoryImpl::Job* job = 77 HttpStreamFactoryImpl::Job* job =
78 new HttpStreamFactoryImpl::Job(factory, 78 new HttpStreamFactoryImpl::Job(factory,
79 session, 79 session.get(),
80 HttpRequestInfo(), 80 HttpRequestInfo(),
81 DEFAULT_PRIORITY, 81 DEFAULT_PRIORITY,
82 SSLConfig(), 82 SSLConfig(),
83 SSLConfig(), 83 SSLConfig(),
84 NULL); 84 NULL);
85 request.AttachJob(job); 85 request.AttachJob(job);
86 EXPECT_EQ(DEFAULT_PRIORITY, job->priority()); 86 EXPECT_EQ(DEFAULT_PRIORITY, job->priority());
87 87
88 request.SetPriority(MEDIUM); 88 request.SetPriority(MEDIUM);
89 EXPECT_EQ(MEDIUM, job->priority()); 89 EXPECT_EQ(MEDIUM, job->priority());
90 90
91 // Make |job| the bound job. 91 // Make |job| the bound job.
92 request.OnStreamFailed(job, ERR_FAILED, SSLConfig()); 92 request.OnStreamFailed(job, ERR_FAILED, SSLConfig());
93 93
94 request.SetPriority(IDLE); 94 request.SetPriority(IDLE);
95 EXPECT_EQ(IDLE, job->priority()); 95 EXPECT_EQ(IDLE, job->priority());
96 } 96 }
97 97
98 } // namespace net 98 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_response_headers_unittest.cc ('k') | net/http/http_stream_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698