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

Unified Diff: net/quic/core/frames/quic_ack_frame.cc

Issue 2524523002: Remove various 'using std::' statements from QUIC code and use (Closed)
Patch Set: Rebase Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/crypto/strike_register_test.cc ('k') | net/quic/core/frames/quic_blocked_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/frames/quic_ack_frame.cc
diff --git a/net/quic/core/frames/quic_ack_frame.cc b/net/quic/core/frames/quic_ack_frame.cc
index bf0cc633c58ce78eee04997df7535e131b1c41e0..0f7464a9e264813d45f35e1f124a488cb912d238 100644
--- a/net/quic/core/frames/quic_ack_frame.cc
+++ b/net/quic/core/frames/quic_ack_frame.cc
@@ -6,8 +6,6 @@
#include "net/quic/core/quic_constants.h"
-using std::ostream;
-
namespace net {
bool IsAwaitingPacket(const QuicAckFrame& ack_frame,
@@ -26,7 +24,7 @@ QuicAckFrame::QuicAckFrame(const QuicAckFrame& other) = default;
QuicAckFrame::~QuicAckFrame() {}
-ostream& operator<<(std::ostream& os, const QuicAckFrame& ack_frame) {
+std::ostream& operator<<(std::ostream& os, const QuicAckFrame& ack_frame) {
os << "{ largest_observed: " << ack_frame.largest_observed
<< ", ack_delay_time: " << ack_frame.ack_delay_time.ToMicroseconds()
<< ", packets: [ " << ack_frame.packets << " ]"
@@ -150,7 +148,7 @@ PacketNumberQueue::const_reverse_iterator PacketNumberQueue::rend() const {
return packet_number_intervals_.rend();
}
-ostream& operator<<(ostream& os, const PacketNumberQueue& q) {
+std::ostream& operator<<(std::ostream& os, const PacketNumberQueue& q) {
for (const Interval<QuicPacketNumber>& interval : q) {
for (QuicPacketNumber packet_number = interval.min();
packet_number < interval.max(); ++packet_number) {
« no previous file with comments | « net/quic/core/crypto/strike_register_test.cc ('k') | net/quic/core/frames/quic_blocked_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698