Index: net/tools/quic/end_to_end_test.cc |
diff --git a/net/tools/quic/end_to_end_test.cc b/net/tools/quic/end_to_end_test.cc |
index a91b2c74f57e73e841ae04212ffd21914266566d..5fc6ca93be037753934aea8357ce19003f5917ff 100644 |
--- a/net/tools/quic/end_to_end_test.cc |
+++ b/net/tools/quic/end_to_end_test.cc |
@@ -211,18 +211,12 @@ vector<TestParams> GetTestParams() { |
class ServerDelegate : public PacketDroppingTestWriter::Delegate { |
public: |
- ServerDelegate(TestWriterFactory* writer_factory, |
- QuicDispatcher* dispatcher) |
- : writer_factory_(writer_factory), |
- dispatcher_(dispatcher) {} |
+ explicit ServerDelegate(QuicDispatcher* dispatcher) |
+ : dispatcher_(dispatcher) {} |
~ServerDelegate() override {} |
- void OnPacketSent(WriteResult result) override { |
- writer_factory_->OnPacketSent(result); |
- } |
void OnCanWrite() override { dispatcher_->OnCanWrite(); } |
private: |
- TestWriterFactory* writer_factory_; |
QuicDispatcher* dispatcher_; |
}; |
@@ -230,7 +224,6 @@ class ClientDelegate : public PacketDroppingTestWriter::Delegate { |
public: |
explicit ClientDelegate(QuicClient* client) : client_(client) {} |
~ClientDelegate() override {} |
- void OnPacketSent(WriteResult /*result*/) override {} |
void OnCanWrite() override { |
EpollEvent event(EPOLLOUT, false); |
client_->OnEvent(client_->fd(), &event); |
@@ -412,7 +405,7 @@ class EndToEndTest : public ::testing::TestWithParam<TestParams> { |
server_writer_->Initialize( |
QuicDispatcherPeer::GetHelper(dispatcher), |
- new ServerDelegate(packet_writer_factory, dispatcher)); |
+ new ServerDelegate(dispatcher)); |
if (stream_factory_ != nullptr) { |
static_cast<QuicTestServer*>(server_thread_->server()) |
->SetSpdyStreamFactory(stream_factory_); |