| 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/strings/stringprintf.h" | 6 #include "base/strings/stringprintf.h" |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "content/browser/web_contents/web_contents_impl.h" | 8 #include "content/browser/web_contents/web_contents_impl.h" |
| 9 #include "content/public/common/content_switches.h" | 9 #include "content/public/common/content_switches.h" |
| 10 #include "content/public/test/browser_test_utils.h" | 10 #include "content/public/test/browser_test_utils.h" |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 144 |
| 145 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, MANUAL_CanSetupCallAndSendDtmf) { | 145 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, MANUAL_CanSetupCallAndSendDtmf) { |
| 146 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html")); | 146 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html")); |
| 147 NavigateToURL(shell(), url); | 147 NavigateToURL(shell(), url); |
| 148 | 148 |
| 149 EXPECT_TRUE( | 149 EXPECT_TRUE( |
| 150 ExecuteJavascript("callAndSendDtmf('123,abc');")); | 150 ExecuteJavascript("callAndSendDtmf('123,abc');")); |
| 151 } | 151 } |
| 152 | 152 |
| 153 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, | 153 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, |
| 154 CanMakeEmptyCallThenAddStreamsAndRenegotiate) { | 154 DISABLED_CanMakeEmptyCallThenAddStreamsAndRenegotiate) { |
| 155 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html")); | 155 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html")); |
| 156 NavigateToURL(shell(), url); | 156 NavigateToURL(shell(), url); |
| 157 | 157 |
| 158 const char* kJavascript = | 158 const char* kJavascript = |
| 159 "callEmptyThenAddOneStreamAndRenegotiate({video: true, audio: true});"; | 159 "callEmptyThenAddOneStreamAndRenegotiate({video: true, audio: true});"; |
| 160 EXPECT_TRUE(ExecuteJavascript(kJavascript)); | 160 EXPECT_TRUE(ExecuteJavascript(kJavascript)); |
| 161 ExpectTitle("OK"); | 161 ExpectTitle("OK"); |
| 162 } | 162 } |
| 163 | 163 |
| 164 // This test will make a complete PeerConnection-based call but remove the | 164 // This test will make a complete PeerConnection-based call but remove the |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, AddTwoMediaStreamsToOnePC) { | 317 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, AddTwoMediaStreamsToOnePC) { |
| 318 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html")); | 318 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html")); |
| 319 NavigateToURL(shell(), url); | 319 NavigateToURL(shell(), url); |
| 320 | 320 |
| 321 EXPECT_TRUE( | 321 EXPECT_TRUE( |
| 322 ExecuteJavascript("addTwoMediaStreamsToOneConnection();")); | 322 ExecuteJavascript("addTwoMediaStreamsToOneConnection();")); |
| 323 ExpectTitle("OK"); | 323 ExpectTitle("OK"); |
| 324 } | 324 } |
| 325 | 325 |
| 326 } // namespace content | 326 } // namespace content |
| OLD | NEW |