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

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

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/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
deleted file mode 100644
index 44f94260c2ffe5965910b3a29baaa50ec7c0de1f..0000000000000000000000000000000000000000
--- a/net/quic/test_tools/mock_random.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_QUIC_TEST_TOOLS_MOCK_RANDOM_H_
-#define NET_QUIC_TEST_TOOLS_MOCK_RANDOM_H_
-
-#include "base/compiler_specific.h"
-#include "net/quic/crypto/quic_random.h"
-
-namespace net {
-
-class MockRandom : public QuicRandom {
- public:
- // Initializes base_ to 0xDEADBEEF.
- MockRandom();
- explicit MockRandom(uint32 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;
- // Does nothing.
- void Reseed(const void* additional_entropy, size_t entropy_len) override;
-
- // ChangeValue increments |increment_|. This causes the value returned by
- // |RandUint64| and the byte that |RandBytes| fills with, to change.
- void ChangeValue();
-
- private:
- uint32 base_;
- uint8 increment_;
-
- DISALLOW_COPY_AND_ASSIGN(MockRandom);
-};
-
-} // namespace net
-
-#endif // NET_QUIC_TEST_TOOLS_MOCK_RANDOM_H_
« no previous file with comments | « net/quic/test_tools/mock_quic_dispatcher.cc ('k') | net/quic/test_tools/mock_random.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698