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

Unified Diff: cc/resources/picture_layer_tiling_set_unittest.cc

Issue 816193002: cc: Remove auto use with smart pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/debug/rasterize_and_record_benchmark_impl.cc ('k') | cc/resources/picture_layer_tiling_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_layer_tiling_set_unittest.cc
diff --git a/cc/resources/picture_layer_tiling_set_unittest.cc b/cc/resources/picture_layer_tiling_set_unittest.cc
index fa79e24625120b78812944ab10a566b5aa2d2f92..3cafa4c64bd2f2903342e7fad9edb42009028aef 100644
--- a/cc/resources/picture_layer_tiling_set_unittest.cc
+++ b/cc/resources/picture_layer_tiling_set_unittest.cc
@@ -107,7 +107,8 @@ TEST(PictureLayerTilingSetTest, TilingRange) {
EXPECT_EQ(4u, lower_than_low_res_range.start);
EXPECT_EQ(5u, lower_than_low_res_range.end);
- auto set_without_low_res = CreateTilingSet(&client);
+ scoped_ptr<PictureLayerTilingSet> set_without_low_res =
+ CreateTilingSet(&client);
set_without_low_res->AddTiling(2.0, pile);
high_res_tiling = set_without_low_res->AddTiling(1.0, pile);
high_res_tiling->set_resolution(HIGH_RESOLUTION);
@@ -137,7 +138,8 @@ TEST(PictureLayerTilingSetTest, TilingRange) {
PictureLayerTilingSet::LOWER_THAN_LOW_RES);
EXPECT_EQ(0u, lower_than_low_res_range.end - lower_than_low_res_range.start);
- auto set_with_only_high_and_low_res = CreateTilingSet(&client);
+ scoped_ptr<PictureLayerTilingSet> set_with_only_high_and_low_res =
+ CreateTilingSet(&client);
high_res_tiling = set_with_only_high_and_low_res->AddTiling(1.0, pile);
high_res_tiling->set_resolution(HIGH_RESOLUTION);
low_res_tiling = set_with_only_high_and_low_res->AddTiling(0.5, pile);
@@ -168,7 +170,8 @@ TEST(PictureLayerTilingSetTest, TilingRange) {
PictureLayerTilingSet::LOWER_THAN_LOW_RES);
EXPECT_EQ(0u, lower_than_low_res_range.end - lower_than_low_res_range.start);
- auto set_with_only_high_res = CreateTilingSet(&client);
+ scoped_ptr<PictureLayerTilingSet> set_with_only_high_res =
+ CreateTilingSet(&client);
high_res_tiling = set_with_only_high_res->AddTiling(1.0, pile);
high_res_tiling->set_resolution(HIGH_RESOLUTION);
@@ -298,9 +301,9 @@ TEST_F(PictureLayerTilingSetTestWithResources, ManyTilings_NotEqual) {
TEST(PictureLayerTilingSetTest, TileSizeChange) {
FakePictureLayerTilingClient pending_client;
FakePictureLayerTilingClient active_client;
- auto pending_set =
+ scoped_ptr<PictureLayerTilingSet> pending_set =
PictureLayerTilingSet::Create(&pending_client, 1000, 1.f, 1000);
- auto active_set =
+ scoped_ptr<PictureLayerTilingSet> active_set =
PictureLayerTilingSet::Create(&active_client, 1000, 1.f, 1000);
gfx::Size layer_bounds(100, 100);
@@ -399,9 +402,9 @@ TEST(PictureLayerTilingSetTest, TileSizeChange) {
TEST(PictureLayerTilingSetTest, MaxContentScale) {
FakePictureLayerTilingClient pending_client;
FakePictureLayerTilingClient active_client;
- auto pending_set =
+ scoped_ptr<PictureLayerTilingSet> pending_set =
PictureLayerTilingSet::Create(&pending_client, 1000, 1.f, 1000);
- auto active_set =
+ scoped_ptr<PictureLayerTilingSet> active_set =
PictureLayerTilingSet::Create(&active_client, 1000, 1.f, 1000);
gfx::Size layer_bounds(100, 105);
« no previous file with comments | « cc/debug/rasterize_and_record_benchmark_impl.cc ('k') | cc/resources/picture_layer_tiling_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698