| 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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 RunResumeAfterUnstallRequestResponseTest( | 537 RunResumeAfterUnstallRequestResponseTest( |
| 538 base::Bind(&IncreaseStreamSendWindowSize)); | 538 base::Bind(&IncreaseStreamSendWindowSize)); |
| 539 } | 539 } |
| 540 | 540 |
| 541 TEST_F(SpdyStreamSpdy3Test, ResumeAfterSendWindowSizeAdjustRequestResponse) { | 541 TEST_F(SpdyStreamSpdy3Test, ResumeAfterSendWindowSizeAdjustRequestResponse) { |
| 542 RunResumeAfterUnstallRequestResponseTest( | 542 RunResumeAfterUnstallRequestResponseTest( |
| 543 base::Bind(&AdjustStreamSendWindowSize)); | 543 base::Bind(&AdjustStreamSendWindowSize)); |
| 544 } | 544 } |
| 545 | 545 |
| 546 // Given an unstall function, runs a test to make sure that a | 546 // Given an unstall function, runs a test to make sure that a |
| 547 // bidrectional (i.e., non-HTTP-like) stream resumes after a stall and | 547 // bidirectional (i.e., non-HTTP-like) stream resumes after a stall |
| 548 // unstall. | 548 // and unstall. |
| 549 void SpdyStreamSpdy3Test::RunResumeAfterUnstallBidirectionalTest( | 549 void SpdyStreamSpdy3Test::RunResumeAfterUnstallBidirectionalTest( |
| 550 const UnstallFunction& unstall_function) { | 550 const UnstallFunction& unstall_function) { |
| 551 GURL url(kStreamUrl); | 551 GURL url(kStreamUrl); |
| 552 | 552 |
| 553 session_ = | 553 session_ = |
| 554 SpdySessionDependencies::SpdyCreateSessionDeterministic(&session_deps_); | 554 SpdySessionDependencies::SpdyCreateSessionDeterministic(&session_deps_); |
| 555 | 555 |
| 556 scoped_ptr<SpdyFrame> req( | 556 scoped_ptr<SpdyFrame> req( |
| 557 ConstructSpdyPost(kStreamUrl, 1, kPostBodyLength, LOWEST, NULL, 0)); | 557 ConstructSpdyPost(kStreamUrl, 1, kPostBodyLength, LOWEST, NULL, 0)); |
| 558 scoped_ptr<SpdyFrame> msg( | 558 scoped_ptr<SpdyFrame> msg( |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 DISABLED_ResumeAfterSendWindowSizeAdjustBidirectional) { | 637 DISABLED_ResumeAfterSendWindowSizeAdjustBidirectional) { |
| 638 RunResumeAfterUnstallBidirectionalTest( | 638 RunResumeAfterUnstallBidirectionalTest( |
| 639 base::Bind(&AdjustStreamSendWindowSize)); | 639 base::Bind(&AdjustStreamSendWindowSize)); |
| 640 } | 640 } |
| 641 | 641 |
| 642 } // namespace | 642 } // namespace |
| 643 | 643 |
| 644 } // namespace test | 644 } // namespace test |
| 645 | 645 |
| 646 } // namespace net | 646 } // namespace net |
| OLD | NEW |