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

Unified Diff: chrome/browser/media/webrtc_browsertest_base.h

Issue 2190533002: Adds a WebRTC browser_test with opus dtx enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: chrome/browser/media/webrtc_browsertest_base.h
diff --git a/chrome/browser/media/webrtc_browsertest_base.h b/chrome/browser/media/webrtc_browsertest_base.h
index 68fd0e717655f10c41d811210f69385e325bccb9..85eaeac1d8f4c3f69964375b0f44401ffdbaf6e0 100644
--- a/chrome/browser/media/webrtc_browsertest_base.h
+++ b/chrome/browser/media/webrtc_browsertest_base.h
@@ -129,10 +129,10 @@ class WebRtcTestBase : public InProcessBrowserTest {
// If |video_codec| is not |kUseDefaultVideoCodec|, the SDP offer is modified
// (and SDP answer verified) so that the specified video codec (case-sensitive
// name) is used during the call instead of the default one.
- void NegotiateCall(
- content::WebContents* from_tab,
- content::WebContents* to_tab,
- const std::string& video_codec = kUseDefaultVideoCodec) const;
+ void NegotiateCall(content::WebContents* from_tab,
+ content::WebContents* to_tab,
+ const std::string& video_codec = kUseDefaultVideoCodec,
+ bool opus_dtx = false) const;
// Hangs up a negotiated call.
void HangUp(content::WebContents* from_tab) const;
@@ -172,11 +172,13 @@ class WebRtcTestBase : public InProcessBrowserTest {
std::string CreateLocalOffer(
content::WebContents* from_tab,
- std::string default_video_codec = kUseDefaultVideoCodec) const;
+ std::string default_video_codec = kUseDefaultVideoCodec,
+ bool opus_dtx = false) const;
std::string CreateAnswer(
std::string local_offer,
content::WebContents* to_tab,
- std::string default_video_codec = kUseDefaultVideoCodec) const;
+ std::string default_video_codec = kUseDefaultVideoCodec,
+ bool opus_dtx = false) const;
void ReceiveAnswer(const std::string& answer,
content::WebContents* from_tab) const;
void GatherAndSendIceCandidates(content::WebContents* from_tab,
« no previous file with comments | « no previous file | chrome/browser/media/webrtc_browsertest_base.cc » ('j') | chrome/browser/media/webrtc_browsertest_base.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698