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/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/location.h" | 7 #include "base/location.h" |
8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 // Tests that there is a maximum limitation to the number of simultaneous | 168 // Tests that there is a maximum limitation to the number of simultaneous |
169 // off-screen tabs. | 169 // off-screen tabs. |
170 IN_PROC_BROWSER_TEST_F(TabCaptureApiTest, MaxOffscreenTabs) { | 170 IN_PROC_BROWSER_TEST_F(TabCaptureApiTest, MaxOffscreenTabs) { |
171 AddExtensionToCommandLineWhitelist(); | 171 AddExtensionToCommandLineWhitelist(); |
172 ASSERT_TRUE(RunExtensionSubtest("tab_capture", "max_offscreen_tabs.html")) | 172 ASSERT_TRUE(RunExtensionSubtest("tab_capture", "max_offscreen_tabs.html")) |
173 << message_; | 173 << message_; |
174 } | 174 } |
175 | 175 |
176 // Tests that tab capture video frames can be received in a VIDEO element. | 176 // Tests that tab capture video frames can be received in a VIDEO element. |
177 // Disabled in MacOS: https://crbug.com/557929 | 177 IN_PROC_BROWSER_TEST_F(TabCaptureApiPixelTest, EndToEndWithoutRemoting) { |
178 #if defined(OS_MACOSX) | |
179 #define MAYBE_EndToEndWithoutRemoting DISABLED_EndToEndWithoutRemoting | |
180 #else | |
181 #define MAYBE_EndToEndWithoutRemoting EndToEndWithoutRemoting | |
182 #endif | |
183 IN_PROC_BROWSER_TEST_F(TabCaptureApiPixelTest, MAYBE_EndToEndWithoutRemoting) { | |
184 if (IsTooIntensiveForThisPlatform()) { | 178 if (IsTooIntensiveForThisPlatform()) { |
185 LOG(WARNING) << "Skipping this CPU-intensive test on this platform/build."; | 179 LOG(WARNING) << "Skipping this CPU-intensive test on this platform/build."; |
186 return; | 180 return; |
187 } | 181 } |
188 AddExtensionToCommandLineWhitelist(); | 182 AddExtensionToCommandLineWhitelist(); |
189 ASSERT_TRUE(RunExtensionSubtest( | 183 ASSERT_TRUE(RunExtensionSubtest( |
190 "tab_capture", "end_to_end.html?method=local&colorDeviation=10")) | 184 "tab_capture", "end_to_end.html?method=local&colorDeviation=10")) |
191 << message_; | 185 << message_; |
192 } | 186 } |
193 | 187 |
194 // Tests that video frames are captured, transported via WebRTC, and finally | 188 // Tests that video frames are captured, transported via WebRTC, and finally |
195 // received in a VIDEO element. More allowance is provided for color deviation | 189 // received in a VIDEO element. More allowance is provided for color deviation |
196 // because of the additional layers of video processing performed within | 190 // because of the additional layers of video processing performed within |
197 // WebRTC. | 191 // WebRTC. |
198 // Disabled in MacOS: https://crbug.com/557929 | 192 IN_PROC_BROWSER_TEST_F(TabCaptureApiPixelTest, EndToEndThroughWebRTC) { |
199 #if defined(OS_MACOSX) | |
200 #define MAYBE_EndToEndThroughWebRTC DISABLED_EndToEndThroughWebRTC | |
201 #else | |
202 #define MAYBE_EndToEndThroughWebRTC EndToEndThroughWebRTC | |
203 #endif | |
204 IN_PROC_BROWSER_TEST_F(TabCaptureApiPixelTest, MAYBE_EndToEndThroughWebRTC) { | |
205 if (IsTooIntensiveForThisPlatform()) { | 193 if (IsTooIntensiveForThisPlatform()) { |
206 LOG(WARNING) << "Skipping this CPU-intensive test on this platform/build."; | 194 LOG(WARNING) << "Skipping this CPU-intensive test on this platform/build."; |
207 return; | 195 return; |
208 } | 196 } |
209 AddExtensionToCommandLineWhitelist(); | 197 AddExtensionToCommandLineWhitelist(); |
210 ASSERT_TRUE(RunExtensionSubtest( | 198 ASSERT_TRUE(RunExtensionSubtest( |
211 "tab_capture", "end_to_end.html?method=webrtc&colorDeviation=50")) | 199 "tab_capture", "end_to_end.html?method=webrtc&colorDeviation=50")) |
212 << message_; | 200 << message_; |
213 } | 201 } |
214 | 202 |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 return; | 457 return; |
470 } | 458 } |
471 content::RunMessageLoop(); | 459 content::RunMessageLoop(); |
472 } | 460 } |
473 browser()->tab_strip_model()->RemoveObserver(&observer); | 461 browser()->tab_strip_model()->RemoveObserver(&observer); |
474 } | 462 } |
475 | 463 |
476 } // namespace | 464 } // namespace |
477 | 465 |
478 } // namespace extensions | 466 } // namespace extensions |
OLD | NEW |