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

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

Issue 763833003: Remove using namespace in net/quic/quic_stream_sequencer.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix missing part device_cloud_policy_manager_chromeos_unittest.cc Created 6 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
« no previous file with comments | « net/tools/quic/quic_spdy_server_stream.h ('k') | net/tools/quic/test_tools/quic_test_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PACKET_DROPPING_TEST_WRITER_H_ 5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_PACKET_DROPPING_TEST_WRITER_H_
6 #define NET_TOOLS_QUIC_TEST_TOOLS_PACKET_DROPPING_TEST_WRITER_H_ 6 #define NET_TOOLS_QUIC_TEST_TOOLS_PACKET_DROPPING_TEST_WRITER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string>
9 10
10 #include "base/basictypes.h" 11 #include "base/basictypes.h"
11 #include "base/logging.h" 12 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
13 #include "base/synchronization/lock.h" 14 #include "base/synchronization/lock.h"
14 #include "net/quic/quic_alarm.h" 15 #include "net/quic/quic_alarm.h"
15 #include "net/quic/test_tools/quic_test_utils.h" 16 #include "net/quic/test_tools/quic_test_utils.h"
16 #include "net/tools/quic/quic_epoll_clock.h" 17 #include "net/tools/quic/quic_epoll_clock.h"
17 #include "net/tools/quic/quic_packet_writer_wrapper.h" 18 #include "net/tools/quic/quic_packet_writer_wrapper.h"
18 #include "net/tools/quic/test_tools/quic_test_client.h" 19 #include "net/tools/quic/test_tools/quic_test_client.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // A single packet which will be sent at the supplied send_time. 117 // A single packet which will be sent at the supplied send_time.
117 struct DelayedWrite { 118 struct DelayedWrite {
118 public: 119 public:
119 DelayedWrite(const char* buffer, 120 DelayedWrite(const char* buffer,
120 size_t buf_len, 121 size_t buf_len,
121 const IPAddressNumber& self_address, 122 const IPAddressNumber& self_address,
122 const IPEndPoint& peer_address, 123 const IPEndPoint& peer_address,
123 QuicTime send_time); 124 QuicTime send_time);
124 ~DelayedWrite(); 125 ~DelayedWrite();
125 126
126 string buffer; 127 std::string buffer;
127 const IPAddressNumber self_address; 128 const IPAddressNumber self_address;
128 const IPEndPoint peer_address; 129 const IPEndPoint peer_address;
129 QuicTime send_time; 130 QuicTime send_time;
130 }; 131 };
131 132
132 typedef std::list<DelayedWrite> DelayedPacketList; 133 typedef std::list<DelayedWrite> DelayedPacketList;
133 134
134 const QuicClock* clock_; 135 const QuicClock* clock_;
135 scoped_ptr<QuicAlarm> write_unblocked_alarm_; 136 scoped_ptr<QuicAlarm> write_unblocked_alarm_;
136 scoped_ptr<QuicAlarm> delay_alarm_; 137 scoped_ptr<QuicAlarm> delay_alarm_;
(...skipping 12 matching lines...) Expand all
149 QuicByteCount buffer_size_; 150 QuicByteCount buffer_size_;
150 151
151 DISALLOW_COPY_AND_ASSIGN(PacketDroppingTestWriter); 152 DISALLOW_COPY_AND_ASSIGN(PacketDroppingTestWriter);
152 }; 153 };
153 154
154 } // namespace test 155 } // namespace test
155 } // namespace tools 156 } // namespace tools
156 } // namespace net 157 } // namespace net
157 158
158 #endif // NET_TOOLS_QUIC_TEST_TOOLS_PACKET_DROPPING_TEST_WRITER_H_ 159 #endif // NET_TOOLS_QUIC_TEST_TOOLS_PACKET_DROPPING_TEST_WRITER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_spdy_server_stream.h ('k') | net/tools/quic/test_tools/quic_test_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698