| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/utf_string_conversions.h" | 6 #include "base/utf_string_conversions.h" |
| 7 #include "content/browser/web_contents/web_contents_impl.h" | 7 #include "content/browser/web_contents/web_contents_impl.h" |
| 8 #include "content/public/common/content_switches.h" | 8 #include "content/public/common/content_switches.h" |
| 9 #include "content/public/test/browser_test_utils.h" | 9 #include "content/public/test/browser_test_utils.h" |
| 10 #include "content/shell/shell.h" | 10 #include "content/shell/shell.h" |
| 11 #include "content/test/content_browser_test.h" | 11 #include "content/test/content_browser_test.h" |
| 12 #include "content/test/content_browser_test_utils.h" | 12 #include "content/test/content_browser_test_utils.h" |
| 13 #include "net/test/spawned_test_server.h" | 13 #include "net/test/spawned_test_server/spawned_test_server.h" |
| 14 | 14 |
| 15 #if defined(OS_WIN) | 15 #if defined(OS_WIN) |
| 16 #include "base/win/windows_version.h" | 16 #include "base/win/windows_version.h" |
| 17 #endif | 17 #endif |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 | 20 |
| 21 class WebrtcBrowserTest: public ContentBrowserTest { | 21 class WebrtcBrowserTest: public ContentBrowserTest { |
| 22 public: | 22 public: |
| 23 WebrtcBrowserTest() {} | 23 WebrtcBrowserTest() {} |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, MANUAL_CallAndModifyStream) { | 185 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, MANUAL_CallAndModifyStream) { |
| 186 GURL url(test_server()->GetURL("files/media/peerconnection-call.html")); | 186 GURL url(test_server()->GetURL("files/media/peerconnection-call.html")); |
| 187 NavigateToURL(shell(), url); | 187 NavigateToURL(shell(), url); |
| 188 | 188 |
| 189 EXPECT_TRUE( | 189 EXPECT_TRUE( |
| 190 ExecuteJavascript("callWithNewVideoMediaStreamLaterSwitchToAudio();")); | 190 ExecuteJavascript("callWithNewVideoMediaStreamLaterSwitchToAudio();")); |
| 191 ExpectTitle("OK"); | 191 ExpectTitle("OK"); |
| 192 } | 192 } |
| 193 | 193 |
| 194 } // namespace content | 194 } // namespace content |
| OLD | NEW |