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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // Used by Add{Read,Write}() above. | 104 // Used by Add{Read,Write}() above. |
105 std::vector<MockWrite> writes_; | 105 std::vector<MockWrite> writes_; |
106 std::vector<MockRead> reads_; | 106 std::vector<MockRead> reads_; |
107 int offset_; | 107 int offset_; |
108 }; | 108 }; |
109 | 109 |
110 INSTANTIATE_TEST_CASE_P( | 110 INSTANTIATE_TEST_CASE_P( |
111 NextProto, | 111 NextProto, |
112 SpdyStreamTest, | 112 SpdyStreamTest, |
113 testing::Values(kProtoDeprecatedSPDY2, | 113 testing::Values(kProtoDeprecatedSPDY2, |
114 kProtoSPDY3, kProtoSPDY31, kProtoSPDY4)); | 114 kProtoSPDY3, kProtoSPDY31, kProtoSPDY4_14, kProtoSPDY4_15)); |
115 | 115 |
116 TEST_P(SpdyStreamTest, SendDataAfterOpen) { | 116 TEST_P(SpdyStreamTest, SendDataAfterOpen) { |
117 GURL url(kStreamUrl); | 117 GURL url(kStreamUrl); |
118 | 118 |
119 session_ = SpdySessionDependencies::SpdyCreateSession(&session_deps_); | 119 session_ = SpdySessionDependencies::SpdyCreateSession(&session_deps_); |
120 | 120 |
121 scoped_ptr<SpdyFrame> req( | 121 scoped_ptr<SpdyFrame> req( |
122 spdy_util_.ConstructSpdyPost( | 122 spdy_util_.ConstructSpdyPost( |
123 kStreamUrl, 1, kPostBodyLength, LOWEST, NULL, 0)); | 123 kStreamUrl, 1, kPostBodyLength, LOWEST, NULL, 0)); |
124 AddWrite(*req); | 124 AddWrite(*req); |
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 data.RunFor(1); // FIN | 1050 data.RunFor(1); // FIN |
1051 | 1051 |
1052 EXPECT_EQ(ERR_CONNECTION_CLOSED, delegate.WaitForClose()); | 1052 EXPECT_EQ(ERR_CONNECTION_CLOSED, delegate.WaitForClose()); |
1053 } | 1053 } |
1054 | 1054 |
1055 } // namespace | 1055 } // namespace |
1056 | 1056 |
1057 } // namespace test | 1057 } // namespace test |
1058 | 1058 |
1059 } // namespace net | 1059 } // namespace net |
OLD | NEW |