| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |