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

Unified Diff: net/spdy/spdy_read_queue.cc

Issue 2388243003: Add test for SpdyReadQueue::Clear(). (Closed)
Patch Set: Created 4 years, 2 months 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
Index: net/spdy/spdy_read_queue.cc
diff --git a/net/spdy/spdy_read_queue.cc b/net/spdy/spdy_read_queue.cc
index 92a34e3e260cd0c73b2434972248f76bdec5ef00..0c1eaf5d7b52014da55b8067ad0cc59773306e3e 100644
--- a/net/spdy/spdy_read_queue.cc
+++ b/net/spdy/spdy_read_queue.cc
@@ -53,6 +53,7 @@ size_t SpdyReadQueue::Dequeue(char* out, size_t len) {
void SpdyReadQueue::Clear() {
queue_.clear();
+ total_size_ = 0;
}
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698