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

Unified Diff: net/quic/test_tools/simulator/quic_endpoint.h

Issue 2963763003: In QUIC, send data is copied to streams rather than frames. Protected by FLAGS_quic_reloadable_flag… (Closed)
Patch Set: Rebase Created 3 years, 6 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/simple_data_producer.cc ('k') | net/quic/test_tools/simulator/quic_endpoint.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/simulator/quic_endpoint.h
diff --git a/net/quic/test_tools/simulator/quic_endpoint.h b/net/quic/test_tools/simulator/quic_endpoint.h
index 319999443f8997bae673a23dc72522d252c69332..8d76b551f14f3050be9a966a607be8426148ebad 100644
--- a/net/quic/test_tools/simulator/quic_endpoint.h
+++ b/net/quic/test_tools/simulator/quic_endpoint.h
@@ -9,6 +9,7 @@
#include "net/quic/core/crypto/null_encrypter.h"
#include "net/quic/core/quic_connection.h"
#include "net/quic/core/quic_packets.h"
+#include "net/quic/test_tools/simple_data_producer.h"
#include "net/quic/test_tools/simulator/link.h"
#include "net/quic/test_tools/simulator/queue.h"
#include "net/tools/quic/quic_default_packet_writer.h"
@@ -90,6 +91,15 @@ class QuicEndpoint : public Endpoint,
void OnPathDegrading() override {}
void PostProcessAfterData() override {}
void OnAckNeedsRetransmittableFrame() override {}
+ void SaveStreamData(QuicStreamId id,
+ QuicIOVector iov,
+ size_t iov_offset,
+ QuicStreamOffset offset,
+ QuicByteCount data_length) override;
+ bool WriteStreamData(QuicStreamId id,
+ QuicStreamOffset offset,
+ QuicByteCount data_length,
+ QuicDataWriter* writer) override;
// End QuicConnectionVisitorInterface implementation.
private:
@@ -140,6 +150,8 @@ class QuicEndpoint : public Endpoint,
bool wrong_data_received_;
std::unique_ptr<char[]> transmission_buffer_;
+
+ test::SimpleDataProducer producer_;
};
// Multiplexes multiple connections at the same host on the network.
« no previous file with comments | « net/quic/test_tools/simple_data_producer.cc ('k') | net/quic/test_tools/simulator/quic_endpoint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698