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

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: 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
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..edb05e90c535599c1cc4bb7f9d48e19278047fa9 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, ipp\n");
hubbe 2014/11/10 19:31:48 ipp is not very descriptive Is there a better name
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 == "ipp") {
+ in_pipe = ipp->NewBuffer(128 * 1024).Pass();
+ out_pipe = ipp->NewBuffer(128 * 1024).Pass();
} else {
fprintf(stderr, "Unknown network type.\n");
exit(1);
« media/cast/test/utility/udp_proxy.h ('K') | « 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