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

Unified Diff: net/quic/test_tools/mock_random.h

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/test_tools/mock_quic_dispatcher.h ('k') | net/quic/test_tools/mock_random.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/mock_random.h
diff --git a/net/quic/test_tools/mock_random.h b/net/quic/test_tools/mock_random.h
index 7c26ed491b59da9a09984ece425c5c4c37546244..0394cb946b8862fd59ea152ce909885bf1f51e58 100644
--- a/net/quic/test_tools/mock_random.h
+++ b/net/quic/test_tools/mock_random.h
@@ -5,7 +5,11 @@
#ifndef NET_QUIC_TEST_TOOLS_MOCK_RANDOM_H_
#define NET_QUIC_TEST_TOOLS_MOCK_RANDOM_H_
+#include <stddef.h>
+#include <stdint.h>
+
#include "base/compiler_specific.h"
+#include "base/macros.h"
#include "net/quic/crypto/quic_random.h"
namespace net {
@@ -15,13 +19,13 @@ class MockRandom : public QuicRandom {
public:
// Initializes base_ to 0xDEADBEEF.
MockRandom();
- explicit MockRandom(uint32 base);
+ explicit MockRandom(uint32_t base);
// QuicRandom:
// Fills the |data| buffer with a repeating byte, initially 'r'.
void RandBytes(void* data, size_t len) override;
// Returns base + the current increment.
- uint64 RandUint64() override;
+ uint64_t RandUint64() override;
// Does nothing.
void Reseed(const void* additional_entropy, size_t entropy_len) override;
@@ -30,8 +34,8 @@ class MockRandom : public QuicRandom {
void ChangeValue();
private:
- uint32 base_;
- uint8 increment_;
+ uint32_t base_;
+ uint8_t increment_;
DISALLOW_COPY_AND_ASSIGN(MockRandom);
};
« no previous file with comments | « net/quic/test_tools/mock_quic_dispatcher.h ('k') | net/quic/test_tools/mock_random.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698