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

Unified Diff: net/quic/test_tools/reliable_quic_stream_peer.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/reliable_quic_stream_peer.h ('k') | net/quic/test_tools/simple_quic_framer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/reliable_quic_stream_peer.cc
diff --git a/net/quic/test_tools/reliable_quic_stream_peer.cc b/net/quic/test_tools/reliable_quic_stream_peer.cc
deleted file mode 100644
index bd1ab009e3bf117844e6b9addf023172d914ec16..0000000000000000000000000000000000000000
--- a/net/quic/test_tools/reliable_quic_stream_peer.cc
+++ /dev/null
@@ -1,67 +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/reliable_quic_stream_peer.h"
-
-#include <list>
-
-#include "net/quic/reliable_quic_stream.h"
-
-namespace net {
-namespace test {
-
-// static
-void ReliableQuicStreamPeer::SetWriteSideClosed(bool value,
- ReliableQuicStream* stream) {
- stream->write_side_closed_ = value;
-}
-
-// static
-void ReliableQuicStreamPeer::SetStreamBytesWritten(
- QuicStreamOffset stream_bytes_written,
- ReliableQuicStream* stream) {
- stream->stream_bytes_written_ = stream_bytes_written;
-}
-
-// static
-void ReliableQuicStreamPeer::CloseReadSide(ReliableQuicStream* stream) {
- stream->CloseReadSide();
-}
-
-// static
-bool ReliableQuicStreamPeer::FinSent(ReliableQuicStream* stream) {
- return stream->fin_sent_;
-}
-
-// static
-bool ReliableQuicStreamPeer::RstSent(ReliableQuicStream* stream) {
- return stream->rst_sent_;
-}
-
-// static
-uint32 ReliableQuicStreamPeer::SizeOfQueuedData(ReliableQuicStream* stream) {
- uint32 total = 0;
- std::list<ReliableQuicStream::PendingData>::iterator it =
- stream->queued_data_.begin();
- while (it != stream->queued_data_.end()) {
- total += it->data.size();
- ++it;
- }
- return total;
-}
-
-// static
-void ReliableQuicStreamPeer::SetFecPolicy(ReliableQuicStream* stream,
- FecPolicy fec_policy) {
- stream->set_fec_policy(fec_policy);
-}
-
-// static
-bool ReliableQuicStreamPeer::StreamContributesToConnectionFlowControl(
- ReliableQuicStream* stream) {
- return stream->stream_contributes_to_connection_flow_control_;
-}
-
-} // namespace test
-} // namespace net
« no previous file with comments | « net/quic/test_tools/reliable_quic_stream_peer.h ('k') | net/quic/test_tools/simple_quic_framer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698