| 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" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
| 13 #include "base/files/scoped_temp_dir.h" |
| 13 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
| 14 #include "base/scoped_temp_dir.h" | |
| 15 #include "net/base/auth.h" | 15 #include "net/base/auth.h" |
| 16 #include "net/base/net_log_unittest.h" | 16 #include "net/base/net_log_unittest.h" |
| 17 #include "net/base/upload_data.h" | 17 #include "net/base/upload_data.h" |
| 18 #include "net/base/upload_data_stream.h" | 18 #include "net/base/upload_data_stream.h" |
| 19 #include "net/http/http_network_session_peer.h" | 19 #include "net/http/http_network_session_peer.h" |
| 20 #include "net/http/http_transaction_unittest.h" | 20 #include "net/http/http_transaction_unittest.h" |
| 21 #include "net/socket/client_socket_pool_base.h" | 21 #include "net/socket/client_socket_pool_base.h" |
| 22 #include "net/spdy/buffered_spdy_framer.h" | 22 #include "net/spdy/buffered_spdy_framer.h" |
| 23 #include "net/spdy/spdy_http_stream.h" | 23 #include "net/spdy/spdy_http_stream.h" |
| 24 #include "net/spdy/spdy_http_utils.h" | 24 #include "net/spdy/spdy_http_utils.h" |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 private: | 569 private: |
| 570 scoped_ptr<UploadDataStream> upload_data_stream_; | 570 scoped_ptr<UploadDataStream> upload_data_stream_; |
| 571 bool google_get_request_initialized_; | 571 bool google_get_request_initialized_; |
| 572 bool google_post_request_initialized_; | 572 bool google_post_request_initialized_; |
| 573 bool google_chunked_post_request_initialized_; | 573 bool google_chunked_post_request_initialized_; |
| 574 HttpRequestInfo google_get_request_; | 574 HttpRequestInfo google_get_request_; |
| 575 HttpRequestInfo google_post_request_; | 575 HttpRequestInfo google_post_request_; |
| 576 HttpRequestInfo google_chunked_post_request_; | 576 HttpRequestInfo google_chunked_post_request_; |
| 577 HttpRequestInfo google_get_push_request_; | 577 HttpRequestInfo google_get_push_request_; |
| 578 SpdyTestStateHelper spdy_state_; | 578 SpdyTestStateHelper spdy_state_; |
| 579 ScopedTempDir temp_dir_; | 579 base::ScopedTempDir temp_dir_; |
| 580 }; | 580 }; |
| 581 | 581 |
| 582 //----------------------------------------------------------------------------- | 582 //----------------------------------------------------------------------------- |
| 583 // All tests are run with three different connection types: SPDY after NPN | 583 // All tests are run with three different connection types: SPDY after NPN |
| 584 // negotiation, SPDY without SSL, and SPDY with SSL. | 584 // negotiation, SPDY without SSL, and SPDY with SSL. |
| 585 INSTANTIATE_TEST_CASE_P(Spdy, | 585 INSTANTIATE_TEST_CASE_P(Spdy, |
| 586 SpdyNetworkTransactionSpdy2Test, | 586 SpdyNetworkTransactionSpdy2Test, |
| 587 ::testing::Values(SPDYNOSSL, SPDYSSL, SPDYNPN)); | 587 ::testing::Values(SPDYNOSSL, SPDYSSL, SPDYNPN)); |
| 588 | 588 |
| 589 | 589 |
| (...skipping 5178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5768 // And now we can allow everything else to run to completion. | 5768 // And now we can allow everything else to run to completion. |
| 5769 data.SetStop(10); | 5769 data.SetStop(10); |
| 5770 data.Run(); | 5770 data.Run(); |
| 5771 EXPECT_EQ(OK, callback2.WaitForResult()); | 5771 EXPECT_EQ(OK, callback2.WaitForResult()); |
| 5772 EXPECT_EQ(OK, callback3.WaitForResult()); | 5772 EXPECT_EQ(OK, callback3.WaitForResult()); |
| 5773 | 5773 |
| 5774 helper.VerifyDataConsumed(); | 5774 helper.VerifyDataConsumed(); |
| 5775 } | 5775 } |
| 5776 | 5776 |
| 5777 } // namespace net | 5777 } // namespace net |
| OLD | NEW |