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

Unified Diff: remoting/test/fake_socket_factory.h

Issue 2369243002: Report network stats in the scroll performance tests (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | remoting/test/fake_socket_factory.cc » ('j') | remoting/test/protocol_perftest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/fake_socket_factory.h
diff --git a/remoting/test/fake_socket_factory.h b/remoting/test/fake_socket_factory.h
index e75581824816b9c6f57db39173bfd5961fb3096d..4a028543b3e61894c533c73841750c2bf63e998e 100644
--- a/remoting/test/fake_socket_factory.h
+++ b/remoting/test/fake_socket_factory.h
@@ -53,6 +53,9 @@ class FakePacketSocketFactory : public rtc::PacketSocketFactory,
out_of_order_rate_ = out_of_order_rate;
}
+ void ResetStats();
+ base::TimeDelta GetAverageDelay();
+
// rtc::PacketSocketFactory interface.
rtc::AsyncPacketSocket* CreateUdpSocket(
const rtc::SocketAddress& local_address,
@@ -119,6 +122,9 @@ class FakePacketSocketFactory : public rtc::PacketSocketFactory,
std::list<PendingPacket> pending_packets_;
+ int total_packets_received_ = 0;
+ base::TimeDelta total_delay_;
+
base::WeakPtrFactory<FakePacketSocketFactory> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(FakePacketSocketFactory);
« no previous file with comments | « no previous file | remoting/test/fake_socket_factory.cc » ('j') | remoting/test/protocol_perftest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698