1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "net/tools/quic/test_tools/limited_mtu_test_writer.h"
11 LimitedMtuTestWriter::LimitedMtuTestWriter(QuicByteCount mtu
) : mtu_(mtu
) {}
13 LimitedMtuTestWriter::~LimitedMtuTestWriter() {}
15 WriteResult
LimitedMtuTestWriter::WritePacket(
18 const IPAddressNumber
& self_address
,
19 const IPEndPoint
& peer_address
) {
22 return WriteResult(WRITE_STATUS_OK
, buf_len
);
25 return QuicPacketWriterWrapper::WritePacket(buffer
, buf_len
, self_address
,