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

Unified Diff: net/tools/quic/test_tools/quic_dispatcher_peer.h

Issue 131743009: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use size_t instead of int to fix win_x64 compile error Created 6 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 side-by-side diff with in-line comments
Download patch
Index: net/tools/quic/test_tools/quic_dispatcher_peer.h
diff --git a/net/tools/quic/test_tools/quic_dispatcher_peer.h b/net/tools/quic/test_tools/quic_dispatcher_peer.h
index 249dcb3285c6156a8523d76742b843ba4f71d726..a6b72e0189d25b226becef36a062d8c0cfab10c0 100644
--- a/net/tools/quic/test_tools/quic_dispatcher_peer.h
+++ b/net/tools/quic/test_tools/quic_dispatcher_peer.h
@@ -5,11 +5,13 @@
#ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_
#define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_
-#include "net/quic/test_tools/quic_test_writer.h"
#include "net/tools/quic/quic_dispatcher.h"
namespace net {
namespace tools {
+
+class QuicPacketWriterWrapper;
+
namespace test {
class QuicDispatcherPeer {
@@ -18,10 +20,12 @@ class QuicDispatcherPeer {
QuicDispatcher* dispatcher,
QuicTimeWaitListManager* time_wait_list_manager);
+ // Injects |writer| into |dispatcher| beneath the top-level wrapper (to avoid
+ // messing up existing connections).
static void UseWriter(QuicDispatcher* dispatcher,
- net::test::QuicTestWriter* writer);
+ QuicPacketWriterWrapper* writer);
- static QuicPacketWriter* GetWriter(QuicDispatcher* dispatcher);
+ static QuicPacketWriterWrapper* GetWriter(QuicDispatcher* dispatcher);
static QuicEpollConnectionHelper* GetHelper(QuicDispatcher* dispatcher);
};
« no previous file with comments | « net/tools/quic/test_tools/packet_dropping_test_writer.cc ('k') | net/tools/quic/test_tools/quic_dispatcher_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698