| 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/quic/quic_chromium_client_session.h" | 5 #include "net/quic/quic_chromium_client_session.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/rand_util.h" | 11 #include "base/rand_util.h" |
| 12 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
| 13 #include "net/base/socket_performance_watcher.h" | |
| 14 #include "net/base/test_completion_callback.h" | 13 #include "net/base/test_completion_callback.h" |
| 15 #include "net/base/test_data_directory.h" | 14 #include "net/base/test_data_directory.h" |
| 16 #include "net/cert/cert_verify_result.h" | 15 #include "net/cert/cert_verify_result.h" |
| 17 #include "net/http/transport_security_state.h" | 16 #include "net/http/transport_security_state.h" |
| 18 #include "net/log/test_net_log.h" | 17 #include "net/log/test_net_log.h" |
| 19 #include "net/quic/crypto/aes_128_gcm_12_encrypter.h" | 18 #include "net/quic/crypto/aes_128_gcm_12_encrypter.h" |
| 20 #include "net/quic/crypto/crypto_protocol.h" | 19 #include "net/quic/crypto/crypto_protocol.h" |
| 21 #include "net/quic/crypto/proof_verifier_chromium.h" | 20 #include "net/quic/crypto/proof_verifier_chromium.h" |
| 22 #include "net/quic/crypto/quic_decrypter.h" | 21 #include "net/quic/crypto/quic_decrypter.h" |
| 23 #include "net/quic/crypto/quic_encrypter.h" | 22 #include "net/quic/crypto/quic_encrypter.h" |
| 24 #include "net/quic/crypto/quic_server_info.h" | 23 #include "net/quic/crypto/quic_server_info.h" |
| 25 #include "net/quic/quic_chromium_connection_helper.h" | 24 #include "net/quic/quic_chromium_connection_helper.h" |
| 26 #include "net/quic/quic_chromium_packet_reader.h" | 25 #include "net/quic/quic_chromium_packet_reader.h" |
| 27 #include "net/quic/quic_chromium_packet_writer.h" | 26 #include "net/quic/quic_chromium_packet_writer.h" |
| 28 #include "net/quic/quic_crypto_client_stream_factory.h" | 27 #include "net/quic/quic_crypto_client_stream_factory.h" |
| 29 #include "net/quic/quic_flags.h" | 28 #include "net/quic/quic_flags.h" |
| 30 #include "net/quic/quic_http_utils.h" | 29 #include "net/quic/quic_http_utils.h" |
| 31 #include "net/quic/quic_packet_writer.h" | 30 #include "net/quic/quic_packet_writer.h" |
| 32 #include "net/quic/quic_protocol.h" | 31 #include "net/quic/quic_protocol.h" |
| 33 #include "net/quic/test_tools/crypto_test_utils.h" | 32 #include "net/quic/test_tools/crypto_test_utils.h" |
| 34 #include "net/quic/test_tools/mock_crypto_client_stream_factory.h" | 33 #include "net/quic/test_tools/mock_crypto_client_stream_factory.h" |
| 35 #include "net/quic/test_tools/quic_chromium_client_session_peer.h" | 34 #include "net/quic/test_tools/quic_chromium_client_session_peer.h" |
| 36 #include "net/quic/test_tools/quic_spdy_session_peer.h" | 35 #include "net/quic/test_tools/quic_spdy_session_peer.h" |
| 37 #include "net/quic/test_tools/quic_test_packet_maker.h" | 36 #include "net/quic/test_tools/quic_test_packet_maker.h" |
| 38 #include "net/quic/test_tools/quic_test_utils.h" | 37 #include "net/quic/test_tools/quic_test_utils.h" |
| 39 #include "net/quic/test_tools/simple_quic_framer.h" | 38 #include "net/quic/test_tools/simple_quic_framer.h" |
| 39 #include "net/socket/socket_performance_watcher.h" |
| 40 #include "net/socket/socket_test_util.h" | 40 #include "net/socket/socket_test_util.h" |
| 41 #include "net/spdy/spdy_test_utils.h" | 41 #include "net/spdy/spdy_test_utils.h" |
| 42 #include "net/test/cert_test_util.h" | 42 #include "net/test/cert_test_util.h" |
| 43 #include "net/udp/datagram_client_socket.h" | 43 #include "net/udp/datagram_client_socket.h" |
| 44 | 44 |
| 45 using testing::_; | 45 using testing::_; |
| 46 | 46 |
| 47 namespace net { | 47 namespace net { |
| 48 namespace test { | 48 namespace test { |
| 49 namespace { | 49 namespace { |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 session_->connection()->SendPing(); | 520 session_->connection()->SendPing(); |
| 521 EXPECT_FALSE(session_->connection()->connected()); | 521 EXPECT_FALSE(session_->connection()->connected()); |
| 522 | 522 |
| 523 EXPECT_TRUE(socket_data.AllReadDataConsumed()); | 523 EXPECT_TRUE(socket_data.AllReadDataConsumed()); |
| 524 EXPECT_TRUE(socket_data.AllWriteDataConsumed()); | 524 EXPECT_TRUE(socket_data.AllWriteDataConsumed()); |
| 525 } | 525 } |
| 526 | 526 |
| 527 } // namespace | 527 } // namespace |
| 528 } // namespace test | 528 } // namespace test |
| 529 } // namespace net | 529 } // namespace net |
| OLD | NEW |