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

Unified Diff: net/tools/quic/quic_dispatcher_test.cc

Issue 340433002: Port QuicServer to Chrome network stack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments and fix blocked writers using callbacks Created 6 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
Index: net/tools/quic/quic_dispatcher_test.cc
diff --git a/net/tools/quic/quic_dispatcher_test.cc b/net/tools/quic/quic_dispatcher_test.cc
index 67d4d63f5bd96b6cb21dee417ad9d63205381071..31a7e997cb97bc9c504bbf87874ed16870787945 100644
--- a/net/tools/quic/quic_dispatcher_test.cc
+++ b/net/tools/quic/quic_dispatcher_test.cc
@@ -314,12 +314,13 @@ class BlockingWriter : public QuicPacketWriterWrapper {
const char* buffer,
size_t buf_len,
const IPAddressNumber& self_client_address,
- const IPEndPoint& peer_client_address) OVERRIDE {
+ const IPEndPoint& peer_client_address,
+ base::Callback<void(WriteResult wr)> callback) OVERRIDE {
if (write_blocked_) {
return WriteResult(WRITE_STATUS_BLOCKED, EAGAIN);
} else {
return QuicPacketWriterWrapper::WritePacket(
- buffer, buf_len, self_client_address, peer_client_address);
+ buffer, buf_len, self_client_address, peer_client_address, callback);
}
}

Powered by Google App Engine
This is Rietveld 408576698