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 3018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3029 void OnWindowUpdateFrame(const QuicWindowUpdateFrame& frame) override { | 3029 void OnWindowUpdateFrame(const QuicWindowUpdateFrame& frame) override { |
3030 ++num_window_update_frames_; | 3030 ++num_window_update_frames_; |
3031 } | 3031 } |
3032 | 3032 |
3033 private: | 3033 private: |
3034 size_t num_window_update_frames_; | 3034 size_t num_window_update_frames_; |
3035 }; | 3035 }; |
3036 | 3036 |
3037 TEST_P(EndToEndTest, WindowUpdateInAck) { | 3037 TEST_P(EndToEndTest, WindowUpdateInAck) { |
3038 FLAGS_quic_reloadable_flag_quic_enable_version_38 = true; | 3038 FLAGS_quic_reloadable_flag_quic_enable_version_38 = true; |
3039 FLAGS_quic_enable_version_39 = true; | 3039 FLAGS_quic_reloadable_flag_quic_enable_version_39 = true; |
3040 ASSERT_TRUE(Initialize()); | 3040 ASSERT_TRUE(Initialize()); |
3041 EXPECT_TRUE(client_->client()->WaitForCryptoHandshakeConfirmed()); | 3041 EXPECT_TRUE(client_->client()->WaitForCryptoHandshakeConfirmed()); |
3042 WindowUpdateObserver observer; | 3042 WindowUpdateObserver observer; |
3043 QuicConnection* client_connection = | 3043 QuicConnection* client_connection = |
3044 client_->client()->session()->connection(); | 3044 client_->client()->session()->connection(); |
3045 client_connection->set_debug_visitor(&observer); | 3045 client_connection->set_debug_visitor(&observer); |
3046 QuicVersion version = client_connection->version(); | 3046 QuicVersion version = client_connection->version(); |
3047 // 100KB body. | 3047 // 100KB body. |
3048 string body(100 * 1024, 'a'); | 3048 string body(100 * 1024, 'a'); |
3049 SpdyHeaderBlock headers; | 3049 SpdyHeaderBlock headers; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3109 client_->WaitForResponse(); | 3109 client_->WaitForResponse(); |
3110 EXPECT_EQ(kBarResponseBody, client_->response_body()); | 3110 EXPECT_EQ(kBarResponseBody, client_->response_body()); |
3111 QuicConnectionStats client_stats = | 3111 QuicConnectionStats client_stats = |
3112 client_->client()->session()->connection()->GetStats(); | 3112 client_->client()->session()->connection()->GetStats(); |
3113 EXPECT_EQ(0u, client_stats.packets_lost); | 3113 EXPECT_EQ(0u, client_stats.packets_lost); |
3114 EXPECT_EQ(1, client_->client()->GetNumSentClientHellos()); | 3114 EXPECT_EQ(1, client_->client()->GetNumSentClientHellos()); |
3115 } | 3115 } |
3116 } // namespace | 3116 } // namespace |
3117 } // namespace test | 3117 } // namespace test |
3118 } // namespace net | 3118 } // namespace net |
OLD | NEW |