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

Unified Diff: cc/test/layer_tree_json_parser_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/test/layer_tree_json_parser.cc ('k') | cc/test/layer_tree_pixel_resource_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_json_parser_unittest.cc
diff --git a/cc/test/layer_tree_json_parser_unittest.cc b/cc/test/layer_tree_json_parser_unittest.cc
index 7cd1a8b8e1052be8b7dd1035982b8853b377f2e4..3e52c8e84d8fb09fc5ed1a26655455d9bd506039 100644
--- a/cc/test/layer_tree_json_parser_unittest.cc
+++ b/cc/test/layer_tree_json_parser_unittest.cc
@@ -67,9 +67,9 @@ TEST_F(LayerTreeJsonParserSanityCheck, Basic) {
&task_graph_runner);
LayerTreeImpl* tree = host_impl.active_tree();
- scoped_ptr<LayerImpl> root_impl(LayerImpl::Create(tree, 1));
- scoped_ptr<LayerImpl> parent(LayerImpl::Create(tree, 2));
- scoped_ptr<LayerImpl> child(LayerImpl::Create(tree, 3));
+ std::unique_ptr<LayerImpl> root_impl(LayerImpl::Create(tree, 1));
+ std::unique_ptr<LayerImpl> parent(LayerImpl::Create(tree, 2));
+ std::unique_ptr<LayerImpl> child(LayerImpl::Create(tree, 3));
root_impl->SetBounds(gfx::Size(100, 100));
parent->SetBounds(gfx::Size(50, 50));
@@ -95,8 +95,8 @@ TEST_F(LayerTreeJsonParserSanityCheck, EventHandlerRegions) {
&task_graph_runner);
LayerTreeImpl* tree = host_impl.active_tree();
- scoped_ptr<LayerImpl> root_impl(LayerImpl::Create(tree, 1));
- scoped_ptr<LayerImpl> touch_layer(LayerImpl::Create(tree, 2));
+ std::unique_ptr<LayerImpl> root_impl(LayerImpl::Create(tree, 1));
+ std::unique_ptr<LayerImpl> touch_layer(LayerImpl::Create(tree, 2));
root_impl->SetBounds(gfx::Size(100, 100));
touch_layer->SetBounds(gfx::Size(50, 50));
« no previous file with comments | « cc/test/layer_tree_json_parser.cc ('k') | cc/test/layer_tree_pixel_resource_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698