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

Unified Diff: net/tools/quic/end_to_end_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/end_to_end_test.cc
diff --git a/net/tools/quic/end_to_end_test.cc b/net/tools/quic/end_to_end_test.cc
index 5676fc1d4eca2ed54cacd31b1cee0c613b9d9a28..f17f20ecdc02d12cde23f73f676c060ac6349944 100644
--- a/net/tools/quic/end_to_end_test.cc
+++ b/net/tools/quic/end_to_end_test.cc
@@ -950,10 +950,11 @@ class WrongAddressWriter : public QuicPacketWriterWrapper {
const char* buffer,
size_t buf_len,
const IPAddressNumber& real_self_address,
- const IPEndPoint& peer_address) OVERRIDE {
+ const IPEndPoint& peer_address,
+ base::Callback<void(WriteResult wr)> callback) OVERRIDE {
// Use wrong address!
return QuicPacketWriterWrapper::WritePacket(
- buffer, buf_len, self_address_.address(), peer_address);
+ buffer, buf_len, self_address_.address(), peer_address, callback);
}
virtual bool IsWriteBlockedDataBuffered() const OVERRIDE {

Powered by Google App Engine
This is Rietveld 408576698