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

Side by Side Diff: net/spdy/spdy_stream_spdy3_unittest.cc

Issue 15829004: Update net/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: license twerk Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_stream_spdy2_unittest.cc ('k') | net/spdy/spdy_stream_test_util.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/memory/ref_counted.h" 6 #include "base/memory/ref_counted.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/strings/string_piece.h" 9 #include "base/strings/string_piece.h"
10 #include "net/base/completion_callback.h" 10 #include "net/base/completion_callback.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 MockConnect connect_data(SYNCHRONOUS, OK); 165 MockConnect connect_data(SYNCHRONOUS, OK);
166 data.set_connect_data(connect_data); 166 data.set_connect_data(connect_data);
167 167
168 session_deps_.socket_factory->AddSocketDataProvider(&data); 168 session_deps_.socket_factory->AddSocketDataProvider(&data);
169 169
170 InitializeSpdySession(spdy_session, host_port_pair_); 170 InitializeSpdySession(spdy_session, host_port_pair_);
171 BoundNetLog net_log; 171 BoundNetLog net_log;
172 172
173 // Conjure up a stream. 173 // Conjure up a stream.
174 SpdyStream stream(SPDY_PUSH_STREAM, 174 SpdyStream stream(SPDY_PUSH_STREAM,
175 spdy_session, 175 spdy_session.get(),
176 std::string(), 176 std::string(),
177 DEFAULT_PRIORITY, 177 DEFAULT_PRIORITY,
178 kSpdyStreamInitialWindowSize, 178 kSpdyStreamInitialWindowSize,
179 kSpdyStreamInitialWindowSize, 179 kSpdyStreamInitialWindowSize,
180 net_log); 180 net_log);
181 stream.set_stream_id(2); 181 stream.set_stream_id(2);
182 EXPECT_FALSE(stream.response_received()); 182 EXPECT_FALSE(stream.response_received());
183 EXPECT_FALSE(stream.HasUrl()); 183 EXPECT_FALSE(stream.HasUrl());
184 184
185 // Set a couple of headers. 185 // Set a couple of headers.
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 TEST_F(SpdyStreamSpdy3Test, ResumeAfterSendWindowSizeAdjustBidirectional) { 686 TEST_F(SpdyStreamSpdy3Test, ResumeAfterSendWindowSizeAdjustBidirectional) {
687 RunResumeAfterUnstallBidirectionalTest( 687 RunResumeAfterUnstallBidirectionalTest(
688 base::Bind(&AdjustStreamSendWindowSize)); 688 base::Bind(&AdjustStreamSendWindowSize));
689 } 689 }
690 690
691 } // namespace 691 } // namespace
692 692
693 } // namespace test 693 } // namespace test
694 694
695 } // namespace net 695 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_stream_spdy2_unittest.cc ('k') | net/spdy/spdy_stream_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698