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

Unified Diff: webrtc/base/testclient.h

Issue 1944683002: Read recv timestamps from socket (posix only). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Improve test. Created 4 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
Index: webrtc/base/testclient.h
diff --git a/webrtc/base/testclient.h b/webrtc/base/testclient.h
index df831fefb75e880533a1038812c6512e08bc8ca3..a698365040c8c8e1a3d851021071728e6476248b 100644
--- a/webrtc/base/testclient.h
+++ b/webrtc/base/testclient.h
@@ -24,13 +24,17 @@ class TestClient : public sigslot::has_slots<> {
public:
// Records the contents of a packet that was received.
struct Packet {
- Packet(const SocketAddress& a, const char* b, size_t s);
+ Packet(const SocketAddress& a,
+ const char* b,
+ size_t s,
+ const PacketTime& packet_time);
Packet(const Packet& p);
virtual ~Packet();
SocketAddress addr;
char* buf;
size_t size;
+ PacketTime packet_time;
};
// Default timeout for NextPacket reads.
@@ -90,6 +94,7 @@ class TestClient : public sigslot::has_slots<> {
AsyncPacketSocket* socket_;
std::vector<Packet*>* packets_;
bool ready_to_send_;
+ int64_t prev_packet_timestamp_;
RTC_DISALLOW_COPY_AND_ASSIGN(TestClient);
};

Powered by Google App Engine
This is Rietveld 408576698