Index: chrome/browser/media/chrome_webrtc_disable_encryption_flag_browsertest.cc |
diff --git a/chrome/browser/media/chrome_webrtc_disable_encryption_flag_browsertest.cc b/chrome/browser/media/chrome_webrtc_disable_encryption_flag_browsertest.cc |
index 14e461fd3e3fc1cf1a3625cbe21af01f60c2b9c2..49e59a3499cdce4d01604d469fee6507cba43f59 100644 |
--- a/chrome/browser/media/chrome_webrtc_disable_encryption_flag_browsertest.cc |
+++ b/chrome/browser/media/chrome_webrtc_disable_encryption_flag_browsertest.cc |
@@ -32,7 +32,6 @@ class WebRtcDisableEncryptionFlagBrowserTest : public WebRtcTestBase { |
virtual ~WebRtcDisableEncryptionFlagBrowserTest() {} |
virtual void SetUpInProcessBrowserTestFixture() OVERRIDE { |
- test::PeerConnectionServerRunner::KillAllPeerConnectionServers(); |
DetectErrorsInJavaScript(); // Look for errors in our rather complex js. |
} |
@@ -44,9 +43,6 @@ class WebRtcDisableEncryptionFlagBrowserTest : public WebRtcTestBase { |
command_line->AppendSwitch(switches::kDisableWebRtcEncryption); |
} |
- protected: |
- test::PeerConnectionServerRunner peerconnection_server_; |
- |
private: |
DISALLOW_COPY_AND_ASSIGN(WebRtcDisableEncryptionFlagBrowserTest); |
}; |
@@ -64,14 +60,16 @@ IN_PROC_BROWSER_TEST_F(WebRtcDisableEncryptionFlagBrowserTest, |
#endif |
ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); |
- ASSERT_TRUE(peerconnection_server_.Start()); |
content::WebContents* left_tab = |
OpenTestPageAndGetUserMediaInNewTab(kMainWebrtcTestHtmlPage); |
content::WebContents* right_tab = |
OpenTestPageAndGetUserMediaInNewTab(kMainWebrtcTestHtmlPage); |
- EstablishCall(left_tab, right_tab); |
+ SetupPeerconnectionWithLocalStream(left_tab); |
+ SetupPeerconnectionWithLocalStream(right_tab); |
+ |
+ NegotiateCall(left_tab, right_tab); |
StartDetectingVideo(left_tab, "remote-view"); |
StartDetectingVideo(right_tab, "remote-view"); |
@@ -98,8 +96,4 @@ IN_PROC_BROWSER_TEST_F(WebRtcDisableEncryptionFlagBrowserTest, |
ExecuteJavascript("hasSeenCryptoInSdp()", left_tab)); |
HangUp(left_tab); |
- WaitUntilHangupVerified(left_tab); |
- WaitUntilHangupVerified(right_tab); |
- |
- ASSERT_TRUE(peerconnection_server_.Stop()); |
} |