Replaces all uses of SPDY_BUG and SPDY_BUG_IF with the QUICHE equivalents.
PiperOrigin-RevId: 367467471
Change-Id: I3157d1cb22d5ee592859085667570b2cee38a480
diff --git a/http2/adapter/oghttp2_adapter.cc b/http2/adapter/oghttp2_adapter.cc
index 7b7d2a2..747d425 100644
--- a/http2/adapter/oghttp2_adapter.cc
+++ b/http2/adapter/oghttp2_adapter.cc
@@ -6,6 +6,7 @@
#include "absl/strings/str_cat.h"
#include "http2/adapter/http2_util.h"
#include "http2/adapter/window_manager.h"
+#include "common/platform/api/quiche_bug_tracker.h"
#include "spdy/core/spdy_framer.h"
#include "spdy/core/spdy_protocol.h"
@@ -33,15 +34,15 @@
~OgHttp2Session() override {}
ssize_t ProcessBytes(absl::string_view bytes) override {
- SPDY_BUG(oghttp2_process_bytes) << "Not implemented";
+ QUICHE_BUG(oghttp2_process_bytes) << "Not implemented";
return 0;
}
int Consume(Http2StreamId stream_id, size_t num_bytes) override {
auto it = stream_map_.find(stream_id);
if (it == stream_map_.end()) {
- // TODO(b/181586191): LOG_ERROR rather than SPDY_BUG.
- SPDY_BUG(stream_consume_notfound)
+ // TODO(b/181586191): LOG_ERROR rather than QUICHE_BUG.
+ QUICHE_BUG(stream_consume_notfound)
<< "Stream " << stream_id << " not found";
} else {
it->second.window_manager.MarkDataFlushed(num_bytes);
@@ -54,7 +55,7 @@
return !frames_.empty() || !serialized_prefix_.empty();
}
int GetRemoteWindowSize() const override {
- SPDY_BUG(peer_window_not_updated) << "Not implemented";
+ QUICHE_BUG(peer_window_not_updated) << "Not implemented";
return peer_window_;
}
@@ -135,7 +136,7 @@
}
void OgHttp2Adapter::SubmitMetadata(Http2StreamId stream_id, bool fin) {
- SPDY_BUG(oghttp2_submit_metadata) << "Not implemented";
+ QUICHE_BUG(oghttp2_submit_metadata) << "Not implemented";
}
std::string OgHttp2Adapter::GetBytesToWrite(absl::optional<size_t> max_bytes) {
diff --git a/http2/adapter/window_manager.cc b/http2/adapter/window_manager.cc
index a1b92d5..eef3714 100644
--- a/http2/adapter/window_manager.cc
+++ b/http2/adapter/window_manager.cc
@@ -2,8 +2,8 @@
#include <utility>
+#include "common/platform/api/quiche_bug_tracker.h"
#include "common/platform/api/quiche_logging.h"
-#include "spdy/platform/api/spdy_bug_tracker.h"
namespace http2 {
namespace adapter {
@@ -20,7 +20,7 @@
if (new_limit > limit_) {
window_ += (new_limit - limit_);
} else {
- SPDY_BUG(H2 window decrease)
+ QUICHE_BUG(H2 window decrease)
<< "Window size limit decrease not currently supported.";
}
limit_ = new_limit;
@@ -56,8 +56,8 @@
QUICHE_VLOG(2) << "WindowManager@" << this << " buffered: " << buffered_
<< " bytes: " << bytes;
if (buffered_ < bytes) {
- SPDY_BUG(bug_2816_1) << "WindowManager@" << this << " buffered underflow "
- << "buffered_: " << buffered_ << " bytes: " << bytes;
+ QUICHE_BUG(bug_2816_1) << "WindowManager@" << this << " buffered underflow "
+ << "buffered_: " << buffered_ << " bytes: " << bytes;
buffered_ = 0;
} else {
buffered_ -= bytes;