OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/json/json_reader.h" | 6 #include "base/json/json_reader.h" |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "content/public/common/content_switches.h" | 10 #include "content/public/common/content_switches.h" |
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 1, converted_values[i]); | 674 1, converted_values[i]); |
675 } | 675 } |
676 } | 676 } |
677 | 677 |
678 // Timing out on ARM linux bot: http://crbug.com/238490 | 678 // Timing out on ARM linux bot: http://crbug.com/238490 |
679 // Disabling due to failure on Linux, Mac, Win: http://crbug.com/272413 | 679 // Disabling due to failure on Linux, Mac, Win: http://crbug.com/272413 |
680 // Sanity check of the page content under a real PeerConnection call. | 680 // Sanity check of the page content under a real PeerConnection call. |
681 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcInternalsBrowserTest, | 681 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcInternalsBrowserTest, |
682 DISABLED_WithRealPeerConnectionCall) { | 682 DISABLED_WithRealPeerConnectionCall) { |
683 // Start a peerconnection call in the first window. | 683 // Start a peerconnection call in the first window. |
684 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); | 684 ASSERT_TRUE(embedded_test_server()->Start()); |
685 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html")); | 685 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html")); |
686 NavigateToURL(shell(), url); | 686 NavigateToURL(shell(), url); |
687 ASSERT_TRUE(ExecuteJavascript("call({video:true});")); | 687 ASSERT_TRUE(ExecuteJavascript("call({video:true});")); |
688 ExpectTitle("OK"); | 688 ExpectTitle("OK"); |
689 | 689 |
690 // Open webrtc-internals in the second window. | 690 // Open webrtc-internals in the second window. |
691 GURL url2("chrome://webrtc-internals"); | 691 GURL url2("chrome://webrtc-internals"); |
692 Shell* shell2 = CreateBrowser(); | 692 Shell* shell2 = CreateBrowser(); |
693 NavigateToURL(shell2, url2); | 693 NavigateToURL(shell2, url2); |
694 | 694 |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 ASSERT_TRUE(ExecuteScriptAndExtractInt( | 871 ASSERT_TRUE(ExecuteScriptAndExtractInt( |
872 shell()->web_contents(), | 872 shell()->web_contents(), |
873 "window.domAutomationController.send(" | 873 "window.domAutomationController.send(" |
874 " peerConnectionDataStore['" + pc.getIdString() + "']" + | 874 " peerConnectionDataStore['" + pc.getIdString() + "']" + |
875 " .getDataSeries('" + data_series_id + "').getCount())", | 875 " .getDataSeries('" + data_series_id + "').getCount())", |
876 &count)); | 876 &count)); |
877 EXPECT_EQ(3, count); | 877 EXPECT_EQ(3, count); |
878 } | 878 } |
879 | 879 |
880 } // namespace content | 880 } // namespace content |
OLD | NEW |