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 "net/http/http_network_transaction.h" | 5 #include "net/http/http_network_transaction.h" |
6 | 6 |
7 #include <math.h> // ceil | 7 #include <math.h> // ceil |
8 #include <stdarg.h> | 8 #include <stdarg.h> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 | 416 |
417 // Original socket limits. Some tests set these. Safest to always restore | 417 // Original socket limits. Some tests set these. Safest to always restore |
418 // them once each test has been run. | 418 // them once each test has been run. |
419 int old_max_group_sockets_; | 419 int old_max_group_sockets_; |
420 int old_max_pool_sockets_; | 420 int old_max_pool_sockets_; |
421 }; | 421 }; |
422 | 422 |
423 INSTANTIATE_TEST_CASE_P( | 423 INSTANTIATE_TEST_CASE_P( |
424 NextProto, | 424 NextProto, |
425 HttpNetworkTransactionTest, | 425 HttpNetworkTransactionTest, |
426 testing::Values(kProtoSPDY31, kProtoSPDY4_14, kProtoSPDY4_15)); | 426 testing::Values(kProtoSPDY31, kProtoSPDY4_14, kProtoSPDY4_15, kProtoSPDY4)); |
427 | 427 |
428 namespace { | 428 namespace { |
429 | 429 |
430 class BeforeNetworkStartHandler { | 430 class BeforeNetworkStartHandler { |
431 public: | 431 public: |
432 explicit BeforeNetworkStartHandler(bool defer) | 432 explicit BeforeNetworkStartHandler(bool defer) |
433 : defer_on_before_network_start_(defer), | 433 : defer_on_before_network_start_(defer), |
434 observed_before_network_start_(false) {} | 434 observed_before_network_start_(false) {} |
435 | 435 |
436 void OnBeforeNetworkStart(bool* defer) { | 436 void OnBeforeNetworkStart(bool* defer) { |
(...skipping 13342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13779 ASSERT_TRUE(response); | 13779 ASSERT_TRUE(response); |
13780 ASSERT_TRUE(response->headers.get()); | 13780 ASSERT_TRUE(response->headers.get()); |
13781 | 13781 |
13782 EXPECT_EQ(101, response->headers->response_code()); | 13782 EXPECT_EQ(101, response->headers->response_code()); |
13783 | 13783 |
13784 trans.reset(); | 13784 trans.reset(); |
13785 session->CloseAllConnections(); | 13785 session->CloseAllConnections(); |
13786 } | 13786 } |
13787 | 13787 |
13788 } // namespace net | 13788 } // namespace net |
OLD | NEW |