Index: net/quic/quic_http_utils_test.cc |
diff --git a/net/quic/quic_http_utils_test.cc b/net/quic/quic_http_utils_test.cc |
index 93b62e2e9d70363333eaba95917b8fe8d45b148f..a4819a4e8184bc0f6bb62b78855c040eb70d7db7 100644 |
--- a/net/quic/quic_http_utils_test.cc |
+++ b/net/quic/quic_http_utils_test.cc |
@@ -4,6 +4,10 @@ |
#include "net/quic/quic_http_utils.h" |
+#include <stdint.h> |
+ |
+#include <limits> |
+ |
#include "testing/gtest/include/gtest/gtest.h" |
namespace net { |
@@ -26,7 +30,7 @@ TEST(QuicHttpUtilsTest, ConvertQuicPriorityToRequestPriority) { |
// These are invalid values, but we should still handle them |
// gracefully. TODO(rtenneti): should we test for all possible values of |
// uint32? |
- for (int i = 5; i < kuint8max; ++i) { |
+ for (int i = 5; i < std::numeric_limits<uint8_t>::max(); ++i) { |
EXPECT_EQ(IDLE, ConvertQuicPriorityToRequestPriority(i)); |
} |
} |