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

Unified Diff: net/quic/quic_protocol_test.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 | « net/quic/quic_protocol.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_protocol_test.cc
diff --git a/net/quic/quic_protocol_test.cc b/net/quic/quic_protocol_test.cc
index 3eb315543166ddb05929b4389f3895b714b073c0..393702da325dbd9e9dcacbef8197b4e959f668f4 100644
--- a/net/quic/quic_protocol_test.cc
+++ b/net/quic/quic_protocol_test.cc
@@ -67,20 +67,6 @@ TEST(QuicProtocolTest, IsAawaitingPacket) {
EXPECT_TRUE(IsAwaitingPacket(ack_frame2, 50u, 20u));
}
-TEST(QuicProtocolTest, QuicDeprecatedErrorCodeCount) {
- // If you deprecated any QuicErrorCode, you will need to update the
- // deprecated QuicErrorCode count. Otherwise this test will fail.
- int num_deprecated_errors = 0;
- std::string invalid_error_code = "INVALID_ERROR_CODE";
- for (int i = 0; i < QUIC_LAST_ERROR; ++i) {
- if (QuicUtils::ErrorToString(static_cast<QuicErrorCode>(i)) ==
- invalid_error_code) {
- ++num_deprecated_errors;
- }
- }
- EXPECT_EQ(kDeprecatedQuicErrorCount, num_deprecated_errors);
-}
-
TEST(QuicProtocolTest, QuicVersionToQuicTag) {
// If you add a new version to the QuicVersion enum you will need to add a new
// case to QuicVersionToQuicTag, otherwise this test will fail.
« no previous file with comments | « net/quic/quic_protocol.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698