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

Unified Diff: net/quic/core/quic_utils.h

Issue 2517673002: Move test only MakeIOVector method to test_tools/quic_test_utils.h. No behavior change. (Closed)
Patch Set: Created 4 years, 1 month 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/core/quic_packet_generator_test.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_utils.h
diff --git a/net/quic/core/quic_utils.h b/net/quic/core/quic_utils.h
index ccab7a196a17bc6503d22496a1a7911b014f05f5..a68a0608fb0dc3e8e47a27716a8c1de89ec5ccfb 100644
--- a/net/quic/core/quic_utils.h
+++ b/net/quic/core/quic_utils.h
@@ -16,7 +16,6 @@
#include "base/strings/string_piece.h"
#include "net/base/int128.h"
#include "net/base/net_export.h"
-#include "net/quic/core/quic_iovector.h"
#include "net/quic/core/quic_protocol.h"
#ifdef _MSC_VER
@@ -121,15 +120,6 @@ class NET_EXPORT_PRIVATE QuicUtils {
DISALLOW_COPY_AND_ASSIGN(QuicUtils);
};
-// Utility function that returns an QuicIOVector object wrapped around |str|.
-// |str|'s data is stored in |iov|.
-inline QuicIOVector MakeIOVector(base::StringPiece str, struct iovec* iov) {
- iov->iov_base = const_cast<char*>(str.data());
- iov->iov_len = static_cast<size_t>(str.size());
- QuicIOVector quic_iov(iov, 1, str.size());
- return quic_iov;
-}
-
} // namespace net
#endif // NET_QUIC_CORE_QUIC_UTILS_H_
« no previous file with comments | « net/quic/core/quic_packet_generator_test.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698