| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "athena/wm/split_view_controller.h" | 5 #include "athena/wm/split_view_controller.h" |
| 6 | 6 |
| 7 #include "athena/common/fill_layout_manager.h" | 7 #include "athena/common/fill_layout_manager.h" |
| 8 #include "athena/test/athena_test_base.h" | 8 #include "athena/test/athena_test_base.h" |
| 9 #include "athena/wm/public/window_list_provider.h" | |
| 10 #include "athena/wm/window_list_provider_impl.h" | 9 #include "athena/wm/window_list_provider_impl.h" |
| 11 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| 12 #include "ui/aura/test/test_window_delegate.h" | 11 #include "ui/aura/test/test_window_delegate.h" |
| 13 #include "ui/aura/window.h" | 12 #include "ui/aura/window.h" |
| 14 | 13 |
| 15 namespace athena { | 14 namespace athena { |
| 16 | 15 |
| 17 typedef test::AthenaTestBase SplitViewControllerTest; | 16 typedef test::AthenaTestBase SplitViewControllerTest; |
| 18 | 17 |
| 19 // Tests that when split mode is activated, the windows on the left and right | 18 // Tests that when split mode is activated, the windows on the left and right |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 EXPECT_EQ(windows[1], *list_provider->GetWindowList().rbegin()); | 63 EXPECT_EQ(windows[1], *list_provider->GetWindowList().rbegin()); |
| 65 | 64 |
| 66 controller.ActivateSplitMode(windows[4], windows[5]); | 65 controller.ActivateSplitMode(windows[4], windows[5]); |
| 67 EXPECT_EQ(windows[4], controller.left_window()); | 66 EXPECT_EQ(windows[4], controller.left_window()); |
| 68 EXPECT_EQ(windows[5], controller.right_window()); | 67 EXPECT_EQ(windows[5], controller.right_window()); |
| 69 EXPECT_EQ(windows[4], *list_provider->GetWindowList().rbegin()); | 68 EXPECT_EQ(windows[4], *list_provider->GetWindowList().rbegin()); |
| 70 EXPECT_EQ(windows[5], *(list_provider->GetWindowList().rbegin() + 1)); | 69 EXPECT_EQ(windows[5], *(list_provider->GetWindowList().rbegin() + 1)); |
| 71 } | 70 } |
| 72 | 71 |
| 73 } // namespace athena | 72 } // namespace athena |
| OLD | NEW |