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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 MAYBE_CanSetupAudioAndVideoCallWithoutMsidAndBundle) { | 226 MAYBE_CanSetupAudioAndVideoCallWithoutMsidAndBundle) { |
227 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); | 227 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); |
228 | 228 |
229 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html")); | 229 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html")); |
230 NavigateToURL(shell(), url); | 230 NavigateToURL(shell(), url); |
231 | 231 |
232 EXPECT_TRUE(ExecuteJavascript("callWithoutMsidAndBundle();")); | 232 EXPECT_TRUE(ExecuteJavascript("callWithoutMsidAndBundle();")); |
233 ExpectTitle("OK"); | 233 ExpectTitle("OK"); |
234 } | 234 } |
235 | 235 |
| 236 // This test will make a complete PeerConnection-based call using legacy SDP |
| 237 // settings: GIce, external SDES, and no BUNDLE. |
| 238 #if defined(OS_WIN) && defined(USE_AURA) |
| 239 // Disabled for win7_aura, see http://crbug.com/235089. |
| 240 #define MAYBE_CanSetupLegacyCall DISABLED_CanSetupLegacyCall |
| 241 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(ARCH_CPU_ARM_FAMILY) |
| 242 // Timing out on ARM linux, see http://crbug.com/240373 |
| 243 #define MAYBE_CanSetupLegacyCall DISABLED_CanSetupLegacyCall |
| 244 #else |
| 245 #define MAYBE_CanSetupLegacyCall CanSetupLegacyCall |
| 246 #endif |
| 247 |
| 248 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, MAYBE_CanSetupLegacyCall) { |
| 249 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); |
| 250 |
| 251 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html")); |
| 252 NavigateToURL(shell(), url); |
| 253 |
| 254 EXPECT_TRUE(ExecuteJavascript("callWithLegacySdp();")); |
| 255 ExpectTitle("OK"); |
| 256 } |
| 257 |
236 // This test will make a PeerConnection-based call and test an unreliable text | 258 // This test will make a PeerConnection-based call and test an unreliable text |
237 // dataChannel. | 259 // dataChannel. |
238 // TODO(mallinath) - Remove this test after rtp based data channel is disabled. | 260 // TODO(mallinath) - Remove this test after rtp based data channel is disabled. |
239 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, CallWithDataOnly) { | 261 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, CallWithDataOnly) { |
240 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); | 262 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); |
241 | 263 |
242 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html")); | 264 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html")); |
243 NavigateToURL(shell(), url); | 265 NavigateToURL(shell(), url); |
244 | 266 |
245 EXPECT_TRUE(ExecuteJavascript("callWithDataOnly();")); | 267 EXPECT_TRUE(ExecuteJavascript("callWithDataOnly();")); |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 | 434 |
413 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html")); | 435 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html")); |
414 NavigateToURL(shell(), url); | 436 NavigateToURL(shell(), url); |
415 | 437 |
416 EXPECT_TRUE( | 438 EXPECT_TRUE( |
417 ExecuteJavascript("addTwoMediaStreamsToOneConnection();")); | 439 ExecuteJavascript("addTwoMediaStreamsToOneConnection();")); |
418 ExpectTitle("OK"); | 440 ExpectTitle("OK"); |
419 } | 441 } |
420 | 442 |
421 } // namespace content | 443 } // namespace content |
OLD | NEW |