Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: net/tools/quic/end_to_end_test.cc

Issue 2848633003: Rename FLAGS_quic_enable_version_39 to FLAGS_quic_reloadable_flag_quic_enable_version_39. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/core/quic_versions_test.cc ('k') | net/tools/quic/quic_dispatcher_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/quic/core/quic_versions_test.cc ('k') | net/tools/quic/quic_dispatcher_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698