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

Unified Diff: net/quic/quic_http_utils_test.cc

Issue 1477433005: Remove kuint8max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kint4
Patch Set: rebase Created 5 years 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 | « media/cdm/ppapi/cdm_file_io_test.cc ('k') | net/spdy/spdy_http_utils_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
}
« no previous file with comments | « media/cdm/ppapi/cdm_file_io_test.cc ('k') | net/spdy/spdy_http_utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698