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

Unified Diff: net/quic/test_tools/quic_multipath_sent_packet_manager_peer.cc

Issue 2183493002: Add a merely pass-through QuicMultipathSentPacketManager. Protected behind blocked flag FLAGS_quic_… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/test_tools/quic_multipath_sent_packet_manager_peer.cc
diff --git a/net/quic/test_tools/quic_multipath_sent_packet_manager_peer.cc b/net/quic/test_tools/quic_multipath_sent_packet_manager_peer.cc
new file mode 100644
index 0000000000000000000000000000000000000000..fc5d267a8eff00abc090ca640831d275c01b38be
--- /dev/null
+++ b/net/quic/test_tools/quic_multipath_sent_packet_manager_peer.cc
@@ -0,0 +1,25 @@
+#include "net/quic/test_tools/quic_multipath_sent_packet_manager_peer.h"
Zhongyi Shi 2016/07/25 22:30:34 ditto
+
+namespace net {
+namespace test {
+
+// static
+void QuicMultipathSentPacketManagerPeer::AddPathWithCloseState(
+ QuicMultipathSentPacketManager* multipath_manager,
+ QuicSentPacketManagerInterface* manager) {
+ multipath_manager->path_managers_info_.push_back(
+ QuicMultipathSentPacketManager::PathSentPacketManagerInfo(
+ manager, QuicMultipathSentPacketManager::CLOSING));
+}
+
+// static
+void QuicMultipathSentPacketManagerPeer::AddPathWithActiveState(
+ QuicMultipathSentPacketManager* multipath_manager,
+ QuicSentPacketManagerInterface* manager) {
+ multipath_manager->path_managers_info_.push_back(
+ QuicMultipathSentPacketManager::PathSentPacketManagerInfo(
+ manager, QuicMultipathSentPacketManager::ACTIVE));
+}
+
+} // namespace test
+} // namespace net

Powered by Google App Engine
This is Rietveld 408576698