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

Side by Side Diff: webrtc/modules/desktop_capture/screen_capturer_unittest.cc

Issue 2341933002: Disable all screen-capturer tests (Closed)
Patch Set: Resolve review comments Created 4 years, 3 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
« no previous file with comments | « no previous file | 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 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 264
265 // Verify that the region contains whole screen. 265 // Verify that the region contains whole screen.
266 EXPECT_FALSE(frame->updated_region().is_empty()); 266 EXPECT_FALSE(frame->updated_region().is_empty());
267 DesktopRegion::Iterator it(frame->updated_region()); 267 DesktopRegion::Iterator it(frame->updated_region());
268 ASSERT_TRUE(!it.IsAtEnd()); 268 ASSERT_TRUE(!it.IsAtEnd());
269 EXPECT_TRUE(it.rect().equals(DesktopRect::MakeSize(frame->size()))); 269 EXPECT_TRUE(it.rect().equals(DesktopRect::MakeSize(frame->size())));
270 it.Advance(); 270 it.Advance();
271 EXPECT_TRUE(it.IsAtEnd()); 271 EXPECT_TRUE(it.IsAtEnd());
272 } 272 }
273 273
274 TEST_F(ScreenCapturerTest, CaptureUpdatedRegion) { 274 // TODO(zijiehe): Bug 647067 is tracking the reason of flaky of following
275 // disabled tests.
276 TEST_F(ScreenCapturerTest, DISABLED_CaptureUpdatedRegion) {
275 TestCaptureUpdatedRegion(); 277 TestCaptureUpdatedRegion();
276 } 278 }
277 279
278 // TODO(zijiehe): Find out the reason of failure of this test on trybot.
279 TEST_F(ScreenCapturerTest, DISABLED_TwoCapturers) { 280 TEST_F(ScreenCapturerTest, DISABLED_TwoCapturers) {
280 std::unique_ptr<ScreenCapturer> capturer2 = std::move(capturer_); 281 std::unique_ptr<ScreenCapturer> capturer2 = std::move(capturer_);
281 SetUp(); 282 SetUp();
282 TestCaptureUpdatedRegion({capturer_.get(), capturer2.get()}); 283 TestCaptureUpdatedRegion({capturer_.get(), capturer2.get()});
283 } 284 }
284 285
285 #if defined(WEBRTC_WIN) 286 #if defined(WEBRTC_WIN)
286 287
287 TEST_F(ScreenCapturerTest, UseSharedBuffers) { 288 TEST_F(ScreenCapturerTest, UseSharedBuffers) {
288 std::unique_ptr<DesktopFrame> frame; 289 std::unique_ptr<DesktopFrame> frame;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 341
341 capturer_->Start(&callback_); 342 capturer_->Start(&callback_);
342 capturer_->SetSharedMemoryFactory( 343 capturer_->SetSharedMemoryFactory(
343 std::unique_ptr<SharedMemoryFactory>(new FakeSharedMemoryFactory())); 344 std::unique_ptr<SharedMemoryFactory>(new FakeSharedMemoryFactory()));
344 capturer_->Capture(DesktopRegion()); 345 capturer_->Capture(DesktopRegion());
345 ASSERT_TRUE(frame); 346 ASSERT_TRUE(frame);
346 ASSERT_TRUE(frame->shared_memory()); 347 ASSERT_TRUE(frame->shared_memory());
347 EXPECT_EQ(frame->shared_memory()->id(), kTestSharedMemoryId); 348 EXPECT_EQ(frame->shared_memory()->id(), kTestSharedMemoryId);
348 } 349 }
349 350
350 TEST_F(ScreenCapturerTest, CaptureUpdatedRegionWithDirectxCapturer) { 351 TEST_F(ScreenCapturerTest, DISABLED_CaptureUpdatedRegionWithDirectxCapturer) {
351 if (!CreateDirectxCapturer()) { 352 if (!CreateDirectxCapturer()) {
352 return; 353 return;
353 } 354 }
354 355
355 TestCaptureUpdatedRegion(); 356 TestCaptureUpdatedRegion();
356 } 357 }
357 358
358 TEST_F(ScreenCapturerTest, TwoDirectxCapturers) { 359 TEST_F(ScreenCapturerTest, DISABLED_TwoDirectxCapturers) {
359 if (!CreateDirectxCapturer()) { 360 if (!CreateDirectxCapturer()) {
360 return; 361 return;
361 } 362 }
362 363
363 std::unique_ptr<ScreenCapturer> capturer2 = std::move(capturer_); 364 std::unique_ptr<ScreenCapturer> capturer2 = std::move(capturer_);
364 RTC_CHECK(CreateDirectxCapturer()); 365 RTC_CHECK(CreateDirectxCapturer());
365 TestCaptureUpdatedRegion({capturer_.get(), capturer2.get()}); 366 TestCaptureUpdatedRegion({capturer_.get(), capturer2.get()});
366 } 367 }
367 368
368 TEST_F(ScreenCapturerTest, TwoMagnifierCapturers) { 369 TEST_F(ScreenCapturerTest, DISABLED_TwoMagnifierCapturers) {
369 CreateMagnifierCapturer(); 370 CreateMagnifierCapturer();
370 std::unique_ptr<ScreenCapturer> capturer2 = std::move(capturer_); 371 std::unique_ptr<ScreenCapturer> capturer2 = std::move(capturer_);
371 CreateMagnifierCapturer(); 372 CreateMagnifierCapturer();
372 TestCaptureUpdatedRegion({capturer_.get(), capturer2.get()}); 373 TestCaptureUpdatedRegion({capturer_.get(), capturer2.get()});
373 } 374 }
374 375
375 #endif // defined(WEBRTC_WIN) 376 #endif // defined(WEBRTC_WIN)
376 377
377 } // namespace webrtc 378 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698