Index: chrome/browser/media/chrome_webrtc_browsertest.cc |
diff --git a/chrome/browser/media/chrome_webrtc_browsertest.cc b/chrome/browser/media/chrome_webrtc_browsertest.cc |
index d6373fb76aea0a96cbb0e3f0f487dd7c8b9fb82d..3f97182bef3ac0617e2f02aa90718b1e7b092a40 100644 |
--- a/chrome/browser/media/chrome_webrtc_browsertest.cc |
+++ b/chrome/browser/media/chrome_webrtc_browsertest.cc |
@@ -21,7 +21,7 @@ |
#include "chrome/test/ui/ui_test.h" |
#include "content/public/browser/notification_service.h" |
#include "content/public/test/browser_test_utils.h" |
-#include "net/test/spawned_test_server/spawned_test_server.h" |
+#include "net/test/embedded_test_server/embedded_test_server.h" |
static const base::FilePath::CharType kPeerConnectionServer[] = |
#if defined(OS_WIN) |
@@ -31,7 +31,7 @@ static const base::FilePath::CharType kPeerConnectionServer[] = |
#endif |
static const char kMainWebrtcTestHtmlPage[] = |
- "files/webrtc/webrtc_jsep01_test.html"; |
+ "/webrtc/webrtc_jsep01_test.html"; |
// Top-level integration test for WebRTC. Requires a real webcam and microphone |
// on the running system. This test is not meant to run in the main browser |
@@ -218,10 +218,10 @@ class WebrtcBrowserTest : public InProcessBrowserTest { |
IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, |
MANUAL_RunsAudioVideoWebRTCCallInTwoTabs) { |
- EXPECT_TRUE(test_server()->Start()); |
+ EXPECT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); |
ui_test_utils::NavigateToURL( |
- browser(), test_server()->GetURL(kMainWebrtcTestHtmlPage)); |
+ browser(), embedded_test_server()->GetURL(kMainWebrtcTestHtmlPage)); |
content::WebContents* left_tab = |
browser()->tab_strip_model()->GetActiveWebContents(); |
GetUserMedia(left_tab); |
@@ -230,7 +230,7 @@ IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, |
content::WebContents* right_tab = |
browser()->tab_strip_model()->GetActiveWebContents(); |
ui_test_utils::NavigateToURL( |
- browser(), test_server()->GetURL(kMainWebrtcTestHtmlPage)); |
+ browser(), embedded_test_server()->GetURL(kMainWebrtcTestHtmlPage)); |
GetUserMedia(right_tab); |
ConnectToPeerConnectionServer("peer 1", left_tab); |