Index: chrome/browser/media/chrome_webrtc_apprtc_browsertest.cc |
diff --git a/chrome/browser/media/chrome_webrtc_apprtc_browsertest.cc b/chrome/browser/media/chrome_webrtc_apprtc_browsertest.cc |
index d75455c0710603d89deddb2f1d6fe03c09230aa8..ada2b1ddb6e2a00319b076e4b4bb3bc785580481 100644 |
--- a/chrome/browser/media/chrome_webrtc_apprtc_browsertest.cc |
+++ b/chrome/browser/media/chrome_webrtc_apprtc_browsertest.cc |
@@ -155,11 +155,6 @@ class WebRtcApprtcBrowserTest : public WebRtcTestBase { |
tab_contents); |
} |
- bool WaitForCallToHangUp(content::WebContents* tab_contents) { |
- return test::PollingWaitUntil(kIsApprtcCallUpJavascript, "false", |
- tab_contents); |
- } |
- |
bool EvalInJavascriptFile(content::WebContents* tab_contents, |
const base::FilePath& path) { |
std::string javascript; |
@@ -190,11 +185,6 @@ class WebRtcApprtcBrowserTest : public WebRtcTestBase { |
return true; |
} |
- bool HangUpApprtcCall(content::WebContents* tab_contents) { |
- // This is the same as clicking the Hangup button in the AppRTC call. |
- return content::ExecuteScript(tab_contents, "hangup()"); |
- } |
- |
base::FilePath GetSourceDir() { |
base::FilePath source_dir; |
PathService::Get(base::DIR_SOURCE_ROOT, &source_dir); |
@@ -260,11 +250,6 @@ IN_PROC_BROWSER_TEST_F(WebRtcApprtcBrowserTest, MANUAL_WorksOnApprtc) { |
ASSERT_TRUE(DetectRemoteVideoPlaying(left_tab)); |
ASSERT_TRUE(DetectRemoteVideoPlaying(right_tab)); |
- ASSERT_TRUE(HangUpApprtcCall(left_tab)); |
- |
- ASSERT_TRUE(WaitForCallToHangUp(left_tab)); |
- ASSERT_TRUE(WaitForCallToHangUp(right_tab)); |
- |
chrome::CloseWebContents(browser(), left_tab, false); |
chrome::CloseWebContents(browser(), right_tab, false); |
} |