| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <sys/epoll.h> | 6 #include <sys/epoll.h> |
| 7 | 7 |
| 8 #include <cstdint> | 8 #include <cstdint> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1764 QuicSpdySession* const client_session = client_->client()->session(); | 1764 QuicSpdySession* const client_session = client_->client()->session(); |
| 1765 QuicDispatcher* dispatcher = | 1765 QuicDispatcher* dispatcher = |
| 1766 QuicServerPeer::GetDispatcher(server_thread_->server()); | 1766 QuicServerPeer::GetDispatcher(server_thread_->server()); |
| 1767 auto server_session = static_cast<QuicSpdySession*>( | 1767 auto server_session = static_cast<QuicSpdySession*>( |
| 1768 dispatcher->session_map().begin()->second.get()); | 1768 dispatcher->session_map().begin()->second.get()); |
| 1769 ExpectFlowControlsSynced(client_session->flow_controller(), | 1769 ExpectFlowControlsSynced(client_session->flow_controller(), |
| 1770 server_session->flow_controller()); | 1770 server_session->flow_controller()); |
| 1771 ExpectFlowControlsSynced( | 1771 ExpectFlowControlsSynced( |
| 1772 QuicSessionPeer::GetCryptoStream(client_session)->flow_controller(), | 1772 QuicSessionPeer::GetCryptoStream(client_session)->flow_controller(), |
| 1773 QuicSessionPeer::GetCryptoStream(server_session)->flow_controller()); | 1773 QuicSessionPeer::GetCryptoStream(server_session)->flow_controller()); |
| 1774 SpdyFramer spdy_framer; | 1774 SpdyFramer spdy_framer(SpdyFramer::ENABLE_COMPRESSION); |
| 1775 SpdySettingsIR settings_frame; | 1775 SpdySettingsIR settings_frame; |
| 1776 settings_frame.AddSetting(SETTINGS_MAX_HEADER_LIST_SIZE, false, false, | 1776 settings_frame.AddSetting(SETTINGS_MAX_HEADER_LIST_SIZE, false, false, |
| 1777 kDefaultMaxUncompressedHeaderSize); | 1777 kDefaultMaxUncompressedHeaderSize); |
| 1778 SpdySerializedFrame frame(spdy_framer.SerializeFrame(settings_frame)); | 1778 SpdySerializedFrame frame(spdy_framer.SerializeFrame(settings_frame)); |
| 1779 QuicFlowController* client_header_stream_flow_controller = | 1779 QuicFlowController* client_header_stream_flow_controller = |
| 1780 QuicSpdySessionPeer::GetHeadersStream(client_session)->flow_controller(); | 1780 QuicSpdySessionPeer::GetHeadersStream(client_session)->flow_controller(); |
| 1781 QuicFlowController* server_header_stream_flow_controller = | 1781 QuicFlowController* server_header_stream_flow_controller = |
| 1782 QuicSpdySessionPeer::GetHeadersStream(server_session)->flow_controller(); | 1782 QuicSpdySessionPeer::GetHeadersStream(server_session)->flow_controller(); |
| 1783 if (FLAGS_quic_send_max_header_list_size) { | 1783 if (FLAGS_quic_send_max_header_list_size) { |
| 1784 // Both client and server are sending this SETTINGS frame, and the send | 1784 // Both client and server are sending this SETTINGS frame, and the send |
| (...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2990 client_->WaitForResponse(); | 2990 client_->WaitForResponse(); |
| 2991 EXPECT_EQ(kBarResponseBody, client_->response_body()); | 2991 EXPECT_EQ(kBarResponseBody, client_->response_body()); |
| 2992 QuicConnectionStats client_stats = | 2992 QuicConnectionStats client_stats = |
| 2993 client_->client()->session()->connection()->GetStats(); | 2993 client_->client()->session()->connection()->GetStats(); |
| 2994 EXPECT_EQ(0u, client_stats.packets_lost); | 2994 EXPECT_EQ(0u, client_stats.packets_lost); |
| 2995 EXPECT_EQ(1, client_->client()->GetNumSentClientHellos()); | 2995 EXPECT_EQ(1, client_->client()->GetNumSentClientHellos()); |
| 2996 } | 2996 } |
| 2997 } // namespace | 2997 } // namespace |
| 2998 } // namespace test | 2998 } // namespace test |
| 2999 } // namespace net | 2999 } // namespace net |
| OLD | NEW |