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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 private: | 103 private: |
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(kProtoSPDY31, kProtoSPDY4_14, kProtoSPDY4_15)); | 113 testing::Values(kProtoSPDY31, kProtoSPDY4_14, kProtoSPDY4_15, kProtoSPDY4)); |
114 | 114 |
115 TEST_P(SpdyStreamTest, SendDataAfterOpen) { | 115 TEST_P(SpdyStreamTest, SendDataAfterOpen) { |
116 GURL url(kStreamUrl); | 116 GURL url(kStreamUrl); |
117 | 117 |
118 session_ = SpdySessionDependencies::SpdyCreateSession(&session_deps_); | 118 session_ = SpdySessionDependencies::SpdyCreateSession(&session_deps_); |
119 | 119 |
120 scoped_ptr<SpdyFrame> req( | 120 scoped_ptr<SpdyFrame> req( |
121 spdy_util_.ConstructSpdyPost( | 121 spdy_util_.ConstructSpdyPost( |
122 kStreamUrl, 1, kPostBodyLength, LOWEST, NULL, 0)); | 122 kStreamUrl, 1, kPostBodyLength, LOWEST, NULL, 0)); |
123 AddWrite(*req); | 123 AddWrite(*req); |
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1030 data.RunFor(1); // FIN | 1030 data.RunFor(1); // FIN |
1031 | 1031 |
1032 EXPECT_EQ(ERR_CONNECTION_CLOSED, delegate.WaitForClose()); | 1032 EXPECT_EQ(ERR_CONNECTION_CLOSED, delegate.WaitForClose()); |
1033 } | 1033 } |
1034 | 1034 |
1035 } // namespace | 1035 } // namespace |
1036 | 1036 |
1037 } // namespace test | 1037 } // namespace test |
1038 | 1038 |
1039 } // namespace net | 1039 } // namespace net |
OLD | NEW |