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

Unified Diff: ash/wm/mru_window_tracker_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/wm/mru_window_tracker.h ('k') | ash/wm/overview/scoped_overview_animation_settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/mru_window_tracker_unittest.cc
diff --git a/ash/wm/mru_window_tracker_unittest.cc b/ash/wm/mru_window_tracker_unittest.cc
index 4aff5999d25880ecd42c87705edf482df405df91..ddb45263e36b514a1952d1d4c2e32a29cdd129b7 100644
--- a/ash/wm/mru_window_tracker_unittest.cc
+++ b/ash/wm/mru_window_tracker_unittest.cc
@@ -36,9 +36,9 @@ class MruWindowTrackerTest : public test::AshTestBase {
// Basic test that the activation order is tracked.
TEST_F(MruWindowTrackerTest, Basic) {
- scoped_ptr<aura::Window> w1(CreateWindow());
- scoped_ptr<aura::Window> w2(CreateWindow());
- scoped_ptr<aura::Window> w3(CreateWindow());
+ std::unique_ptr<aura::Window> w1(CreateWindow());
+ std::unique_ptr<aura::Window> w2(CreateWindow());
+ std::unique_ptr<aura::Window> w3(CreateWindow());
wm::ActivateWindow(w3.get());
wm::ActivateWindow(w2.get());
wm::ActivateWindow(w1.get());
@@ -53,12 +53,12 @@ TEST_F(MruWindowTrackerTest, Basic) {
// Test that minimized windows are considered least recently used (but kept in
// correct relative order).
TEST_F(MruWindowTrackerTest, MinimizedWindowsAreLru) {
- scoped_ptr<aura::Window> w1(CreateWindow());
- scoped_ptr<aura::Window> w2(CreateWindow());
- scoped_ptr<aura::Window> w3(CreateWindow());
- scoped_ptr<aura::Window> w4(CreateWindow());
- scoped_ptr<aura::Window> w5(CreateWindow());
- scoped_ptr<aura::Window> w6(CreateWindow());
+ std::unique_ptr<aura::Window> w1(CreateWindow());
+ std::unique_ptr<aura::Window> w2(CreateWindow());
+ std::unique_ptr<aura::Window> w3(CreateWindow());
+ std::unique_ptr<aura::Window> w4(CreateWindow());
+ std::unique_ptr<aura::Window> w5(CreateWindow());
+ std::unique_ptr<aura::Window> w6(CreateWindow());
wm::ActivateWindow(w6.get());
wm::ActivateWindow(w5.get());
wm::ActivateWindow(w4.get());
@@ -84,7 +84,7 @@ TEST_F(MruWindowTrackerTest, MinimizedWindowsAreLru) {
// Tests that windows being dragged are only in the WindowList once.
TEST_F(MruWindowTrackerTest, DraggedWindowsInListOnlyOnce) {
- scoped_ptr<aura::Window> w1(CreateWindow());
+ std::unique_ptr<aura::Window> w1(CreateWindow());
wm::ActivateWindow(w1.get());
// Start dragging the window.
« no previous file with comments | « ash/wm/mru_window_tracker.h ('k') | ash/wm/overview/scoped_overview_animation_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698