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

Unified Diff: ash/display/mirror_window_controller_unittest.cc

Issue 1867223004: Convert //ash from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments 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 | « ash/display/mirror_window_controller.cc ('k') | ash/display/mouse_cursor_event_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/mirror_window_controller_unittest.cc
diff --git a/ash/display/mirror_window_controller_unittest.cc b/ash/display/mirror_window_controller_unittest.cc
index f118d24303a72dd693d725a8d932c63fd90340e9..500448d3f7c3288aef4079e0645b6f4f95e6f1d5 100644
--- a/ash/display/mirror_window_controller_unittest.cc
+++ b/ash/display/mirror_window_controller_unittest.cc
@@ -80,11 +80,8 @@ TEST_F(MirrorWindowControllerTest, MAYBE_MirrorCursorBasic) {
display_manager->SetMultiDisplayMode(DisplayManager::MIRRORING);
UpdateDisplay("400x400,400x400");
aura::Window* root = Shell::GetInstance()->GetPrimaryRootWindow();
- scoped_ptr<aura::Window> window(aura::test::CreateTestWindowWithDelegate(
- &test_window_delegate,
- 0,
- gfx::Rect(50, 50, 100, 100),
- root));
+ std::unique_ptr<aura::Window> window(aura::test::CreateTestWindowWithDelegate(
+ &test_window_delegate, 0, gfx::Rect(50, 50, 100, 100), root));
window->Show();
window->SetName("foo");
@@ -130,11 +127,8 @@ TEST_F(MirrorWindowControllerTest, MAYBE_MirrorCursorRotate) {
display_manager->SetMultiDisplayMode(DisplayManager::MIRRORING);
UpdateDisplay("400x400,400x400");
aura::Window* root = Shell::GetInstance()->GetPrimaryRootWindow();
- scoped_ptr<aura::Window> window(aura::test::CreateTestWindowWithDelegate(
- &test_window_delegate,
- 0,
- gfx::Rect(50, 50, 100, 100),
- root));
+ std::unique_ptr<aura::Window> window(aura::test::CreateTestWindowWithDelegate(
+ &test_window_delegate, 0, gfx::Rect(50, 50, 100, 100), root));
window->Show();
window->SetName("foo");
« no previous file with comments | « ash/display/mirror_window_controller.cc ('k') | ash/display/mouse_cursor_event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698