Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Deflake?
  • Loading branch information
dnfield committed Aug 26, 2020
commit d9a6a8d42cd6ab2304ec83b7e8388070627e2df6
6 changes: 6 additions & 0 deletions lib/ui/painting/image_dispose_unittests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ TEST_F(ImageDisposeTest, ImageReleasedAfterFrame) {
ASSERT_TRUE(current_picture_);
ASSERT_TRUE(current_image_);

message_latch_.Reset();

// flush the UI Task runner
task_runner->PostTask([&]() { message_latch_.Signal(); });
message_latch_.Wait();

EXPECT_TRUE(current_picture_->unique());
current_picture_.reset();

Expand Down