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

Unified Diff: media/cast/test/utility/udp_proxy.cc

Issue 2866943002: Give performance_browser_tests lots of love and attention. (Closed)
Patch Set: fix compile error Created 3 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
« no previous file with comments | « media/cast/test/utility/udp_proxy.h ('k') | media/cast/test/utility/udp_proxy_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/utility/udp_proxy.cc
diff --git a/media/cast/test/utility/udp_proxy.cc b/media/cast/test/utility/udp_proxy.cc
index 2d2dda7e12e4f70cf401860ad108cdae124f1f8b..7468e65dcf0a5e452963c3137a8d058db4f2ca66 100644
--- a/media/cast/test/utility/udp_proxy.cc
+++ b/media/cast/test/utility/udp_proxy.cc
@@ -594,6 +594,23 @@ std::unique_ptr<PacketPipe> WifiNetwork() {
return pipe;
}
+std::unique_ptr<PacketPipe> SlowNetwork() {
+ // This represents the buffer on the sender.
+ std::unique_ptr<PacketPipe> pipe;
+ BuildPipe(&pipe, new Buffer(256 << 10, 1.5));
+ BuildPipe(&pipe, new RandomDrop(0.005));
+ // This represents the buffer on the router.
+ BuildPipe(&pipe, new ConstantDelay(10E-3));
+ BuildPipe(&pipe, new RandomSortedDelay(10E-3, 20E-3, 3));
+ BuildPipe(&pipe, new Buffer(256 << 10, 20));
+ BuildPipe(&pipe, new ConstantDelay(10E-3));
+ BuildPipe(&pipe, new RandomSortedDelay(10E-3, 20E-3, 3));
+ BuildPipe(&pipe, new RandomDrop(0.005));
+ // This represents the buffer on the receiving device.
+ BuildPipe(&pipe, new Buffer(256 << 10, 20));
+ return pipe;
+}
+
std::unique_ptr<PacketPipe> BadNetwork() {
std::unique_ptr<PacketPipe> pipe;
// This represents the buffer on the sender.
« no previous file with comments | « media/cast/test/utility/udp_proxy.h ('k') | media/cast/test/utility/udp_proxy_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698