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

Unified Diff: remoting/protocol/session_config.cc

Issue 2371323007: Add audio support in WebrtcConnectionToHost, audio unittest (Closed)
Patch Set: more reliable test Created 4 years, 2 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 | « remoting/protocol/connection_unittest.cc ('k') | remoting/protocol/webrtc_audio_sink_adapter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/session_config.cc
diff --git a/remoting/protocol/session_config.cc b/remoting/protocol/session_config.cc
index 7a6a9caaf249fab8ca3916c0738f4b32fc765379..f1794dbc20a11403d1fdf45696a73c01447bf7c5 100644
--- a/remoting/protocol/session_config.cc
+++ b/remoting/protocol/session_config.cc
@@ -149,18 +149,18 @@ std::unique_ptr<SessionConfig> SessionConfig::GetFinalConfig(
// static
std::unique_ptr<SessionConfig> SessionConfig::ForTest() {
std::unique_ptr<SessionConfig> result(new SessionConfig(Protocol::ICE));
- result->control_config_ = ChannelConfig(ChannelConfig::TRANSPORT_MUX_STREAM,
- kControlStreamVersion,
- ChannelConfig::CODEC_UNDEFINED);
- result->event_config_ = ChannelConfig(ChannelConfig::TRANSPORT_MUX_STREAM,
- kDefaultStreamVersion,
- ChannelConfig::CODEC_UNDEFINED);
- result->video_config_ = ChannelConfig(ChannelConfig::TRANSPORT_STREAM,
- kDefaultStreamVersion,
- ChannelConfig::CODEC_VP8);
- result->audio_config_ = ChannelConfig(ChannelConfig::TRANSPORT_NONE,
- kDefaultStreamVersion,
- ChannelConfig::CODEC_UNDEFINED);
+ result->control_config_ =
+ ChannelConfig(ChannelConfig::TRANSPORT_MUX_STREAM, kControlStreamVersion,
+ ChannelConfig::CODEC_UNDEFINED);
+ result->event_config_ =
+ ChannelConfig(ChannelConfig::TRANSPORT_MUX_STREAM, kDefaultStreamVersion,
+ ChannelConfig::CODEC_UNDEFINED);
+ result->video_config_ =
+ ChannelConfig(ChannelConfig::TRANSPORT_STREAM, kDefaultStreamVersion,
+ ChannelConfig::CODEC_VP8);
+ result->audio_config_ =
+ ChannelConfig(ChannelConfig::TRANSPORT_MUX_STREAM, kDefaultStreamVersion,
+ ChannelConfig::CODEC_OPUS);
return result;
}
« no previous file with comments | « remoting/protocol/connection_unittest.cc ('k') | remoting/protocol/webrtc_audio_sink_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698