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

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

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_random.h ('k') | net/quic/test_tools/quic_client_session_peer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/mock_random.cc
diff --git a/net/quic/test_tools/mock_random.cc b/net/quic/test_tools/mock_random.cc
deleted file mode 100644
index ab71d1634c83bcfb52aa915558649d512f24e52e..0000000000000000000000000000000000000000
--- a/net/quic/test_tools/mock_random.cc
+++ /dev/null
@@ -1,34 +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.
-
-#include "net/quic/test_tools/mock_random.h"
-
-namespace net {
-
-MockRandom::MockRandom()
- : base_(0xDEADBEEF),
- increment_(0) {
-}
-
-MockRandom::MockRandom(uint32 base)
- : base_(base),
- increment_(0) {
-}
-
-void MockRandom::RandBytes(void* data, size_t len) {
- memset(data, 'r' + increment_, len);
-}
-
-uint64 MockRandom::RandUint64() {
- return base_ + increment_;
-}
-
-void MockRandom::Reseed(const void* additional_entropy, size_t entropy_len) {
-}
-
-void MockRandom::ChangeValue() {
- increment_++;
-}
-
-} // namespace net
« no previous file with comments | « net/quic/test_tools/mock_random.h ('k') | net/quic/test_tools/quic_client_session_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698