OLD | NEW |
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 "ash/wm/mru_window_tracker.h" | 5 #include "ash/wm/mru_window_tracker.h" |
6 | 6 |
7 #include "ash/public/cpp/shell_window_ids.h" | 7 #include "ash/public/cpp/shell_window_ids.h" |
8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
9 #include "ash/test/ash_test.h" | 9 #include "ash/test/ash_test.h" |
10 #include "ash/wm/window_state.h" | 10 #include "ash/wm/window_state.h" |
11 #include "ash/wm_shell.h" | |
12 #include "ash/wm_window.h" | 11 #include "ash/wm_window.h" |
13 #include "ui/base/hit_test.h" | 12 #include "ui/base/hit_test.h" |
14 | 13 |
15 namespace ash { | 14 namespace ash { |
16 | 15 |
17 class MruWindowTrackerTest : public AshTest { | 16 class MruWindowTrackerTest : public AshTest { |
18 public: | 17 public: |
19 MruWindowTrackerTest() {} | 18 MruWindowTrackerTest() {} |
20 ~MruWindowTrackerTest() override {} | 19 ~MruWindowTrackerTest() override {} |
21 | 20 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 w1->GetWindowState()->CreateDragDetails( | 97 w1->GetWindowState()->CreateDragDetails( |
99 gfx::Point(), HTRIGHT, aura::client::WINDOW_MOVE_SOURCE_TOUCH); | 98 gfx::Point(), HTRIGHT, aura::client::WINDOW_MOVE_SOURCE_TOUCH); |
100 | 99 |
101 // The dragged window should only be in the list once. | 100 // The dragged window should only be in the list once. |
102 WmWindow::Windows window_list = | 101 WmWindow::Windows window_list = |
103 mru_window_tracker()->BuildWindowListIgnoreModal(); | 102 mru_window_tracker()->BuildWindowListIgnoreModal(); |
104 EXPECT_EQ(1, std::count(window_list.begin(), window_list.end(), w1)); | 103 EXPECT_EQ(1, std::count(window_list.begin(), window_list.end(), w1)); |
105 } | 104 } |
106 | 105 |
107 } // namespace ash | 106 } // namespace ash |
OLD | NEW |