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

Side by Side Diff: net/quic/quic_http_utils_test.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef 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 unified diff | Download patch
« no previous file with comments | « net/quic/quic_http_stream_test.cc ('k') | net/quic/quic_network_transaction_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/quic_http_utils.h" 5 #include "net/quic/quic_http_utils.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <limits> 9 #include <limits>
10 10
(...skipping 11 matching lines...) Expand all
22 } 22 }
23 23
24 TEST(QuicHttpUtilsTest, ConvertQuicPriorityToRequestPriority) { 24 TEST(QuicHttpUtilsTest, ConvertQuicPriorityToRequestPriority) {
25 EXPECT_EQ(HIGHEST, ConvertQuicPriorityToRequestPriority(0)); 25 EXPECT_EQ(HIGHEST, ConvertQuicPriorityToRequestPriority(0));
26 EXPECT_EQ(MEDIUM, ConvertQuicPriorityToRequestPriority(1)); 26 EXPECT_EQ(MEDIUM, ConvertQuicPriorityToRequestPriority(1));
27 EXPECT_EQ(LOW, ConvertQuicPriorityToRequestPriority(2)); 27 EXPECT_EQ(LOW, ConvertQuicPriorityToRequestPriority(2));
28 EXPECT_EQ(LOWEST, ConvertQuicPriorityToRequestPriority(3)); 28 EXPECT_EQ(LOWEST, ConvertQuicPriorityToRequestPriority(3));
29 EXPECT_EQ(IDLE, ConvertQuicPriorityToRequestPriority(4)); 29 EXPECT_EQ(IDLE, ConvertQuicPriorityToRequestPriority(4));
30 // These are invalid values, but we should still handle them 30 // These are invalid values, but we should still handle them
31 // gracefully. TODO(rtenneti): should we test for all possible values of 31 // gracefully. TODO(rtenneti): should we test for all possible values of
32 // uint32? 32 // uint32_t?
33 for (int i = 5; i < std::numeric_limits<uint8_t>::max(); ++i) { 33 for (int i = 5; i < std::numeric_limits<uint8_t>::max(); ++i) {
34 EXPECT_EQ(IDLE, ConvertQuicPriorityToRequestPriority(i)); 34 EXPECT_EQ(IDLE, ConvertQuicPriorityToRequestPriority(i));
35 } 35 }
36 } 36 }
37 37
38 } // namespace test 38 } // namespace test
39 } // namespace net 39 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_http_stream_test.cc ('k') | net/quic/quic_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698