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

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

Issue 442313002: Contentbrowsertest for verifying that a black frame is sent on a peerconnection if a track is disab… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed nit. Created 6 years, 4 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 | « no previous file | content/test/data/media/peerconnection-call.html » ('j') | 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/file_util.h" 6 #include "base/file_util.h"
7 #include "base/process/process_handle.h" 7 #include "base/process/process_handle.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/threading/platform_thread.h" 10 #include "base/threading/platform_thread.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest, 118 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest,
119 CanSetupVideoCallWith1To1AspectRatio) { 119 CanSetupVideoCallWith1To1AspectRatio) {
120 const std::string javascript = 120 const std::string javascript =
121 "callAndExpectResolution({video: {mandatory: {minWidth: 320," 121 "callAndExpectResolution({video: {mandatory: {minWidth: 320,"
122 " maxWidth: 320, minHeight: 320, maxHeight: 320}}}, 320, 320);"; 122 " maxWidth: 320, minHeight: 320, maxHeight: 320}}}, 320, 320);";
123 MakeTypicalPeerConnectionCall(javascript); 123 MakeTypicalPeerConnectionCall(javascript);
124 } 124 }
125 125
126 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest, 126 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest,
127 CanSetupVideoCallAndDisableLocalVideo) {
128 const std::string javascript =
129 "callAndDisableLocalVideo({video: true});";
130 MakeTypicalPeerConnectionCall(javascript);
131 }
132
133 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest,
127 CanSetupVideoCallWith16To9AspectRatio) { 134 CanSetupVideoCallWith16To9AspectRatio) {
128 const std::string javascript = 135 const std::string javascript =
129 "callAndExpectResolution({video: {mandatory: {minWidth: 640," 136 "callAndExpectResolution({video: {mandatory: {minWidth: 640,"
130 " maxWidth: 640, minAspectRatio: 1.777}}}, 640, 360);"; 137 " maxWidth: 640, minAspectRatio: 1.777}}}, 640, 360);";
131 MakeTypicalPeerConnectionCall(javascript); 138 MakeTypicalPeerConnectionCall(javascript);
132 } 139 }
133 140
134 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest, 141 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest,
135 CanSetupVideoCallWith4To3AspectRatio) { 142 CanSetupVideoCallWith4To3AspectRatio) {
136 const std::string javascript = 143 const std::string javascript =
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 545
539 base::DeleteFile(unique_dump_file, false); 546 base::DeleteFile(unique_dump_file, false);
540 } 547 }
541 } 548 }
542 549
543 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest, CreateOfferWithOfferOptions) { 550 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest, CreateOfferWithOfferOptions) {
544 MakeTypicalPeerConnectionCall("testCreateOfferOptions();"); 551 MakeTypicalPeerConnectionCall("testCreateOfferOptions();");
545 } 552 }
546 553
547 } // namespace content 554 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/test/data/media/peerconnection-call.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698