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

Unified Diff: net/quic/test_tools/quic_stream_sequencer_buffer_peer.cc

Issue 2629723003: Revert of Add quic_logging (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « net/quic/test_tools/fake_proof_source.cc ('k') | net/quic/test_tools/quic_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/quic_stream_sequencer_buffer_peer.cc
diff --git a/net/quic/test_tools/quic_stream_sequencer_buffer_peer.cc b/net/quic/test_tools/quic_stream_sequencer_buffer_peer.cc
index e7f38b20689484e45ab1ef2b476e9db4aeadb31a..422d388297eee76abc2475a51a372608526f1a33 100644
--- a/net/quic/test_tools/quic_stream_sequencer_buffer_peer.cc
+++ b/net/quic/test_tools/quic_stream_sequencer_buffer_peer.cc
@@ -5,7 +5,6 @@
#include "net/quic/test_tools/quic_stream_sequencer_buffer_peer.h"
#include "net/quic/core/quic_flags.h"
-#include "net/quic/platform/api/quic_logging.h"
#include "net/test/gtest_util.h"
typedef net::QuicStreamSequencerBuffer::BufferBlock BufferBlock;
@@ -68,29 +67,29 @@
bool capacity_sane = data_span <= buffer_->max_buffer_capacity_bytes_ &&
data_span >= buffer_->num_bytes_buffered_;
if (!capacity_sane) {
- QUIC_LOG(ERROR) << "data span is larger than capacity.";
- QUIC_LOG(ERROR) << "total read: " << buffer_->total_bytes_read_
- << " last byte: " << buffer_->gaps_.back().begin_offset;
+ LOG(ERROR) << "data span is larger than capacity.";
+ LOG(ERROR) << "total read: " << buffer_->total_bytes_read_
+ << " last byte: " << buffer_->gaps_.back().begin_offset;
}
bool total_read_sane =
buffer_->gaps_.front().begin_offset >= buffer_->total_bytes_read_;
if (!total_read_sane) {
- QUIC_LOG(ERROR) << "read across 1st gap.";
+ LOG(ERROR) << "read across 1st gap.";
}
bool read_offset_sane = buffer_->ReadOffset() < kBlockSizeBytes;
if (!capacity_sane) {
- QUIC_LOG(ERROR) << "read offset go beyond 1st block";
+ LOG(ERROR) << "read offset go beyond 1st block";
}
bool block_match_capacity = (buffer_->max_buffer_capacity_bytes_ <=
buffer_->blocks_count_ * kBlockSizeBytes) &&
(buffer_->max_buffer_capacity_bytes_ >
(buffer_->blocks_count_ - 1) * kBlockSizeBytes);
if (!capacity_sane) {
- QUIC_LOG(ERROR) << "block number not match capcaity.";
+ LOG(ERROR) << "block number not match capcaity.";
}
bool block_retired_when_empty = CheckEmptyInvariants();
if (!block_retired_when_empty) {
- QUIC_LOG(ERROR) << "block is not retired after use.";
+ LOG(ERROR) << "block is not retired after use.";
}
return capacity_sane && total_read_sane && read_offset_sane &&
block_match_capacity && block_retired_when_empty;
« no previous file with comments | « net/quic/test_tools/fake_proof_source.cc ('k') | net/quic/test_tools/quic_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698