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

Side by Side Diff: net/quic/quic_packet_generator_test.cc

Issue 1780573006: Deprecate FLAG_quic_no_unencrypted_fec. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@116180343
Patch Set: Created 4 years, 9 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/quic_packet_creator_test.cc ('k') | no next file » | 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 "net/quic/quic_packet_generator.h" 5 #include "net/quic/quic_packet_generator.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "net/quic/crypto/crypto_protocol.h" 10 #include "net/quic/crypto/crypto_protocol.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 class QuicPacketGeneratorTest : public ::testing::Test { 102 class QuicPacketGeneratorTest : public ::testing::Test {
103 public: 103 public:
104 QuicPacketGeneratorTest() 104 QuicPacketGeneratorTest()
105 : framer_(QuicSupportedVersions(), 105 : framer_(QuicSupportedVersions(),
106 QuicTime::Zero(), 106 QuicTime::Zero(),
107 Perspective::IS_CLIENT), 107 Perspective::IS_CLIENT),
108 generator_(42, &framer_, &random_, &buffer_allocator_, &delegate_), 108 generator_(42, &framer_, &random_, &buffer_allocator_, &delegate_),
109 creator_(QuicPacketGeneratorPeer::GetPacketCreator(&generator_)) { 109 creator_(QuicPacketGeneratorPeer::GetPacketCreator(&generator_)) {
110 // TODO(ianswett): Fix this test so it uses a non-null encrypter. 110 // TODO(ianswett): Fix this test so it uses a non-null encrypter.
111 FLAGS_quic_never_write_unencrypted_data = false; 111 FLAGS_quic_never_write_unencrypted_data = false;
112 FLAGS_quic_no_unencrypted_fec = false;
113 } 112 }
114 113
115 ~QuicPacketGeneratorTest() override { 114 ~QuicPacketGeneratorTest() override {
116 for (SerializedPacket& packet : packets_) { 115 for (SerializedPacket& packet : packets_) {
117 delete[] packet.encrypted_buffer; 116 delete[] packet.encrypted_buffer;
118 QuicUtils::ClearSerializedPacket(&packet); 117 QuicUtils::ClearSerializedPacket(&packet);
119 } 118 }
120 } 119 }
121 120
122 void SavePacket(SerializedPacket* packet) { 121 void SavePacket(SerializedPacket* packet) {
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 EXPECT_CALL(delegate_, OnSerializedPacket(_)) 909 EXPECT_CALL(delegate_, OnSerializedPacket(_))
911 .WillOnce(Invoke(this, &QuicPacketGeneratorTest::SavePacket)); 910 .WillOnce(Invoke(this, &QuicPacketGeneratorTest::SavePacket));
912 generator_.FlushAllQueuedFrames(); 911 generator_.FlushAllQueuedFrames();
913 EXPECT_FALSE(generator_.HasQueuedFrames()); 912 EXPECT_FALSE(generator_.HasQueuedFrames());
914 generator_.SetCurrentPath(kTestPathId1, 1, 0); 913 generator_.SetCurrentPath(kTestPathId1, 1, 0);
915 EXPECT_EQ(kTestPathId1, QuicPacketCreatorPeer::GetCurrentPath(creator_)); 914 EXPECT_EQ(kTestPathId1, QuicPacketCreatorPeer::GetCurrentPath(creator_));
916 } 915 }
917 916
918 } // namespace test 917 } // namespace test
919 } // namespace net 918 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_packet_creator_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698