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

Unified Diff: cc/blink/web_layer_impl_fixed_bounds_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/blink/web_layer_impl.h ('k') | cc/blink/web_scrollbar_layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_layer_impl_fixed_bounds_unittest.cc
diff --git a/cc/blink/web_layer_impl_fixed_bounds_unittest.cc b/cc/blink/web_layer_impl_fixed_bounds_unittest.cc
index 884cbdb257d58f2d3e0aefdf38d9928e13eec4bf..40c7db6bd9a3edf7f47c32a213469f3a774a5a88 100644
--- a/cc/blink/web_layer_impl_fixed_bounds_unittest.cc
+++ b/cc/blink/web_layer_impl_fixed_bounds_unittest.cc
@@ -22,7 +22,7 @@ namespace cc_blink {
namespace {
TEST(WebLayerImplFixedBoundsTest, IdentityBounds) {
- scoped_ptr<WebLayerImplFixedBounds> layer(new WebLayerImplFixedBounds());
+ std::unique_ptr<WebLayerImplFixedBounds> layer(new WebLayerImplFixedBounds());
layer->SetFixedBounds(gfx::Size(100, 100));
layer->setBounds(WebSize(100, 100));
EXPECT_EQ(WebSize(100, 100), layer->bounds());
@@ -59,7 +59,7 @@ void CheckBoundsScaleSimple(WebLayerImplFixedBounds* layer,
}
TEST(WebLayerImplFixedBoundsTest, BoundsScaleSimple) {
- scoped_ptr<WebLayerImplFixedBounds> layer(new WebLayerImplFixedBounds());
+ std::unique_ptr<WebLayerImplFixedBounds> layer(new WebLayerImplFixedBounds());
CheckBoundsScaleSimple(layer.get(), WebSize(100, 200), gfx::Size(150, 250));
// Change fixed_bounds.
CheckBoundsScaleSimple(layer.get(), WebSize(100, 200), gfx::Size(75, 100));
@@ -87,7 +87,8 @@ void CompareFixedBoundsLayerAndNormalLayer(const WebFloatPoint& anchor_point,
WebFloatPoint position(20, 30);
gfx::Size fixed_bounds(160, 70);
- scoped_ptr<WebLayerImplFixedBounds> root_layer(new WebLayerImplFixedBounds());
+ std::unique_ptr<WebLayerImplFixedBounds> root_layer(
+ new WebLayerImplFixedBounds());
WebLayerImplFixedBounds* fixed_bounds_layer =
new WebLayerImplFixedBounds(cc::PictureImageLayer::Create());
@@ -106,7 +107,7 @@ void CompareFixedBoundsLayerAndNormalLayer(const WebFloatPoint& anchor_point,
cc::FakeLayerTreeHostClient client(cc::FakeLayerTreeHostClient::DIRECT_3D);
cc::TestTaskGraphRunner task_graph_runner;
- scoped_ptr<cc::FakeLayerTreeHost> host =
+ std::unique_ptr<cc::FakeLayerTreeHost> host =
cc::FakeLayerTreeHost::Create(&client, &task_graph_runner);
host->SetRootLayer(root_layer->layer());
« no previous file with comments | « cc/blink/web_layer_impl.h ('k') | cc/blink/web_scrollbar_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698