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

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

Issue 184813009: Cast Streaming API end-to-end browser_test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix LoggingImplTest + REBASE Created 6 years, 9 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/default_config.h ('k') | media/cast/test/utility/in_process_receiver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/utility/default_config.cc
diff --git a/media/cast/test/utility/default_config.cc b/media/cast/test/utility/default_config.cc
new file mode 100644
index 0000000000000000000000000000000000000000..350bd517c4dc128a61f16ebd046264c557746996
--- /dev/null
+++ b/media/cast/test/utility/default_config.cc
@@ -0,0 +1,37 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "media/cast/test/utility/default_config.h"
+
+#include "media/cast/transport/cast_transport_config.h"
+
+namespace media {
+namespace cast {
+
+AudioReceiverConfig GetDefaultAudioReceiverConfig() {
+ AudioReceiverConfig config;
+ config.feedback_ssrc = 1;
+ config.incoming_ssrc = 2;
+ config.rtp_payload_type = 127;
+ config.rtcp_c_name = "audio_receiver@a.b.c.d";
+ config.use_external_decoder = false;
+ config.frequency = 48000;
+ config.channels = 2;
+ config.codec = media::cast::transport::kOpus;
+ return config;
+}
+
+VideoReceiverConfig GetDefaultVideoReceiverConfig() {
+ VideoReceiverConfig config;
+ config.feedback_ssrc = 12;
+ config.incoming_ssrc = 11;
+ config.rtp_payload_type = 96;
+ config.rtcp_c_name = "video_receiver@a.b.c.d";
+ config.use_external_decoder = false;
+ config.codec = media::cast::transport::kVp8;
+ return config;
+}
+
+} // namespace cast
+} // namespace media
« no previous file with comments | « media/cast/test/utility/default_config.h ('k') | media/cast/test/utility/in_process_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698