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

Unified Diff: cc/surfaces/display_unittest.cc

Issue 1996783002: Make cc::SurfaceId unguessable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit tests Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: cc/surfaces/display_unittest.cc
diff --git a/cc/surfaces/display_unittest.cc b/cc/surfaces/display_unittest.cc
index 312c3a4a9da65012ed9833c6baa246ab547be933..9bce5f37803ec9913fe791e41d186153932220ff 100644
--- a/cc/surfaces/display_unittest.cc
+++ b/cc/surfaces/display_unittest.cc
@@ -195,7 +195,8 @@ TEST_F(DisplayTest, DisplayDamaged) {
display.Initialize(std::move(output_surface_), task_runner_.get());
TestDisplayScheduler& scheduler = display.scheduler();
- SurfaceId surface_id(id_allocator_.GenerateId());
+ SurfaceId surface_id;
+ surface_id = id_allocator_.GenerateId();
EXPECT_FALSE(scheduler.damaged);
EXPECT_FALSE(scheduler.has_new_root_surface);
display.SetSurfaceId(surface_id, 1.f);
@@ -451,7 +452,8 @@ TEST_F(DisplayTest, Finish) {
EXPECT_CALL(*context_ptr, shallowFinishCHROMIUM()).Times(0);
- SurfaceId surface_id(id_allocator_.GenerateId());
+ SurfaceId surface_id;
+ surface_id = id_allocator_.GenerateId();
TestDisplayClient client;
RendererSettings settings;

Powered by Google App Engine
This is Rietveld 408576698