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

Unified Diff: net/http2/tools/http2_random.h

Issue 2554683003: Revert of Add new HTTP/2 and HPACK decoder in net/http2/. (Closed)
Patch Set: Created 4 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/http2/tools/http2_frame_builder.cc ('k') | net/http2/tools/http2_random.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http2/tools/http2_random.h
diff --git a/net/http2/tools/http2_random.h b/net/http2/tools/http2_random.h
deleted file mode 100644
index f7956cb8952603ce7b0ea52d661d6b8fb7b14074..0000000000000000000000000000000000000000
--- a/net/http2/tools/http2_random.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2016 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_HTTP2_TOOLS_HTTP2_RANDOM_H_
-#define NET_HTTP2_TOOLS_HTTP2_RANDOM_H_
-
-#include <stdint.h>
-
-#include <string>
-
-namespace net {
-namespace test {
-
-class RandomBase {
- public:
- virtual ~RandomBase() {}
- virtual bool OneIn(int n) = 0;
- virtual int32_t Uniform(int32_t n) = 0;
- virtual uint8_t Rand8() = 0;
- virtual uint16_t Rand16() = 0;
- virtual uint32_t Rand32() = 0;
- virtual uint64_t Rand64() = 0;
- virtual int32_t Next() = 0;
- virtual int32_t Skewed(int max_log) = 0;
- virtual std::string RandString(int length) = 0;
-};
-
-class Http2Random : public RandomBase {
- public:
- ~Http2Random() override {}
- bool OneIn(int n) override;
- int32_t Uniform(int32_t n) override;
- uint8_t Rand8() override;
- uint16_t Rand16() override;
- uint32_t Rand32() override;
- uint64_t Rand64() override;
- int32_t Next() override;
- int32_t Skewed(int max_log) override;
- std::string RandString(int length) override;
-};
-
-} // namespace test
-} // namespace net
-
-#endif // NET_HTTP2_TOOLS_HTTP2_RANDOM_H_
« no previous file with comments | « net/http2/tools/http2_frame_builder.cc ('k') | net/http2/tools/http2_random.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698