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

Unified Diff: webrtc/base/testutils.h

Issue 1944683002: Read recv timestamps from socket (posix only). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix win build. Created 4 years, 8 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: webrtc/base/testutils.h
diff --git a/webrtc/base/testutils.h b/webrtc/base/testutils.h
index e5e571b9bf93a69cd89d8467f8c41c293b31a426..f3db92220dc48c688c8796d265b4fe865fcd9f70 100644
--- a/webrtc/base/testutils.h
+++ b/webrtc/base/testutils.h
@@ -359,7 +359,8 @@ private:
}
void OnReadEvent(AsyncSocket* socket) {
char data[64 * 1024];
- int result = socket_->Recv(data, arraysize(data));
+ int64_t timestamp;
+ int result = socket_->Recv(data, arraysize(data), &timestamp);
if (result > 0) {
recv_buffer_.insert(recv_buffer_.end(), data, data + result);
}

Powered by Google App Engine
This is Rietveld 408576698