Commit 0d2bc35e authored by kylechar's avatar kylechar Committed by Commit Bot

Fix HostFrameSinkManagerTest.

There is a use after free in recent commit. Fix it.

Bug: 742374
Change-Id: Iab561ccdc7f863a77a1c70460a87b6714894e954
Reviewed-on: https://chromium-review.googlesource.com/571323Reviewed-by: default avatarFady Samuel <fsamuel@chromium.org>
Commit-Queue: kylechar <kylechar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#486857}
parent 6f235f08
......@@ -131,10 +131,10 @@ TEST_F(HostFrameSinkManagerTest, CreateDestroyCompositorFrameSinkSupport) {
nullptr /* client */, kFrameSinkId1, true /* is_root */,
true /* handles_frame_sink_id_invalidation */,
false /* needs_sync_points */);
EXPECT_TRUE(FrameSinkIdExists(support->frame_sink_id()));
EXPECT_TRUE(FrameSinkIdExists(kFrameSinkId1));
support.reset();
EXPECT_FALSE(FrameSinkIdExists(support->frame_sink_id()));
EXPECT_FALSE(FrameSinkIdExists(kFrameSinkId1));
}
} // namespace test
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment