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 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 } | 1048 } |
1049 EXPECT_EQ(OK, out.rv); | 1049 EXPECT_EQ(OK, out.rv); |
1050 } | 1050 } |
1051 | 1051 |
1052 // Similar to ThreeGetsWithMaxConcurrent above, however this test adds | 1052 // Similar to ThreeGetsWithMaxConcurrent above, however this test adds |
1053 // a fourth transaction. The third and fourth transactions have | 1053 // a fourth transaction. The third and fourth transactions have |
1054 // different data ("hello!" vs "hello!hello!") and because of the | 1054 // different data ("hello!" vs "hello!hello!") and because of the |
1055 // user specified priority, we expect to see them inverted in | 1055 // user specified priority, we expect to see them inverted in |
1056 // the response from the server. | 1056 // the response from the server. |
1057 TEST_P(SpdyNetworkTransactionSpdy2Test, FourGetsWithMaxConcurrentPriority) { | 1057 TEST_P(SpdyNetworkTransactionSpdy2Test, FourGetsWithMaxConcurrentPriority) { |
| 1058 SpdySession::set_enable_ping_based_connection_checking(false); |
| 1059 |
1058 // Construct the request. | 1060 // Construct the request. |
1059 scoped_ptr<spdy::SpdyFrame> req(ConstructSpdyGet(NULL, 0, false, 1, LOWEST)); | 1061 scoped_ptr<spdy::SpdyFrame> req(ConstructSpdyGet(NULL, 0, false, 1, LOWEST)); |
1060 scoped_ptr<spdy::SpdyFrame> resp(ConstructSpdyGetSynReply(NULL, 0, 1)); | 1062 scoped_ptr<spdy::SpdyFrame> resp(ConstructSpdyGetSynReply(NULL, 0, 1)); |
1061 scoped_ptr<spdy::SpdyFrame> body(ConstructSpdyBodyFrame(1, false)); | 1063 scoped_ptr<spdy::SpdyFrame> body(ConstructSpdyBodyFrame(1, false)); |
1062 scoped_ptr<spdy::SpdyFrame> fbody(ConstructSpdyBodyFrame(1, true)); | 1064 scoped_ptr<spdy::SpdyFrame> fbody(ConstructSpdyBodyFrame(1, true)); |
1063 | 1065 |
1064 scoped_ptr<spdy::SpdyFrame> req2(ConstructSpdyGet(NULL, 0, false, 3, LOWEST)); | 1066 scoped_ptr<spdy::SpdyFrame> req2(ConstructSpdyGet(NULL, 0, false, 3, LOWEST)); |
1065 scoped_ptr<spdy::SpdyFrame> resp2(ConstructSpdyGetSynReply(NULL, 0, 3)); | 1067 scoped_ptr<spdy::SpdyFrame> resp2(ConstructSpdyGetSynReply(NULL, 0, 3)); |
1066 scoped_ptr<spdy::SpdyFrame> body2(ConstructSpdyBodyFrame(3, false)); | 1068 scoped_ptr<spdy::SpdyFrame> body2(ConstructSpdyBodyFrame(3, false)); |
1067 scoped_ptr<spdy::SpdyFrame> fbody2(ConstructSpdyBodyFrame(3, true)); | 1069 scoped_ptr<spdy::SpdyFrame> fbody2(ConstructSpdyBodyFrame(3, true)); |
(...skipping 4433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5501 << " Write index: " | 5503 << " Write index: " |
5502 << data->write_index(); | 5504 << data->write_index(); |
5503 | 5505 |
5504 // Verify the SYN_REPLY. | 5506 // Verify the SYN_REPLY. |
5505 HttpResponseInfo response = *trans->GetResponseInfo(); | 5507 HttpResponseInfo response = *trans->GetResponseInfo(); |
5506 EXPECT_TRUE(response.headers != NULL); | 5508 EXPECT_TRUE(response.headers != NULL); |
5507 EXPECT_EQ("HTTP/1.1 200 OK", response.headers->GetStatusLine()); | 5509 EXPECT_EQ("HTTP/1.1 200 OK", response.headers->GetStatusLine()); |
5508 } | 5510 } |
5509 | 5511 |
5510 } // namespace net | 5512 } // namespace net |
OLD | NEW |