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

Side by Side Diff: net/quic/core/quic_framer_test.cc

Issue 2739313002: Remove multipath_enabled from quic_config and quic_connection. No functional change expected. (Closed)
Patch Set: Created 3 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/core/quic_connection_test.cc ('k') | net/quic/core/quic_packet_creator.h » ('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 "net/quic/core/quic_framer.h" 5 #include "net/quic/core/quic_framer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstdint> 8 #include <cstdint>
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 3524 matching lines...) Expand 10 before | Expand all | Expand 10 after
3535 TEST_P(QuicFramerTest, ConstructEncryptedPacket) { 3535 TEST_P(QuicFramerTest, ConstructEncryptedPacket) {
3536 // Since we are using ConstructEncryptedPacket, we have to set the framer's 3536 // Since we are using ConstructEncryptedPacket, we have to set the framer's
3537 // crypto to be Null. 3537 // crypto to be Null.
3538 framer_.SetDecrypter(ENCRYPTION_NONE, 3538 framer_.SetDecrypter(ENCRYPTION_NONE,
3539 new NullDecrypter(framer_.perspective())); 3539 new NullDecrypter(framer_.perspective()));
3540 framer_.SetEncrypter(ENCRYPTION_NONE, 3540 framer_.SetEncrypter(ENCRYPTION_NONE,
3541 new NullEncrypter(framer_.perspective())); 3541 new NullEncrypter(framer_.perspective()));
3542 QuicVersionVector versions; 3542 QuicVersionVector versions;
3543 versions.push_back(framer_.version()); 3543 versions.push_back(framer_.version());
3544 std::unique_ptr<QuicEncryptedPacket> packet(ConstructEncryptedPacket( 3544 std::unique_ptr<QuicEncryptedPacket> packet(ConstructEncryptedPacket(
3545 42, false, false, false, kTestQuicStreamId, kTestString, 3545 42, false, false, kTestQuicStreamId, kTestString,
3546 PACKET_8BYTE_CONNECTION_ID, PACKET_6BYTE_PACKET_NUMBER, &versions)); 3546 PACKET_8BYTE_CONNECTION_ID, PACKET_6BYTE_PACKET_NUMBER, &versions));
3547 3547
3548 MockFramerVisitor visitor; 3548 MockFramerVisitor visitor;
3549 framer_.set_visitor(&visitor); 3549 framer_.set_visitor(&visitor);
3550 EXPECT_CALL(visitor, OnPacket()).Times(1); 3550 EXPECT_CALL(visitor, OnPacket()).Times(1);
3551 EXPECT_CALL(visitor, OnUnauthenticatedPublicHeader(_)) 3551 EXPECT_CALL(visitor, OnUnauthenticatedPublicHeader(_))
3552 .Times(1) 3552 .Times(1)
3553 .WillOnce(Return(true)); 3553 .WillOnce(Return(true));
3554 EXPECT_CALL(visitor, OnUnauthenticatedHeader(_)) 3554 EXPECT_CALL(visitor, OnUnauthenticatedHeader(_))
3555 .Times(1) 3555 .Times(1)
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
3658 'o', ' ', 'w', 'o', 3658 'o', ' ', 'w', 'o',
3659 'r', 'l', 'd', '!', 3659 'r', 'l', 'd', '!',
3660 }; 3660 };
3661 // clang-format on 3661 // clang-format on
3662 3662
3663 QuicFramerFuzzFunc(packet, arraysize(packet)); 3663 QuicFramerFuzzFunc(packet, arraysize(packet));
3664 } 3664 }
3665 3665
3666 } // namespace test 3666 } // namespace test
3667 } // namespace net 3667 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_connection_test.cc ('k') | net/quic/core/quic_packet_creator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698