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

Unified Diff: components/domain_reliability/quic_error_mapping.cc

Issue 2028803002: Move kDeprecatedQuicErrorCode and kActiveQuicErrorCode to domain_reliability to keep (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | net/quic/quic_protocol.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/domain_reliability/quic_error_mapping.cc
diff --git a/components/domain_reliability/quic_error_mapping.cc b/components/domain_reliability/quic_error_mapping.cc
index 3eeac49feb3b02651656c17eafdfc399cd8757ed..494b03c4cbeb7652c6876874dbf9fd6200c4fc42 100644
--- a/components/domain_reliability/quic_error_mapping.cc
+++ b/components/domain_reliability/quic_error_mapping.cc
@@ -235,7 +235,13 @@ const struct QuicErrorMapping {
{ net::QUIC_LAST_ERROR, "quic.last_error"}
};
-static_assert(arraysize(kQuicErrorMap) == net::kActiveQuicErrorCount,
+// Must be updated any time a net::QuicErrorCode is deprecated in
+// net/quic/quic_protocol.h.
+const int kDeprecatedQuicErrorCount = 4;
+const int kActiveQuicErrorCount =
+ net::QUIC_LAST_ERROR - kDeprecatedQuicErrorCount;
+
+static_assert(arraysize(kQuicErrorMap) == kActiveQuicErrorCount,
"quic_error_map is not in sync with quic protocol!");
} // namespace
« no previous file with comments | « no previous file | net/quic/quic_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698