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

Unified Diff: chrome/browser/media/webrtc/webrtc_rtp_browsertest.cc

Issue 2749703005: RTCRtpSender with track behind RuntimeEnabled flag (Closed)
Patch Set: external/wpt/webrtc/RTCPeerConnection-idl-expected.txt updated passing 2 more tests Created 3 years, 7 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/webrtc_rtp_browsertest.cc
diff --git a/chrome/browser/media/webrtc/webrtc_rtp_browsertest.cc b/chrome/browser/media/webrtc/webrtc_rtp_browsertest.cc
index 5de342eb7790c1c9f78b367d0989a4a016dbc342..bd591a994707151759292c68c2c31ff09259b054 100644
--- a/chrome/browser/media/webrtc/webrtc_rtp_browsertest.cc
+++ b/chrome/browser/media/webrtc/webrtc_rtp_browsertest.cc
@@ -19,6 +19,8 @@ class WebRtcRtpBrowserTest : public WebRtcTestBase {
void SetUpCommandLine(base::CommandLine* command_line) override {
command_line->AppendSwitch(switches::kUseFakeDeviceForMediaStream);
+ command_line->AppendSwitchASCII(switches::kEnableBlinkFeatures,
+ "RTCRtpSender");
}
protected:
@@ -32,6 +34,21 @@ class WebRtcRtpBrowserTest : public WebRtcTestBase {
content::WebContents* right_tab_;
};
+IN_PROC_BROWSER_TEST_F(WebRtcRtpBrowserTest, GetSenders) {
+ StartServerAndOpenTabs();
+
+ SetupPeerconnectionWithoutLocalStream(left_tab_);
+ CreateAndAddStreams(left_tab_, 3);
+
+ SetupPeerconnectionWithoutLocalStream(right_tab_);
+ CreateAndAddStreams(right_tab_, 1);
+
+ NegotiateCall(left_tab_, right_tab_);
+
+ VerifyRtpSenders(left_tab_, 6);
+ VerifyRtpSenders(right_tab_, 2);
+}
+
IN_PROC_BROWSER_TEST_F(WebRtcRtpBrowserTest, GetReceivers) {
StartServerAndOpenTabs();
« no previous file with comments | « chrome/browser/media/webrtc/webrtc_browsertest_base.cc ('k') | chrome/test/data/webrtc/peerconnection_rtp.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698