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

Unified Diff: net/quic/stream_sequencer_buffer_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/stream_sequencer_buffer.cc ('k') | net/quic/test_tools/crypto_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/stream_sequencer_buffer_test.cc
diff --git a/net/quic/stream_sequencer_buffer_test.cc b/net/quic/stream_sequencer_buffer_test.cc
index c85de86f5abc6ee0ac92964f9bdc5eb7966bf893..ccebb73539ea7e7a7abd9f9678988f40defe8da7 100644
--- a/net/quic/stream_sequencer_buffer_test.cc
+++ b/net/quic/stream_sequencer_buffer_test.cc
@@ -763,7 +763,7 @@ class StreamSequencerBufferRandomIOTest : public StreamSequencerBufferTest {
bytes_to_buffer_ = 2 * max_capacity_bytes_;
Initialize();
- uint32 seed = base::RandInt(0, std::numeric_limits<int32>::max());
+ uint32_t seed = base::RandInt(0, std::numeric_limits<int32_t>::max());
LOG(INFO) << "RandomWriteAndProcessInPlace test seed is " << seed;
rng_.set_seed(seed);
}
@@ -855,8 +855,8 @@ TEST_F(StreamSequencerBufferRandomIOTest, RandomWriteAndReadv) {
while ((!shuffled_buf_.empty() || total_bytes_read_ < bytes_to_buffer_) &&
iterations <= 2 * bytes_to_buffer_) {
- uint8 next_action =
- shuffled_buf_.empty() ? uint8{1} : rng_.RandUint64() % 2;
+ uint8_t next_action =
+ shuffled_buf_.empty() ? uint8_t{1} : rng_.RandUint64() % 2;
DVLOG(1) << "iteration: " << iterations;
switch (next_action) {
case 0: { // write
@@ -913,8 +913,8 @@ TEST_F(StreamSequencerBufferRandomIOTest, RandomWriteAndConsumeInPlace) {
while ((!shuffled_buf_.empty() || total_bytes_read_ < bytes_to_buffer_) &&
iterations <= 2 * bytes_to_buffer_) {
- uint8 next_action =
- shuffled_buf_.empty() ? uint8{1} : rng_.RandUint64() % 2;
+ uint8_t next_action =
+ shuffled_buf_.empty() ? uint8_t{1} : rng_.RandUint64() % 2;
DVLOG(1) << "iteration: " << iterations;
switch (next_action) {
case 0: { // write
« no previous file with comments | « net/quic/stream_sequencer_buffer.cc ('k') | net/quic/test_tools/crypto_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698