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 <string> | 6 #include <string> |
7 #include <sys/epoll.h> | 7 #include <sys/epoll.h> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1318 | 1318 |
1319 // Server should be in a similar state: connection flow control window should | 1319 // Server should be in a similar state: connection flow control window should |
1320 // not have any bytes marked as received. | 1320 // not have any bytes marked as received. |
1321 server_thread_->Pause(); | 1321 server_thread_->Pause(); |
1322 QuicDispatcher* dispatcher = | 1322 QuicDispatcher* dispatcher = |
1323 QuicServerPeer::GetDispatcher(server_thread_->server()); | 1323 QuicServerPeer::GetDispatcher(server_thread_->server()); |
1324 QuicSession* session = dispatcher->session_map().begin()->second; | 1324 QuicSession* session = dispatcher->session_map().begin()->second; |
1325 QuicFlowController* server_connection_flow_controller = | 1325 QuicFlowController* server_connection_flow_controller = |
1326 session->flow_controller(); | 1326 session->flow_controller(); |
1327 EXPECT_EQ(kSessionIFCW, QuicFlowControllerPeer::ReceiveWindowSize( | 1327 EXPECT_EQ(kSessionIFCW, QuicFlowControllerPeer::ReceiveWindowSize( |
1328 server_connection_flow_controller)); | 1328 server_connection_flow_controller)); |
1329 server_thread_->Resume(); | 1329 server_thread_->Resume(); |
1330 } | 1330 } |
1331 | 1331 |
1332 } // namespace | 1332 } // namespace |
1333 } // namespace test | 1333 } // namespace test |
1334 } // namespace tools | 1334 } // namespace tools |
1335 } // namespace net | 1335 } // namespace net |
OLD | NEW |