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

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

Issue 2322233004: Landing Recent QUIC changes until Sun Sep 4 03:41:00 (Closed)
Patch Set: Remove simulation files from the build. Created 4 years, 3 months 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.cc ('k') | net/quic/test_tools/quic_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/quic_test_utils.h
diff --git a/net/quic/test_tools/quic_test_utils.h b/net/quic/test_tools/quic_test_utils.h
index a2eb6e56e40e2905ed2cbdb67ca37754e8c9742c..9243e7b74e1d24162bc1906a2419cca865ddeec8 100644
--- a/net/quic/test_tools/quic_test_utils.h
+++ b/net/quic/test_tools/quic_test_utils.h
@@ -227,12 +227,16 @@ class QuicFlagSaver {
// for pseudo-randomly dropping packets in tests. It works by computing
// the sha1 hash of the current seed, and using the first 64 bits as
// the next random number, and the next seed.
-class SimpleRandom {
+class SimpleRandom : public QuicRandom {
public:
SimpleRandom() : seed_(0) {}
+ ~SimpleRandom() override {}
// Returns a random number in the range [0, kuint64max].
- uint64_t RandUint64();
+ uint64_t RandUint64() override;
+
+ void RandBytes(void* data, size_t len) override;
+ void Reseed(const void* additional_entropy, size_t len) override;
void set_seed(uint64_t seed) { seed_ = seed; }
@@ -659,11 +663,11 @@ class TestQuicSpdyServerSession : public QuicServerSessionBase {
QuicCryptoServerStream* GetCryptoStream() override;
- MockQuicServerSessionHelper* helper() { return &helper_; }
+ MockQuicCryptoServerStreamHelper* helper() { return &helper_; }
private:
MockQuicServerSessionVisitor visitor_;
- MockQuicServerSessionHelper helper_;
+ MockQuicCryptoServerStreamHelper helper_;
DISALLOW_COPY_AND_ASSIGN(TestQuicSpdyServerSession);
};
« no previous file with comments | « net/quic/test_tools/mock_quic_dispatcher.cc ('k') | net/quic/test_tools/quic_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698