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

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

Issue 627583002: Remove QuicSentPacketManager::DebugVisitor's OnSentPacket, since it's (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@client_provides_an_STK_76455340
Patch Set: Created 6 years, 2 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
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_connection.h" 5 #include "net/quic/quic_connection.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
(...skipping 3906 matching lines...) Expand 10 before | Expand all | Expand 10 after
3917 EXPECT_LT(max_packets_per_fec_group, creator->max_packets_per_fec_group()); 3917 EXPECT_LT(max_packets_per_fec_group, creator->max_packets_per_fec_group());
3918 } 3918 }
3919 3919
3920 class MockQuicConnectionDebugVisitor 3920 class MockQuicConnectionDebugVisitor
3921 : public QuicConnectionDebugVisitor { 3921 : public QuicConnectionDebugVisitor {
3922 public: 3922 public:
3923 MOCK_METHOD1(OnFrameAddedToPacket, 3923 MOCK_METHOD1(OnFrameAddedToPacket,
3924 void(const QuicFrame&)); 3924 void(const QuicFrame&));
3925 3925
3926 MOCK_METHOD6(OnPacketSent, 3926 MOCK_METHOD6(OnPacketSent,
3927 void(QuicPacketSequenceNumber, 3927 void(const SerializedPacket&,
3928 QuicPacketSequenceNumber, 3928 QuicPacketSequenceNumber,
3929 EncryptionLevel, 3929 EncryptionLevel,
3930 TransmissionType, 3930 TransmissionType,
3931 const QuicEncryptedPacket&, 3931 const QuicEncryptedPacket&,
3932 WriteResult)); 3932 QuicTime));
3933 3933
3934 MOCK_METHOD3(OnPacketReceived, 3934 MOCK_METHOD3(OnPacketReceived,
3935 void(const IPEndPoint&, 3935 void(const IPEndPoint&,
3936 const IPEndPoint&, 3936 const IPEndPoint&,
3937 const QuicEncryptedPacket&)); 3937 const QuicEncryptedPacket&));
3938 3938
3939 MOCK_METHOD1(OnProtocolVersionMismatch, 3939 MOCK_METHOD1(OnProtocolVersionMismatch,
3940 void(QuicVersion)); 3940 void(QuicVersion));
3941 3941
3942 MOCK_METHOD1(OnPacketHeader, 3942 MOCK_METHOD1(OnPacketHeader,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
4008 QuicBlockedFrame blocked; 4008 QuicBlockedFrame blocked;
4009 blocked.stream_id = 3; 4009 blocked.stream_id = 3;
4010 EXPECT_CALL(visitor_, OnBlockedFrames(_)); 4010 EXPECT_CALL(visitor_, OnBlockedFrames(_));
4011 ProcessFramePacket(QuicFrame(&blocked)); 4011 ProcessFramePacket(QuicFrame(&blocked));
4012 EXPECT_TRUE(ack_alarm->IsSet()); 4012 EXPECT_TRUE(ack_alarm->IsSet());
4013 } 4013 }
4014 4014
4015 } // namespace 4015 } // namespace
4016 } // namespace test 4016 } // namespace test
4017 } // namespace net 4017 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698