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

Unified Diff: ui/gfx/image/image_skia_unittest.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr 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 | « ui/gfx/image/image_skia.cc ('k') | ui/gfx/image/image_skia_util_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image_skia_unittest.cc
diff --git a/ui/gfx/image/image_skia_unittest.cc b/ui/gfx/image/image_skia_unittest.cc
index 3ff867dd75da70a914a3cd1ada11ca01d1702f04..091f6f916ea70643df225cacfe8b352ab006e8d9 100644
--- a/ui/gfx/image/image_skia_unittest.cc
+++ b/ui/gfx/image/image_skia_unittest.cc
@@ -390,7 +390,7 @@ TEST_F(ImageSkiaTest, StaticOnThreadTest) {
EXPECT_TRUE(image.CanModify());
image.DetachStorageFromThread();
- scoped_ptr<ImageSkia> deep_copy(image.DeepCopy());
+ std::unique_ptr<ImageSkia> deep_copy(image.DeepCopy());
EXPECT_FALSE(deep_copy->IsThreadSafe());
test::TestOnThread deepcopy_on_thread(deep_copy.get());
deepcopy_on_thread.StartAndJoin();
@@ -399,7 +399,7 @@ TEST_F(ImageSkiaTest, StaticOnThreadTest) {
EXPECT_FALSE(deep_copy->CanRead());
EXPECT_FALSE(deep_copy->CanModify());
- scoped_ptr<ImageSkia> deep_copy2(image.DeepCopy());
+ std::unique_ptr<ImageSkia> deep_copy2(image.DeepCopy());
EXPECT_EQ(1U, deep_copy2->image_reps().size());
// Access it from current thread so that it can't be
// accessed from another thread.
« no previous file with comments | « ui/gfx/image/image_skia.cc ('k') | ui/gfx/image/image_skia_util_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698