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

Unified Diff: net/quic/chromium/mock_quic_data.cc

Issue 2909653004: Increase the QUIC header size limit to 256KB from 16KB. (Closed)
Patch Set: Created 3 years, 7 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/chromium/mock_quic_data.h ('k') | net/quic/chromium/quic_chromium_client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/mock_quic_data.cc
diff --git a/net/quic/chromium/mock_quic_data.cc b/net/quic/chromium/mock_quic_data.cc
index f36029b2a4fb0aa6749d65e63a01d04e966724d4..63e2db04cd794b16a1bb551b140c3bf2eb729366 100644
--- a/net/quic/chromium/mock_quic_data.cc
+++ b/net/quic/chromium/mock_quic_data.cc
@@ -38,6 +38,12 @@ void MockQuicData::AddWrite(std::unique_ptr<QuicEncryptedPacket> packet) {
packets_.push_back(std::move(packet));
}
+void MockQuicData::AddAsyncWrite(std::unique_ptr<QuicEncryptedPacket> packet) {
+ writes_.push_back(
+ MockWrite(ASYNC, packet->data(), packet->length(), sequence_number_++));
+ packets_.push_back(std::move(packet));
+}
+
void MockQuicData::AddWrite(IoMode mode, int rv) {
writes_.push_back(MockWrite(mode, rv, sequence_number_++));
}
« no previous file with comments | « net/quic/chromium/mock_quic_data.h ('k') | net/quic/chromium/quic_chromium_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698