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