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

Unified Diff: cc/surfaces/display_unittest.cc

Issue 1496103002: Reusing base::IdType<...> to implement SurfaceId. Base URL: https://chromium.googlesource.com/chromium/src.git@type-safe-id-base
Patch Set: Rebasing + dusting off... Created 4 years, 10 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
« no previous file with comments | « cc/surfaces/display_scheduler_unittest.cc ('k') | cc/surfaces/surface_aggregator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display_unittest.cc
diff --git a/cc/surfaces/display_unittest.cc b/cc/surfaces/display_unittest.cc
index 9c90ce08b342e77413c7e34fbf75a1ab75352050..3d3ecd7b39449df098863623ce660d445b488893 100644
--- a/cc/surfaces/display_unittest.cc
+++ b/cc/surfaces/display_unittest.cc
@@ -166,7 +166,7 @@ TEST_F(DisplayTest, DisplayAsSurfaceAggregatorClient) {
task_runner_.get());
display.Initialize(std::move(output_surface_), &scheduler);
- SurfaceId surface_id(6);
+ SurfaceId surface_id = SurfaceId::FromUnsafeValue(6);
factory_.Create(surface_id);
Surface* surface = manager_.GetSurfaceForId(surface_id);
@@ -191,7 +191,7 @@ TEST_F(DisplayTest, DisplayDamaged) {
task_runner_.get());
display.Initialize(std::move(output_surface_), &scheduler);
- SurfaceId surface_id(7u);
+ SurfaceId surface_id = SurfaceId::FromUnsafeValue(7u);
EXPECT_FALSE(scheduler.damaged);
EXPECT_FALSE(scheduler.has_new_root_surface);
display.SetSurfaceId(surface_id, 1.f);
@@ -448,7 +448,7 @@ TEST_F(DisplayTest, Finish) {
task_runner_.get());
display.Initialize(std::move(output_surface_), &scheduler);
- SurfaceId surface_id(7u);
+ SurfaceId surface_id = SurfaceId::FromUnsafeValue(7u);
display.SetSurfaceId(surface_id, 1.f);
display.Resize(gfx::Size(100, 100));
« no previous file with comments | « cc/surfaces/display_scheduler_unittest.cc ('k') | cc/surfaces/surface_aggregator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698