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/shell.h" | 5 #include "ash/shell.h" |
6 #include "ash/test/ash_test_base.h" | 6 #include "ash/test/ash_test_base.h" |
7 #include "ash/test/test_shelf_delegate.h" | 7 #include "ash/test/test_shelf_delegate.h" |
8 #include "ash/wm/mru_window_tracker.h" | 8 #include "ash/wm/mru_window_tracker.h" |
9 #include "ash/wm/window_state.h" | 9 #include "ash/wm/window_state.h" |
10 #include "ash/wm/window_util.h" | 10 #include "ash/wm/window_util.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "ui/aura/test/test_window_delegate.h" | 12 #include "ui/aura/test/test_window_delegate.h" |
13 #include "ui/aura/window.h" | 13 #include "ui/aura/window.h" |
14 | 14 |
15 namespace ash { | 15 namespace ash { |
16 namespace internal { | |
17 | 16 |
18 class MruWindowTrackerTest : public test::AshTestBase { | 17 class MruWindowTrackerTest : public test::AshTestBase { |
19 public: | 18 public: |
20 MruWindowTrackerTest() {} | 19 MruWindowTrackerTest() {} |
21 virtual ~MruWindowTrackerTest() {} | 20 virtual ~MruWindowTrackerTest() {} |
22 | 21 |
23 aura::Window* CreateWindow() { | 22 aura::Window* CreateWindow() { |
24 return CreateTestWindowInShellWithBounds(gfx::Rect(0, 0, 400, 400)); | 23 return CreateTestWindowInShellWithBounds(gfx::Rect(0, 0, 400, 400)); |
25 } | 24 } |
26 | 25 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 MruWindowTracker::WindowList window_list = | 72 MruWindowTracker::WindowList window_list = |
74 mru_window_tracker()->BuildMruWindowList(); | 73 mru_window_tracker()->BuildMruWindowList(); |
75 EXPECT_EQ(w2.get(), window_list[0]); | 74 EXPECT_EQ(w2.get(), window_list[0]); |
76 EXPECT_EQ(w3.get(), window_list[1]); | 75 EXPECT_EQ(w3.get(), window_list[1]); |
77 EXPECT_EQ(w6.get(), window_list[2]); | 76 EXPECT_EQ(w6.get(), window_list[2]); |
78 EXPECT_EQ(w1.get(), window_list[3]); | 77 EXPECT_EQ(w1.get(), window_list[3]); |
79 EXPECT_EQ(w4.get(), window_list[4]); | 78 EXPECT_EQ(w4.get(), window_list[4]); |
80 EXPECT_EQ(w5.get(), window_list[5]); | 79 EXPECT_EQ(w5.get(), window_list[5]); |
81 } | 80 } |
82 | 81 |
83 } // namespace internal | |
84 } // namespace ash | 82 } // namespace ash |
OLD | NEW |