Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(485)

Side by Side Diff: content/browser/media/webrtc_browsertest.cc

Issue 18769010: Updated Chrome Test pages to use adapter.js (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/functional/webrtc_test_base.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/utf_string_conversions.h" 6 #include "base/strings/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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 EXPECT_EQ(expected_title16, title_watcher.WaitAndGetTitle()); 45 EXPECT_EQ(expected_title16, title_watcher.WaitAndGetTitle());
46 } 46 }
47 }; 47 };
48 48
49 // These tests will all make a getUserMedia call with different constraints and 49 // These tests will all make a getUserMedia call with different constraints and
50 // see that the success callback is called. If the error callback is called or 50 // see that the success callback is called. If the error callback is called or
51 // none of the callbacks are called the tests will simply time out and fail. 51 // none of the callbacks are called the tests will simply time out and fail.
52 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, GetVideoStreamAndStop) { 52 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, GetVideoStreamAndStop) {
53 GURL url(embedded_test_server()->GetURL("/media/getusermedia.html")); 53 GURL url(embedded_test_server()->GetURL("/media/getusermedia.html"));
54 NavigateToURL(shell(), url); 54 NavigateToURL(shell(), url);
55 55
phoglund_chromium 2013/07/29 11:27:55 Sorry, you should not be changing anything here si
56 EXPECT_TRUE(ExecuteJavascript("getUserMedia({video: true});")); 56 EXPECT_TRUE(ExecuteJavascript("doGetUserMedia({video: true});"));
57 57
58 ExpectTitle("OK"); 58 ExpectTitle("OK");
59 } 59 }
60 60
61 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, GetAudioAndVideoStreamAndStop) { 61 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, GetAudioAndVideoStreamAndStop) {
62 GURL url(embedded_test_server()->GetURL("/media/getusermedia.html")); 62 GURL url(embedded_test_server()->GetURL("/media/getusermedia.html"));
63 NavigateToURL(shell(), url); 63 NavigateToURL(shell(), url);
64 64
65 EXPECT_TRUE(ExecuteJavascript("getUserMedia({video: true, audio: true});")); 65 EXPECT_TRUE(ExecuteJavascript("doGetUserMedia({video: true, audio: true});"));
66 66
67 ExpectTitle("OK"); 67 ExpectTitle("OK");
68 } 68 }
69 69
70 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, GetAudioAndVideoStreamAndClone) { 70 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, GetAudioAndVideoStreamAndClone) {
71 GURL url(embedded_test_server()->GetURL("/media/getusermedia.html")); 71 GURL url(embedded_test_server()->GetURL("/media/getusermedia.html"));
72 NavigateToURL(shell(), url); 72 NavigateToURL(shell(), url);
73 73
74 EXPECT_TRUE(ExecuteJavascript("getUserMediaAndClone();")); 74 EXPECT_TRUE(ExecuteJavascript("doGetUserMediaAndClone();"));
75 75
76 ExpectTitle("OK"); 76 ExpectTitle("OK");
77 } 77 }
78 78
79 79
80 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(ARCH_CPU_ARM_FAMILY) 80 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(ARCH_CPU_ARM_FAMILY)
81 // Timing out on ARM linux bot: http://crbug.com/238490 81 // Timing out on ARM linux bot: http://crbug.com/238490
82 #define MAYBE_CanSetupVideoCall DISABLED_CanSetupVideoCall 82 #define MAYBE_CanSetupVideoCall DISABLED_CanSetupVideoCall
83 #else 83 #else
84 #define MAYBE_CanSetupVideoCall CanSetupVideoCall 84 #define MAYBE_CanSetupVideoCall CanSetupVideoCall
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, MANUAL_CallAndModifyStream) { 224 IN_PROC_BROWSER_TEST_F(WebrtcBrowserTest, MANUAL_CallAndModifyStream) {
225 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html")); 225 GURL url(embedded_test_server()->GetURL("/media/peerconnection-call.html"));
226 NavigateToURL(shell(), url); 226 NavigateToURL(shell(), url);
227 227
228 EXPECT_TRUE( 228 EXPECT_TRUE(
229 ExecuteJavascript("callWithNewVideoMediaStreamLaterSwitchToAudio();")); 229 ExecuteJavascript("callWithNewVideoMediaStreamLaterSwitchToAudio();"));
230 ExpectTitle("OK"); 230 ExpectTitle("OK");
231 } 231 }
232 232
233 } // namespace content 233 } // namespace content
OLDNEW
« no previous file with comments | « chrome/test/functional/webrtc_test_base.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698