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

Unified Diff: ash/display/window_tree_host_manager_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/window_tree_host_manager.cc ('k') | ash/drag_drop/drag_drop_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/window_tree_host_manager_unittest.cc
diff --git a/ash/display/window_tree_host_manager_unittest.cc b/ash/display/window_tree_host_manager_unittest.cc
index faa8f4d3168707adbd8e880aee8a288978758ab1..408b2ac735b88fb3ac52fd93f8ff9dc7185192fa 100644
--- a/ash/display/window_tree_host_manager_unittest.cc
+++ b/ash/display/window_tree_host_manager_unittest.cc
@@ -4,6 +4,8 @@
#include "ash/display/window_tree_host_manager.h"
+#include <memory>
+
#include "ash/ash_switches.h"
#include "ash/display/display_info.h"
#include "ash/display/display_layout_store.h"
@@ -187,7 +189,7 @@ gfx::Display GetSecondaryDisplay() {
void SetSecondaryDisplayLayoutAndOffset(
display::DisplayPlacement::Position position,
int offset) {
- scoped_ptr<display::DisplayLayout> layout(
+ std::unique_ptr<display::DisplayLayout> layout(
test::CreateDisplayLayout(position, offset));
ASSERT_GT(gfx::Screen::GetScreen()->GetNumDisplays(), 1);
Shell::GetInstance()->display_manager()->SetLayoutForCurrentDisplays(
@@ -396,7 +398,7 @@ TEST_F(WindowTreeHostManagerTest, SecondaryDisplayLayout) {
return;
// Creates windows to catch activation change event.
- scoped_ptr<aura::Window> w1(CreateTestWindowInShellWithId(1));
+ std::unique_ptr<aura::Window> w1(CreateTestWindowInShellWithId(1));
w1->Focus();
TestObserver observer;
@@ -558,7 +560,7 @@ TEST_F(WindowTreeHostManagerTest, MirrorToDockedWithFullscreen) {
return;
// Creates windows to catch activation change event.
- scoped_ptr<aura::Window> w1(CreateTestWindowInShellWithId(1));
+ std::unique_ptr<aura::Window> w1(CreateTestWindowInShellWithId(1));
w1->Focus();
// Docked mode.
@@ -608,7 +610,7 @@ TEST_F(WindowTreeHostManagerTest, BoundsUpdated) {
return;
// Creates windows to catch activation change event.
- scoped_ptr<aura::Window> w1(CreateTestWindowInShellWithId(1));
+ std::unique_ptr<aura::Window> w1(CreateTestWindowInShellWithId(1));
w1->Focus();
TestObserver observer;
« no previous file with comments | « ash/display/window_tree_host_manager.cc ('k') | ash/drag_drop/drag_drop_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698