OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "net/http/http_network_transaction.h" | 5 #include "net/http/http_network_transaction.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1049 } | 1049 } |
1050 EXPECT_EQ(OK, out.rv); | 1050 EXPECT_EQ(OK, out.rv); |
1051 } | 1051 } |
1052 | 1052 |
1053 // Similar to ThreeGetsWithMaxConcurrent above, however this test adds | 1053 // Similar to ThreeGetsWithMaxConcurrent above, however this test adds |
1054 // a fourth transaction. The third and fourth transactions have | 1054 // a fourth transaction. The third and fourth transactions have |
1055 // different data ("hello!" vs "hello!hello!") and because of the | 1055 // different data ("hello!" vs "hello!hello!") and because of the |
1056 // user specified priority, we expect to see them inverted in | 1056 // user specified priority, we expect to see them inverted in |
1057 // the response from the server. | 1057 // the response from the server. |
1058 TEST_P(SpdyNetworkTransactionSpdy3Test, FourGetsWithMaxConcurrentPriority) { | 1058 TEST_P(SpdyNetworkTransactionSpdy3Test, FourGetsWithMaxConcurrentPriority) { |
| 1059 SpdySession::set_enable_ping_based_connection_checking(false); |
| 1060 |
1059 // Construct the request. | 1061 // Construct the request. |
1060 scoped_ptr<spdy::SpdyFrame> req(ConstructSpdyGet(NULL, 0, false, 1, LOWEST)); | 1062 scoped_ptr<spdy::SpdyFrame> req(ConstructSpdyGet(NULL, 0, false, 1, LOWEST)); |
1061 scoped_ptr<spdy::SpdyFrame> resp(ConstructSpdyGetSynReply(NULL, 0, 1)); | 1063 scoped_ptr<spdy::SpdyFrame> resp(ConstructSpdyGetSynReply(NULL, 0, 1)); |
1062 scoped_ptr<spdy::SpdyFrame> body(ConstructSpdyBodyFrame(1, false)); | 1064 scoped_ptr<spdy::SpdyFrame> body(ConstructSpdyBodyFrame(1, false)); |
1063 scoped_ptr<spdy::SpdyFrame> fbody(ConstructSpdyBodyFrame(1, true)); | 1065 scoped_ptr<spdy::SpdyFrame> fbody(ConstructSpdyBodyFrame(1, true)); |
1064 | 1066 |
1065 scoped_ptr<spdy::SpdyFrame> req2(ConstructSpdyGet(NULL, 0, false, 3, LOWEST)); | 1067 scoped_ptr<spdy::SpdyFrame> req2(ConstructSpdyGet(NULL, 0, false, 3, LOWEST)); |
1066 scoped_ptr<spdy::SpdyFrame> resp2(ConstructSpdyGetSynReply(NULL, 0, 3)); | 1068 scoped_ptr<spdy::SpdyFrame> resp2(ConstructSpdyGetSynReply(NULL, 0, 3)); |
1067 scoped_ptr<spdy::SpdyFrame> body2(ConstructSpdyBodyFrame(3, false)); | 1069 scoped_ptr<spdy::SpdyFrame> body2(ConstructSpdyBodyFrame(3, false)); |
1068 scoped_ptr<spdy::SpdyFrame> fbody2(ConstructSpdyBodyFrame(3, true)); | 1070 scoped_ptr<spdy::SpdyFrame> fbody2(ConstructSpdyBodyFrame(3, true)); |
(...skipping 4796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5865 << " Write index: " | 5867 << " Write index: " |
5866 << data->write_index(); | 5868 << data->write_index(); |
5867 | 5869 |
5868 // Verify the SYN_REPLY. | 5870 // Verify the SYN_REPLY. |
5869 HttpResponseInfo response = *trans->GetResponseInfo(); | 5871 HttpResponseInfo response = *trans->GetResponseInfo(); |
5870 EXPECT_TRUE(response.headers != NULL); | 5872 EXPECT_TRUE(response.headers != NULL); |
5871 EXPECT_EQ("HTTP/1.1 200 OK", response.headers->GetStatusLine()); | 5873 EXPECT_EQ("HTTP/1.1 200 OK", response.headers->GetStatusLine()); |
5872 } | 5874 } |
5873 | 5875 |
5874 } // namespace net | 5876 } // namespace net |
OLD | NEW |