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

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

Issue 15555003: [SPDY] Remove SpdyStream::Delegate::OnSendBody()'s return value (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo Created 7 years, 7 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.cc ('k') | net/spdy/spdy_stream_test_util.h » ('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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « net/spdy/spdy_stream.cc ('k') | net/spdy/spdy_stream_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698