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

Side by Side Diff: net/quic/test_tools/mock_random.h

Issue 12334063: Land recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more EXPECT_FALSE Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/test_tools/mock_clock.cc ('k') | net/quic/test_tools/mock_random.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef NET_QUIC_TEST_TOOLS_MOCK_RANDOM_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_MOCK_RANDOM_H_
6 #define NET_QUIC_TEST_TOOLS_MOCK_RANDOM_H_ 6 #define NET_QUIC_TEST_TOOLS_MOCK_RANDOM_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "net/quic/crypto/quic_random.h" 9 #include "net/quic/crypto/quic_random.h"
10 10
11 namespace net { 11 namespace net {
12 12
13 class MockRandom : public QuicRandom { 13 class MockRandom : public QuicRandom {
14 public: 14 public:
15 // QuicRandom: 15 // QuicRandom:
16 // Fills the |data| buffer with 'r'. 16 // Fills the |data| buffer with 'r'.
17 virtual void RandBytes(void* data, size_t len) OVERRIDE; 17 virtual void RandBytes(void* data, size_t len) OVERRIDE;
18 // Returns 0xDEADBEEF. 18 // Returns 0xDEADBEEF.
19 virtual uint64 RandUint64() OVERRIDE; 19 virtual uint64 RandUint64() OVERRIDE;
20 // Returns false.
21 virtual bool RandBool() OVERRIDE;
20 // Does nothing. 22 // Does nothing.
21 virtual void Reseed(const void* additional_entropy, 23 virtual void Reseed(const void* additional_entropy,
22 size_t entropy_len) OVERRIDE; 24 size_t entropy_len) OVERRIDE;
23 }; 25 };
24 26
25 } // namespace net 27 } // namespace net
26 28
27 #endif // NET_QUIC_TEST_TOOLS_MOCK_RANDOM_H_ 29 #endif // NET_QUIC_TEST_TOOLS_MOCK_RANDOM_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/mock_clock.cc ('k') | net/quic/test_tools/mock_random.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698