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

Unified Diff: cc/surfaces/surface_hittest_unittest.cc

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase Created 4 years, 8 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_factory_unittest.cc ('k') | cc/surfaces/surface_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_hittest_unittest.cc
diff --git a/cc/surfaces/surface_hittest_unittest.cc b/cc/surfaces/surface_hittest_unittest.cc
index 9c1309c4a37c792f41e539b2033f850cac6acaec..fec650942217c5a4a88b853e90fce9a92aca95b3 100644
--- a/cc/surfaces/surface_hittest_unittest.cc
+++ b/cc/surfaces/surface_hittest_unittest.cc
@@ -66,7 +66,7 @@ TEST(SurfaceHittestTest, Hittest_BadCompositorFrameDoesNotCrash) {
// Creates a root surface.
gfx::Rect root_rect(300, 300);
RenderPass* root_pass = nullptr;
- scoped_ptr<CompositorFrame> root_frame =
+ std::unique_ptr<CompositorFrame> root_frame =
CreateCompositorFrame(root_rect, &root_pass);
// Add a reference to a non-existant child surface on the root surface.
@@ -107,7 +107,7 @@ TEST(SurfaceHittestTest, Hittest_SingleSurface) {
// Creates a root surface.
gfx::Rect root_rect(300, 300);
RenderPass* root_pass = nullptr;
- scoped_ptr<CompositorFrame> root_frame =
+ std::unique_ptr<CompositorFrame> root_frame =
CreateCompositorFrame(root_rect, &root_pass);
// Submit the root frame.
@@ -138,7 +138,7 @@ TEST(SurfaceHittestTest, Hittest_ChildSurface) {
// Creates a root surface.
gfx::Rect root_rect(300, 300);
RenderPass* root_pass = nullptr;
- scoped_ptr<CompositorFrame> root_frame =
+ std::unique_ptr<CompositorFrame> root_frame =
CreateCompositorFrame(root_rect, &root_pass);
// Add a reference to the child surface on the root surface.
@@ -163,7 +163,7 @@ TEST(SurfaceHittestTest, Hittest_ChildSurface) {
// Creates a child surface.
RenderPass* child_pass = nullptr;
- scoped_ptr<CompositorFrame> child_frame =
+ std::unique_ptr<CompositorFrame> child_frame =
CreateCompositorFrame(child_rect, &child_pass);
// Add a solid quad in the child surface.
@@ -271,7 +271,7 @@ TEST(SurfaceHittestTest, Hittest_InvalidRenderPassDrawQuad) {
// Creates a root surface.
gfx::Rect root_rect(300, 300);
RenderPass* root_pass = nullptr;
- scoped_ptr<CompositorFrame> root_frame =
+ std::unique_ptr<CompositorFrame> root_frame =
CreateCompositorFrame(root_rect, &root_pass);
// Create a RenderPassDrawQuad to a non-existant RenderPass.
@@ -303,7 +303,7 @@ TEST(SurfaceHittestTest, Hittest_InvalidRenderPassDrawQuad) {
// Creates a child surface.
RenderPass* child_pass = nullptr;
- scoped_ptr<CompositorFrame> child_frame =
+ std::unique_ptr<CompositorFrame> child_frame =
CreateCompositorFrame(child_rect, &child_pass);
// Add a solid quad in the child surface.
@@ -392,7 +392,7 @@ TEST(SurfaceHittestTest, Hittest_RenderPassDrawQuad) {
&render_pass_list);
RenderPass* root_pass = nullptr;
- scoped_ptr<CompositorFrame> root_frame =
+ std::unique_ptr<CompositorFrame> root_frame =
CreateCompositorFrameWithRenderPassList(&render_pass_list);
root_pass = root_frame->delegated_frame_data->render_pass_list.back().get();
@@ -477,7 +477,7 @@ TEST(SurfaceHittestTest, Hittest_SingleSurface_WithInsetsDelegate) {
// Creates a root surface.
gfx::Rect root_rect(300, 300);
RenderPass* root_pass = nullptr;
- scoped_ptr<CompositorFrame> root_frame =
+ std::unique_ptr<CompositorFrame> root_frame =
CreateCompositorFrame(root_rect, &root_pass);
// Add a reference to the child surface on the root surface.
@@ -501,7 +501,7 @@ TEST(SurfaceHittestTest, Hittest_SingleSurface_WithInsetsDelegate) {
// Creates a child surface.
RenderPass* child_pass = nullptr;
- scoped_ptr<CompositorFrame> child_frame =
+ std::unique_ptr<CompositorFrame> child_frame =
CreateCompositorFrame(child_rect, &child_pass);
// Add a solid quad in the child surface.
« no previous file with comments | « cc/surfaces/surface_factory_unittest.cc ('k') | cc/surfaces/surface_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698