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

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

Issue 25977005: [SPDY] Do not advertise SPDY/2 by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 2 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_session_unittest.cc ('k') | net/spdy/spdy_websocket_stream_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 <cstddef> 5 #include <cstddef>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 private: 105 private:
106 // Used by Add{Read,Write}() above. 106 // Used by Add{Read,Write}() above.
107 std::vector<MockWrite> writes_; 107 std::vector<MockWrite> writes_;
108 std::vector<MockRead> reads_; 108 std::vector<MockRead> reads_;
109 int offset_; 109 int offset_;
110 }; 110 };
111 111
112 INSTANTIATE_TEST_CASE_P( 112 INSTANTIATE_TEST_CASE_P(
113 NextProto, 113 NextProto,
114 SpdyStreamTest, 114 SpdyStreamTest,
115 testing::Values(kProtoSPDY2, kProtoSPDY3, kProtoSPDY31, kProtoSPDY4a2, 115 testing::Values(kProtoDeprecatedSPDY2,
116 kProtoSPDY3, kProtoSPDY31, kProtoSPDY4a2,
116 kProtoHTTP2Draft04)); 117 kProtoHTTP2Draft04));
117 118
118 TEST_P(SpdyStreamTest, SendDataAfterOpen) { 119 TEST_P(SpdyStreamTest, SendDataAfterOpen) {
119 GURL url(kStreamUrl); 120 GURL url(kStreamUrl);
120 121
121 session_ = SpdySessionDependencies::SpdyCreateSession(&session_deps_); 122 session_ = SpdySessionDependencies::SpdyCreateSession(&session_deps_);
122 123
123 scoped_ptr<SpdyFrame> req( 124 scoped_ptr<SpdyFrame> req(
124 spdy_util_.ConstructSpdyPost( 125 spdy_util_.ConstructSpdyPost(
125 kStreamUrl, 1, kPostBodyLength, LOWEST, NULL, 0)); 126 kStreamUrl, 1, kPostBodyLength, LOWEST, NULL, 0));
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 991
991 RunResumeAfterUnstallBidirectionalTest( 992 RunResumeAfterUnstallBidirectionalTest(
992 base::Bind(&AdjustStreamSendWindowSize)); 993 base::Bind(&AdjustStreamSendWindowSize));
993 } 994 }
994 995
995 } // namespace 996 } // namespace
996 997
997 } // namespace test 998 } // namespace test
998 999
999 } // namespace net 1000 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_session_unittest.cc ('k') | net/spdy/spdy_websocket_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698