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

Unified Diff: cc/surfaces/surface_unittest.cc

Issue 2661543002: Rename LocalFrameId to LocalSurfaceId (Closed)
Patch Set: c Created 3 years, 11 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/surface_manager_ref_unittest.cc ('k') | cc/surfaces/surfaces_pixeltest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_unittest.cc
diff --git a/cc/surfaces/surface_unittest.cc b/cc/surfaces/surface_unittest.cc
index b2d65e93572e0fe469533ad067d7210183ca4a7c..dc6dc2dee90556bd39d69f88154bc70219bf6558 100644
--- a/cc/surfaces/surface_unittest.cc
+++ b/cc/surfaces/surface_unittest.cc
@@ -38,9 +38,9 @@ TEST(SurfaceTest, SurfaceLifetime) {
SurfaceFactory factory(kArbitraryFrameSinkId, &manager,
&surface_factory_client);
- LocalFrameId local_frame_id(6, base::UnguessableToken::Create());
- SurfaceId surface_id(kArbitraryFrameSinkId, local_frame_id);
- factory.SubmitCompositorFrame(local_frame_id, CompositorFrame(),
+ LocalSurfaceId local_surface_id(6, base::UnguessableToken::Create());
+ SurfaceId surface_id(kArbitraryFrameSinkId, local_surface_id);
+ factory.SubmitCompositorFrame(local_surface_id, CompositorFrame(),
SurfaceFactory::DrawCallback());
EXPECT_TRUE(manager.GetSurfaceForId(surface_id));
factory.EvictSurface();
@@ -51,8 +51,8 @@ TEST(SurfaceTest, SurfaceLifetime) {
TEST(SurfaceTest, SurfaceIds) {
for (size_t i = 0; i < 3; ++i) {
SurfaceIdAllocator allocator;
- LocalFrameId id1 = allocator.GenerateId();
- LocalFrameId id2 = allocator.GenerateId();
+ LocalSurfaceId id1 = allocator.GenerateId();
+ LocalSurfaceId id2 = allocator.GenerateId();
EXPECT_NE(id1, id2);
}
}
« no previous file with comments | « cc/surfaces/surface_manager_ref_unittest.cc ('k') | cc/surfaces/surfaces_pixeltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698