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

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

Issue 987123002: Advertise HTTP/2 support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « net/spdy/spdy_session_unittest.cc ('k') | net/spdy/spdy_test_util_common.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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « net/spdy/spdy_session_unittest.cc ('k') | net/spdy/spdy_test_util_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698