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/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 Loading... |
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, | |
134 CanSetupVideoCallWith16To9AspectRatio) { | 127 CanSetupVideoCallWith16To9AspectRatio) { |
135 const std::string javascript = | 128 const std::string javascript = |
136 "callAndExpectResolution({video: {mandatory: {minWidth: 640," | 129 "callAndExpectResolution({video: {mandatory: {minWidth: 640," |
137 " maxWidth: 640, minAspectRatio: 1.777}}}, 640, 360);"; | 130 " maxWidth: 640, minAspectRatio: 1.777}}}, 640, 360);"; |
138 MakeTypicalPeerConnectionCall(javascript); | 131 MakeTypicalPeerConnectionCall(javascript); |
139 } | 132 } |
140 | 133 |
141 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest, | 134 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest, |
142 CanSetupVideoCallWith4To3AspectRatio) { | 135 CanSetupVideoCallWith4To3AspectRatio) { |
143 const std::string javascript = | 136 const std::string javascript = |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 | 538 |
546 base::DeleteFile(unique_dump_file, false); | 539 base::DeleteFile(unique_dump_file, false); |
547 } | 540 } |
548 } | 541 } |
549 | 542 |
550 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest, CreateOfferWithOfferOptions) { | 543 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest, CreateOfferWithOfferOptions) { |
551 MakeTypicalPeerConnectionCall("testCreateOfferOptions();"); | 544 MakeTypicalPeerConnectionCall("testCreateOfferOptions();"); |
552 } | 545 } |
553 | 546 |
554 } // namespace content | 547 } // namespace content |
OLD | NEW |