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

Side by Side Diff: components/wallpaper/wallpaper_resizer_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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdint.h> 5 #include <stdint.h>
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/memory/scoped_ptr.h"
8 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
9 #include "base/test/sequenced_worker_pool_owner.h" 10 #include "base/test/sequenced_worker_pool_owner.h"
10 #include "components/wallpaper/wallpaper_resizer.h" 11 #include "components/wallpaper/wallpaper_resizer.h"
11 #include "components/wallpaper/wallpaper_resizer_observer.h" 12 #include "components/wallpaper/wallpaper_resizer_observer.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 #include "ui/gfx/image/image_skia_rep.h" 14 #include "ui/gfx/image/image_skia_rep.h"
14 15
15 namespace { 16 namespace {
16 17
17 const int kTestImageWidth = 5; 18 const int kTestImageWidth = 5;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 worker_pool()); 149 worker_pool());
149 EXPECT_EQ(WallpaperResizer::GetImageId(image), resizer.original_image_id()); 150 EXPECT_EQ(WallpaperResizer::GetImageId(image), resizer.original_image_id());
150 resizer.AddObserver(this); 151 resizer.AddObserver(this);
151 resizer.StartResize(); 152 resizer.StartResize();
152 WaitForResize(); 153 WaitForResize();
153 resizer.RemoveObserver(this); 154 resizer.RemoveObserver(this);
154 EXPECT_EQ(WallpaperResizer::GetImageId(image), resizer.original_image_id()); 155 EXPECT_EQ(WallpaperResizer::GetImageId(image), resizer.original_image_id());
155 } 156 }
156 157
157 } // namespace ash 158 } // namespace ash
OLDNEW
« no previous file with comments | « components/user_manager/user_manager_base.h ('k') | content/browser/android/overscroll_controller_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698