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

Side by Side Diff: net/quic/test_tools/quic_test_utils.h

Issue 2649573002: Remove original_path_id from SerializedPacket and OnPacketSent. (Closed)
Patch Set: rebase Created 3 years, 11 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_packets.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 // Common utilities for Quic tests 5 // Common utilities for Quic tests
6 6
7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 DISALLOW_COPY_AND_ASSIGN(MockNetworkChangeVisitor); 844 DISALLOW_COPY_AND_ASSIGN(MockNetworkChangeVisitor);
845 }; 845 };
846 846
847 class MockQuicConnectionDebugVisitor : public QuicConnectionDebugVisitor { 847 class MockQuicConnectionDebugVisitor : public QuicConnectionDebugVisitor {
848 public: 848 public:
849 MockQuicConnectionDebugVisitor(); 849 MockQuicConnectionDebugVisitor();
850 ~MockQuicConnectionDebugVisitor() override; 850 ~MockQuicConnectionDebugVisitor() override;
851 851
852 MOCK_METHOD1(OnFrameAddedToPacket, void(const QuicFrame&)); 852 MOCK_METHOD1(OnFrameAddedToPacket, void(const QuicFrame&));
853 853
854 MOCK_METHOD5(OnPacketSent, 854 MOCK_METHOD4(OnPacketSent,
855 void(const SerializedPacket&, 855 void(const SerializedPacket&,
856 QuicPathId,
857 QuicPacketNumber, 856 QuicPacketNumber,
858 TransmissionType, 857 TransmissionType,
859 QuicTime)); 858 QuicTime));
860 859
861 MOCK_METHOD0(OnPingSent, void()); 860 MOCK_METHOD0(OnPingSent, void());
862 861
863 MOCK_METHOD3(OnPacketReceived, 862 MOCK_METHOD3(OnPacketReceived,
864 void(const QuicSocketAddress&, 863 void(const QuicSocketAddress&,
865 const QuicSocketAddress&, 864 const QuicSocketAddress&,
866 const QuicEncryptedPacket&)); 865 const QuicEncryptedPacket&));
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 iov->iov_base = const_cast<char*>(str.data()); 1006 iov->iov_base = const_cast<char*>(str.data());
1008 iov->iov_len = static_cast<size_t>(str.size()); 1007 iov->iov_len = static_cast<size_t>(str.size());
1009 QuicIOVector quic_iov(iov, 1, str.size()); 1008 QuicIOVector quic_iov(iov, 1, str.size());
1010 return quic_iov; 1009 return quic_iov;
1011 } 1010 }
1012 1011
1013 } // namespace test 1012 } // namespace test
1014 } // namespace net 1013 } // namespace net
1015 1014
1016 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 1015 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_packets.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698