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

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

Issue 703893004: Implement IPP model support in udp_proxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 6 years, 1 month 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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/utility/udp_proxy_main.cc
diff --git a/media/cast/test/utility/udp_proxy_main.cc b/media/cast/test/utility/udp_proxy_main.cc
index 212b5976e39f9518925a3365d73422dfc9852e87..cdb657a16f841fdb639f0e35713a199dd2c20e2b 100644
--- a/media/cast/test/utility/udp_proxy_main.cc
+++ b/media/cast/test/utility/udp_proxy_main.cc
@@ -120,7 +120,7 @@ int main(int argc, char** argv) {
"Usage: udp_proxy <localport> <remotehost> <remoteport> <type>\n"
"or:\n"
" udp_proxy <localport> <type>\n"
- "Where type is one of: perfect, wifi, bad, evil\n");
+ "Where type is one of: perfect, wifi, bad, evil, poisson-wifi\n");
exit(1);
}
@@ -147,6 +147,8 @@ int main(int argc, char** argv) {
net::IPEndPoint remote_endpoint(remote_ip_number, remote_port);
net::IPEndPoint local_endpoint(local_ip_number, local_port);
scoped_ptr<media::cast::test::PacketPipe> in_pipe, out_pipe;
+ scoped_ptr<media::cast::test::InterruptedPoissonProcess> ipp(
+ media::cast::test::DefaultInterruptedPoissonProcess());
if (network_type == "perfect") {
// No action needed.
@@ -159,6 +161,9 @@ int main(int argc, char** argv) {
} else if (network_type == "evil") {
in_pipe = media::cast::test::EvilNetwork().Pass();
out_pipe = media::cast::test::EvilNetwork().Pass();
+ } else if (network_type == "poisson-wifi") {
+ in_pipe = ipp->NewBuffer(128 * 1024).Pass();
+ out_pipe = ipp->NewBuffer(128 * 1024).Pass();
} else {
fprintf(stderr, "Unknown network type.\n");
exit(1);
« no previous file with comments | « media/cast/test/utility/udp_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698