| Index: ash/focus_cycler_unittest.cc
|
| diff --git a/ash/focus_cycler_unittest.cc b/ash/focus_cycler_unittest.cc
|
| index e0b5ea1610c339c58fcb382cf34afcd84cf8f389..81317ef8087f8d213b3f60fc867ae06dc287ee3d 100644
|
| --- a/ash/focus_cycler_unittest.cc
|
| +++ b/ash/focus_cycler_unittest.cc
|
| @@ -119,15 +119,15 @@ class FocusCyclerTest : public AshTestBase {
|
| }
|
|
|
| private:
|
| - scoped_ptr<FocusCycler> focus_cycler_;
|
| - scoped_ptr<SystemTray> tray_;
|
| + std::unique_ptr<FocusCycler> focus_cycler_;
|
| + std::unique_ptr<SystemTray> tray_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(FocusCyclerTest);
|
| };
|
|
|
| TEST_F(FocusCyclerTest, CycleFocusBrowserOnly) {
|
| // Create a single test window.
|
| - scoped_ptr<Window> window0(CreateTestWindowInShellWithId(0));
|
| + std::unique_ptr<Window> window0(CreateTestWindowInShellWithId(0));
|
| wm::ActivateWindow(window0.get());
|
| EXPECT_TRUE(wm::IsActiveWindow(window0.get()));
|
|
|
| @@ -142,7 +142,7 @@ TEST_F(FocusCyclerTest, CycleFocusForward) {
|
| InstallFocusCycleOnShelf();
|
|
|
| // Create a single test window.
|
| - scoped_ptr<Window> window0(CreateTestWindowInShellWithId(0));
|
| + std::unique_ptr<Window> window0(CreateTestWindowInShellWithId(0));
|
| wm::ActivateWindow(window0.get());
|
| EXPECT_TRUE(wm::IsActiveWindow(window0.get()));
|
|
|
| @@ -165,7 +165,7 @@ TEST_F(FocusCyclerTest, CycleFocusBackward) {
|
| InstallFocusCycleOnShelf();
|
|
|
| // Create a single test window.
|
| - scoped_ptr<Window> window0(CreateTestWindowInShellWithId(0));
|
| + std::unique_ptr<Window> window0(CreateTestWindowInShellWithId(0));
|
| wm::ActivateWindow(window0.get());
|
| EXPECT_TRUE(wm::IsActiveWindow(window0.get()));
|
|
|
| @@ -188,7 +188,7 @@ TEST_F(FocusCyclerTest, CycleFocusForwardBackward) {
|
| InstallFocusCycleOnShelf();
|
|
|
| // Create a single test window.
|
| - scoped_ptr<Window> window0(CreateTestWindowInShellWithId(0));
|
| + std::unique_ptr<Window> window0(CreateTestWindowInShellWithId(0));
|
| wm::ActivateWindow(window0.get());
|
| EXPECT_TRUE(wm::IsActiveWindow(window0.get()));
|
|
|
| @@ -253,8 +253,8 @@ TEST_F(FocusCyclerTest, Shelf_CycleFocusForward) {
|
| shelf_widget()->Hide();
|
|
|
| // Create two test windows.
|
| - scoped_ptr<Window> window0(CreateTestWindowInShellWithId(0));
|
| - scoped_ptr<Window> window1(CreateTestWindowInShellWithId(1));
|
| + std::unique_ptr<Window> window0(CreateTestWindowInShellWithId(0));
|
| + std::unique_ptr<Window> window1(CreateTestWindowInShellWithId(1));
|
| wm::ActivateWindow(window1.get());
|
| wm::ActivateWindow(window0.get());
|
| EXPECT_TRUE(wm::IsActiveWindow(window0.get()));
|
| @@ -278,7 +278,7 @@ TEST_F(FocusCyclerTest, Shelf_CycleFocusBackwardInvisible) {
|
| shelf_widget()->Hide();
|
|
|
| // Create a single test window.
|
| - scoped_ptr<Window> window0(CreateTestWindowInShellWithId(0));
|
| + std::unique_ptr<Window> window0(CreateTestWindowInShellWithId(0));
|
| wm::ActivateWindow(window0.get());
|
| EXPECT_TRUE(wm::IsActiveWindow(window0.get()));
|
|
|
| @@ -296,8 +296,8 @@ TEST_F(FocusCyclerTest, CycleFocusThroughWindowWithPanes) {
|
|
|
| InstallFocusCycleOnShelf();
|
|
|
| - scoped_ptr<PanedWidgetDelegate> test_widget_delegate;
|
| - scoped_ptr<views::Widget> browser_widget(new views::Widget);
|
| + std::unique_ptr<PanedWidgetDelegate> test_widget_delegate;
|
| + std::unique_ptr<views::Widget> browser_widget(new views::Widget);
|
| test_widget_delegate.reset(new PanedWidgetDelegate(browser_widget.get()));
|
| views::Widget::InitParams widget_params(
|
| views::Widget::InitParams::TYPE_WINDOW);
|
| @@ -410,7 +410,7 @@ TEST_F(FocusCyclerTest, RemoveWidgetOnDisplayRemoved) {
|
| UpdateDisplay("800x800");
|
|
|
| // Create a single test window.
|
| - scoped_ptr<Window> window(CreateTestWindowInShellWithId(0));
|
| + std::unique_ptr<Window> window(CreateTestWindowInShellWithId(0));
|
| wm::ActivateWindow(window.get());
|
| EXPECT_TRUE(wm::IsActiveWindow(window.get()));
|
|
|
|
|