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

Side by Side Diff: services/ui/ws/window_tree_client_unittest.cc

Issue 2661543002: Rename LocalFrameId to LocalSurfaceId (Closed)
Patch Set: c Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 2156 matching lines...) Expand 10 before | Expand all | Expand 10 after
2167 client_request = mojo::MakeRequest(&surface_client_ptr); 2167 client_request = mojo::MakeRequest(&surface_client_ptr);
2168 wt2()->AttachCompositorFrameSink(window_2_101, 2168 wt2()->AttachCompositorFrameSink(window_2_101,
2169 mojo::MakeRequest(&surface_ptr), 2169 mojo::MakeRequest(&surface_ptr),
2170 std::move(surface_client_ptr)); 2170 std::move(surface_client_ptr));
2171 cc::CompositorFrame compositor_frame; 2171 cc::CompositorFrame compositor_frame;
2172 std::unique_ptr<cc::RenderPass> render_pass = cc::RenderPass::Create(); 2172 std::unique_ptr<cc::RenderPass> render_pass = cc::RenderPass::Create();
2173 gfx::Rect frame_rect(0, 0, 100, 100); 2173 gfx::Rect frame_rect(0, 0, 100, 100);
2174 render_pass->SetNew(1, frame_rect, frame_rect, gfx::Transform()); 2174 render_pass->SetNew(1, frame_rect, frame_rect, gfx::Transform());
2175 compositor_frame.render_pass_list.push_back(std::move(render_pass)); 2175 compositor_frame.render_pass_list.push_back(std::move(render_pass));
2176 compositor_frame.metadata.device_scale_factor = 1.f; 2176 compositor_frame.metadata.device_scale_factor = 1.f;
2177 cc::LocalFrameId local_frame_id(1, base::UnguessableToken::Create()); 2177 cc::LocalSurfaceId local_surface_id(1, base::UnguessableToken::Create());
2178 surface_ptr->SubmitCompositorFrame(local_frame_id, 2178 surface_ptr->SubmitCompositorFrame(local_surface_id,
2179 std::move(compositor_frame)); 2179 std::move(compositor_frame));
2180 // Make sure the parent connection gets the surface ID. 2180 // Make sure the parent connection gets the surface ID.
2181 wt_client1()->WaitForChangeCount(1); 2181 wt_client1()->WaitForChangeCount(1);
2182 // Verify that the submitted frame is for |window_2_101|. 2182 // Verify that the submitted frame is for |window_2_101|.
2183 EXPECT_EQ(window_2_101_in_ws1, 2183 EXPECT_EQ(window_2_101_in_ws1,
2184 changes1()->back().surface_id.frame_sink_id().client_id()); 2184 changes1()->back().surface_id.frame_sink_id().client_id());
2185 } 2185 }
2186 2186
2187 // Verifies when an unknown window with a known child is added to a hierarchy 2187 // Verifies when an unknown window with a known child is added to a hierarchy
2188 // the known child is identified in the WindowData. 2188 // the known child is identified in the WindowData.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
2223 2223
2224 // TODO(sky): make sure coverage of what was 2224 // TODO(sky): make sure coverage of what was
2225 // WindowManagerTest.SecondEmbedRoot_InitService and 2225 // WindowManagerTest.SecondEmbedRoot_InitService and
2226 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window 2226 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window
2227 // manager 2227 // manager
2228 // tests. 2228 // tests.
2229 2229
2230 } // namespace test 2230 } // namespace test
2231 } // namespace ws 2231 } // namespace ws
2232 } // namespace ui 2232 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698