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

Unified Diff: net/base/test_data_stream.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/base/test_data_directory.cc ('k') | net/base/test_data_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/test_data_stream.h
diff --git a/net/base/test_data_stream.h b/net/base/test_data_stream.h
deleted file mode 100644
index 464220e8982954099d2efe39ba04102bafce246d..0000000000000000000000000000000000000000
--- a/net/base/test_data_stream.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2011 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_BASE_TEST_DATA_STREAM_H_
-#define NET_BASE_TEST_DATA_STREAM_H_
-
-#include <string.h> // for memcpy().
-#include <algorithm>
-#include "net/base/net_export.h"
-
-// This is a class for generating an infinite stream of data which can be
-// verified independently to be the correct stream of data.
-
-namespace net {
-
-class NET_EXPORT TestDataStream {
- public:
- TestDataStream();
-
- // Fill |buffer| with |length| bytes of data from the stream.
- void GetBytes(char* buffer, int length);
-
- // Verify that |buffer| contains the expected next |length| bytes from the
- // stream. Returns true if correct, false otherwise.
- bool VerifyBytes(const char *buffer, int length);
-
- // Resets all the data.
- void Reset();
-
- private:
- // If there is no data spilled over from the previous index, advance the
- // index and fill the buffer.
- void AdvanceIndex();
-
- // Consume data from the spill buffer.
- void Consume(int bytes);
-
- int index_;
- int bytes_remaining_;
- char buffer_[16];
- char* buffer_ptr_;
-};
-
-} // namespace net
-
-#endif // NET_BASE_TEST_DATA_STREAM_H_
« no previous file with comments | « net/base/test_data_directory.cc ('k') | net/base/test_data_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698