| 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, |
| 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 Loading... |
| 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 |
| OLD | NEW |