summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-25 15:51:05 +0000
committerrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-25 15:51:05 +0000
commit7759f8540eb40bfed0026921c53002618b5971e0 (patch)
treebff54a04689446551727e8cc8811268493dac74e /net
parent1e9342d0880aba65fe4dff1398011caf05eabff4 (diff)
downloadchromium_src-7759f8540eb40bfed0026921c53002618b5971e0.zip
chromium_src-7759f8540eb40bfed0026921c53002618b5971e0.tar.gz
chromium_src-7759f8540eb40bfed0026921c53002618b5971e0.tar.bz2
Minor reformatting cleanup of quic framer.
Review URL: https://chromiumcodereview.appspot.com/12051065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178830 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/quic/quic_framer.cc10
-rw-r--r--net/quic/quic_framer.h2
-rw-r--r--net/quic/quic_framer_test.cc1
3 files changed, 7 insertions, 6 deletions
diff --git a/net/quic/quic_framer.cc b/net/quic/quic_framer.cc
index b59f0d4..c9392a6 100644
--- a/net/quic/quic_framer.cc
+++ b/net/quic/quic_framer.cc
@@ -131,7 +131,7 @@ QuicPacket* QuicFramer::ConstructMaxFrameDataPacket(
for (size_t i = 0; i < *num_consumed; ++i) {
const QuicFrame& frame = frames[i];
if (!writer.WriteUInt8(frame.type)) {
- return NULL;
+ return NULL;
}
switch (frame.type) {
@@ -161,7 +161,7 @@ QuicPacket* QuicFramer::ConstructMaxFrameDataPacket(
break;
case CONNECTION_CLOSE_FRAME:
if (!AppendConnectionCloseFramePayload(
- *frame.connection_close_frame, &writer)) {
+ *frame.connection_close_frame, &writer)) {
return NULL;
}
break;
@@ -350,7 +350,7 @@ bool QuicFramer::WritePacketHeader(const QuicPacketHeader& header,
return false;
}
- uint8 flags =static_cast<uint8>(header.public_header.flags);
+ uint8 flags = static_cast<uint8>(header.public_header.flags);
if (!writer->WriteUInt8(flags)) {
return false;
}
@@ -920,8 +920,8 @@ QuicPacketSequenceNumber QuicFramer::CalculateLargestObserved(
// See if the next thing is a gap in the missing packets: if it's a
// non-missing packet we can return it.
if (it != missing_packets.end() && previous_missing + 1 != *it) {
- return *it - 1;
- }
+ return *it - 1;
+ }
// Otherwise return the largest missing packet, as indirectly observed.
return *largest_written;
diff --git a/net/quic/quic_framer.h b/net/quic/quic_framer.h
index 31105f1..d507630 100644
--- a/net/quic/quic_framer.h
+++ b/net/quic/quic_framer.h
@@ -37,7 +37,7 @@ class NET_EXPORT_PRIVATE QuicFramerVisitorInterface {
// Called if an error is detected in the QUIC protocol.
virtual void OnError(QuicFramer* framer) = 0;
- // Called when a new packet has been recieved, before it
+ // Called when a new packet has been received, before it
// has been validated or processed.
virtual void OnPacket(const IPEndPoint& self_address,
const IPEndPoint& peer_address) = 0;
diff --git a/net/quic/quic_framer_test.cc b/net/quic/quic_framer_test.cc
index ca575f7..3c0497d 100644
--- a/net/quic/quic_framer_test.cc
+++ b/net/quic/quic_framer_test.cc
@@ -21,6 +21,7 @@ using base::hash_set;
using base::StringPiece;
using std::make_pair;
using std::map;
+using std::numeric_limits;
using std::string;
using std::vector;