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

Side by Side Diff: net/tools/quic/test_tools/limited_mtu_test_writer.h

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_LIMITED_MTU_TEST_WRITER_H_ 5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_LIMITED_MTU_TEST_WRITER_H_
6 #define NET_TOOLS_QUIC_TEST_TOOLS_LIMITED_MTU_TEST_WRITER_H_ 6 #define NET_TOOLS_QUIC_TEST_TOOLS_LIMITED_MTU_TEST_WRITER_H_
7 7
8 #include "base/basictypes.h" 8 #include <stddef.h>
9
10 #include "base/macros.h"
9 #include "net/quic/quic_protocol.h" 11 #include "net/quic/quic_protocol.h"
10 #include "net/tools/quic/quic_packet_writer_wrapper.h" 12 #include "net/tools/quic/quic_packet_writer_wrapper.h"
11 13
12 namespace net { 14 namespace net {
13 namespace tools { 15 namespace tools {
14 namespace test { 16 namespace test {
15 17
16 // Simulates a connection over a link with fixed MTU. Drops packets which 18 // Simulates a connection over a link with fixed MTU. Drops packets which
17 // exceed the MTU and passes the rest of them as-is. 19 // exceed the MTU and passes the rest of them as-is.
18 class LimitedMtuTestWriter : public QuicPacketWriterWrapper { 20 class LimitedMtuTestWriter : public QuicPacketWriterWrapper {
(...skipping 11 matching lines...) Expand all
30 QuicByteCount mtu_; 32 QuicByteCount mtu_;
31 33
32 DISALLOW_COPY_AND_ASSIGN(LimitedMtuTestWriter); 34 DISALLOW_COPY_AND_ASSIGN(LimitedMtuTestWriter);
33 }; 35 };
34 36
35 } // namespace test 37 } // namespace test
36 } // namespace tools 38 } // namespace tools
37 } // namespace net 39 } // namespace net
38 40
39 #endif // NET_TOOLS_QUIC_TEST_TOOLS_LIMITED_MTU_TEST_WRITER_H_ 41 #endif // NET_TOOLS_QUIC_TEST_TOOLS_LIMITED_MTU_TEST_WRITER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/test_tools/http_message.cc ('k') | net/tools/quic/test_tools/mock_epoll_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698