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

Unified Diff: net/quic/test_tools/quic_test_utils.h

Issue 1031243002: Unify the QUIC dispatcher and make the QuicServer work. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: QuicChromeServerDispatchPacketTest Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/test_tools/mock_quic_dispatcher.h ('k') | net/quic/test_tools/quic_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/quic_test_utils.h
diff --git a/net/quic/test_tools/quic_test_utils.h b/net/quic/test_tools/quic_test_utils.h
index edc7b9c87bc4caf120381f49f07ce38f7349544f..8da940d5b33c8b9e42a4cc7ace1245d3136faff8 100644
--- a/net/quic/test_tools/quic_test_utils.h
+++ b/net/quic/test_tools/quic_test_utils.h
@@ -17,15 +17,15 @@
#include "net/quic/quic_ack_notifier.h"
#include "net/quic/quic_client_session_base.h"
#include "net/quic/quic_connection.h"
-#include "net/quic/quic_dispatcher.h"
#include "net/quic/quic_framer.h"
-#include "net/quic/quic_per_connection_packet_writer.h"
#include "net/quic/quic_protocol.h"
#include "net/quic/quic_sent_packet_manager.h"
#include "net/quic/quic_session.h"
#include "net/quic/test_tools/mock_clock.h"
#include "net/quic/test_tools/mock_random.h"
#include "net/spdy/spdy_framer.h"
+#include "net/tools/quic/quic_dispatcher.h"
+#include "net/tools/quic/quic_per_connection_packet_writer.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace net {
@@ -586,12 +586,12 @@ class MockNetworkChangeVisitor :
// Creates per-connection packet writers that register themselves with the
// TestWriterFactory on each write so that TestWriterFactory::OnPacketSent can
// be routed to the appropriate QuicConnection.
-class TestWriterFactory : public QuicDispatcher::PacketWriterFactory {
+class TestWriterFactory : public tools::QuicDispatcher::PacketWriterFactory {
public:
TestWriterFactory();
~TestWriterFactory() override;
- QuicPacketWriter* Create(QuicServerPacketWriter* writer,
+ QuicPacketWriter* Create(QuicPacketWriter* writer,
QuicConnection* connection) override;
// Calls OnPacketSent on the last QuicConnection to write through one of the
@@ -599,10 +599,11 @@ class TestWriterFactory : public QuicDispatcher::PacketWriterFactory {
void OnPacketSent(WriteResult result);
private:
- class PerConnectionPacketWriter : public QuicPerConnectionPacketWriter {
+ class PerConnectionPacketWriter
+ : public tools::QuicPerConnectionPacketWriter {
public:
PerConnectionPacketWriter(TestWriterFactory* factory,
- QuicServerPacketWriter* writer,
+ QuicPacketWriter* writer,
QuicConnection* connection);
~PerConnectionPacketWriter() override;
« no previous file with comments | « net/quic/test_tools/mock_quic_dispatcher.h ('k') | net/quic/test_tools/quic_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698