Add presubmit to force use of QUIC_LOG
gfe-relnote: n/a, presubmit-metadata-only and test-only change
PiperOrigin-RevId: 245504156
Change-Id: Ie57ea97232ddcc6da5f2630418431ddfd3fe05ac
diff --git a/quic/core/quic_stream_sequencer_buffer_test.cc b/quic/core/quic_stream_sequencer_buffer_test.cc
index 01a1367..335aa2d 100644
--- a/quic/core/quic_stream_sequencer_buffer_test.cc
+++ b/quic/core/quic_stream_sequencer_buffer_test.cc
@@ -35,10 +35,10 @@
}
start_offset += iov[i].iov_len;
}
- LOG(ERROR) << "Could not locate char at offset " << offset << " in " << count
- << " iovecs";
+ QUIC_LOG(ERROR) << "Could not locate char at offset " << offset << " in "
+ << count << " iovecs";
for (size_t i = 0; i < count; ++i) {
- LOG(ERROR) << " iov[" << i << "].iov_len = " << iov[i].iov_len;
+ QUIC_LOG(ERROR) << " iov[" << i << "].iov_len = " << iov[i].iov_len;
}
return '\0';
}
diff --git a/quic/platform/api/quic_test.h b/quic/platform/api/quic_test.h
index f4d255a..2f32865 100644
--- a/quic/platform/api/quic_test.h
+++ b/quic/platform/api/quic_test.h
@@ -5,6 +5,7 @@
#ifndef QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
#define QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
+#include "net/third_party/quiche/src/quic/platform/api/quic_logging.h"
#include "net/quic/platform/impl/quic_test_impl.h"
using QuicFlagSaver = QuicFlagSaverImpl;
diff --git a/quic/quartc/test/quartc_data_source_test.cc b/quic/quartc/test/quartc_data_source_test.cc
index d39dc7f..a63bbb8 100644
--- a/quic/quartc/test/quartc_data_source_test.cc
+++ b/quic/quartc/test/quartc_data_source_test.cc
@@ -29,7 +29,8 @@
if (ParsedQuartcDataFrame::Parse(message, &frame)) {
frames_.push_back(frame);
} else {
- LOG(FATAL) << "Data source produced a frame it can't parse: " << message;
+ QUIC_LOG(FATAL) << "Data source produced a frame it can't parse: "
+ << message;
}
}
diff --git a/quic/test_tools/quic_test_client.h b/quic/test_tools/quic_test_client.h
index 46fc1cf..353c29e 100644
--- a/quic/test_tools/quic_test_client.h
+++ b/quic/test_tools/quic_test_client.h
@@ -185,8 +185,8 @@
void WaitForResponseForMs(int timeout_ms) {
WaitUntil(timeout_ms, [this]() { return !closed_stream_states_.empty(); });
if (response_complete()) {
- VLOG(1) << "Client received response:"
- << response_headers()->DebugString() << response_body();
+ QUIC_VLOG(1) << "Client received response:"
+ << response_headers()->DebugString() << response_body();
}
}