Chromium Code Reviews| Index: content/browser/media/webrtc_browsertest.cc |
| diff --git a/content/browser/media/webrtc_browsertest.cc b/content/browser/media/webrtc_browsertest.cc |
| index 3c7387085d09727a0fec509b15af0fc3ee02e5d5..f3e78374129a60dddb1d19ac0eac0f598d3611dd 100644 |
| --- a/content/browser/media/webrtc_browsertest.cc |
| +++ b/content/browser/media/webrtc_browsertest.cc |
| @@ -233,6 +233,33 @@ IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, |
| ExpectTitle("OK"); |
| } |
| +// This test will modify the sdp offer to an unsupported codec to verify that |
|
phoglund_chromium
2013/11/04 09:34:56
Nit: This sentence is a bit convoluted and hard to
elham
2013/11/07 23:48:00
Done.
|
| +// SetLocalDescription fails when trying to negotiate with an unsupported |
| +// video codec |
| +IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, |
| + NegotiateUnsupportedVideoCodec) { |
| + ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); |
| + |
| + GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html")); |
| + NavigateToURL(shell(), url); |
| + |
| + EXPECT_TRUE(ExecuteJavascript("negotiateUnsupportedVideoCodec();")); |
| + ExpectTitle("OK"); |
| +} |
| + |
| +// This test will modify the sdp offer to verify that SetLocalDescription |
|
phoglund_chromium
2013/11/04 09:34:56
Nit: rewrite this sentence like the one above.
elham
2013/11/07 23:48:00
Done.
|
| +// fails when trying to negotiate a call with one peer that does not |
| +// support encryption. |
| +IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, NegotiateNonCryptoCall) { |
| + ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); |
| + |
| + GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html")); |
| + NavigateToURL(shell(), url); |
| + |
| + EXPECT_TRUE(ExecuteJavascript("negotiateNonCryptoCall();")); |
| + ExpectTitle("OK"); |
| +} |
| + |
| // This test will make a PeerConnection-based call and test an unreliable text |
| // dataChannel. |
| // TODO(mallinath) - Remove this test after rtp based data channel is disabled. |