| 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" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 "makeEmptyCallThenAddOneStreamAndRenegotiate(" | 108 "makeEmptyCallThenAddOneStreamAndRenegotiate(" |
| 109 "{video: true, audio: true});"; | 109 "{video: true, audio: true});"; |
| 110 EXPECT_TRUE(ExecuteJavascript(kJavascript)); | 110 EXPECT_TRUE(ExecuteJavascript(kJavascript)); |
| 111 ExpectTitle("OK"); | 111 ExpectTitle("OK"); |
| 112 } | 112 } |
| 113 | 113 |
| 114 // This test will make a complete PeerConnection-based call but remove the | 114 // This test will make a complete PeerConnection-based call but remove the |
| 115 // MSID and bundle attribute from the initial offer to verify that | 115 // MSID and bundle attribute from the initial offer to verify that |
| 116 // video is playing for the call even if the initiating client don't support | 116 // video is playing for the call even if the initiating client don't support |
| 117 // MSID. http://tools.ietf.org/html/draft-alvestrand-rtcweb-msid-02 | 117 // MSID. http://tools.ietf.org/html/draft-alvestrand-rtcweb-msid-02 |
| 118 // Disabled for win7_aura, see http://crbug.com/235089. |
| 119 #if defined(OS_WIN) && defined(USE_AURA) |
| 120 #define MAYBE_CanSetupAudioAndVideoCallWithoutMsidAndBundle\ |
| 121 DISABLED_CanSetupAudioAndVideoCallWithoutMsidAndBundle |
| 122 #else |
| 123 #define MAYBE_CanSetupAudioAndVideoCallWithoutMsidAndBundle\ |
| 124 CanSetupAudioAndVideoCallWithoutMsidAndBundle |
| 125 #endif |
| 118 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, | 126 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, |
| 119 CanSetupAudioAndVideoCallWithoutMsidAndBundle) { | 127 MAYBE_CanSetupAudioAndVideoCallWithoutMsidAndBundle) { |
| 120 GURL url(test_server()->GetURL("files/media/peerconnection-call.html")); | 128 GURL url(test_server()->GetURL("files/media/peerconnection-call.html")); |
| 121 NavigateToURL(shell(), url); | 129 NavigateToURL(shell(), url); |
| 122 | 130 |
| 123 EXPECT_TRUE(ExecuteJavascript("callWithoutMsidAndBundle();")); | 131 EXPECT_TRUE(ExecuteJavascript("callWithoutMsidAndBundle();")); |
| 124 ExpectTitle("OK"); | 132 ExpectTitle("OK"); |
| 125 } | 133 } |
| 126 | 134 |
| 127 // This test will make a PeerConnection-based call and test an unreliable text | 135 // This test will make a PeerConnection-based call and test an unreliable text |
| 128 // dataChannel. | 136 // dataChannel. |
| 129 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, CallWithDataOnly) { | 137 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, CallWithDataOnly) { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 GURL url(test_server()->GetURL("files/media/peerconnection-call.html")); | 185 GURL url(test_server()->GetURL("files/media/peerconnection-call.html")); |
| 178 NavigateToURL(shell(), url); | 186 NavigateToURL(shell(), url); |
| 179 | 187 |
| 180 EXPECT_TRUE( | 188 EXPECT_TRUE( |
| 181 ExecuteJavascript("callWithNewVideoMediaStreamLaterSwitchToAudio();")); | 189 ExecuteJavascript("callWithNewVideoMediaStreamLaterSwitchToAudio();")); |
| 182 ExpectTitle("OK"); | 190 ExpectTitle("OK"); |
| 183 } | 191 } |
| 184 | 192 |
| 185 } // namespace content | 193 } // namespace content |
| 186 | 194 |
| OLD | NEW |