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/screen/public/screen_manager.h" | 7 #include "athena/screen/public/screen_manager.h" |
8 #include "athena/test/athena_test_base.h" | 8 #include "athena/test/base/athena_test_base.h" |
9 #include "athena/wm/public/window_list_provider.h" | 9 #include "athena/wm/public/window_list_provider.h" |
10 #include "athena/wm/test/window_manager_impl_test_api.h" | 10 #include "athena/wm/test/window_manager_impl_test_api.h" |
11 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.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 #include "ui/gfx/display.h" | 14 #include "ui/gfx/display.h" |
15 #include "ui/gfx/screen.h" | 15 #include "ui/gfx/screen.h" |
16 #include "ui/wm/core/window_util.h" | 16 #include "ui/wm/core/window_util.h" |
17 | 17 |
18 namespace athena { | 18 namespace athena { |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 // Entering splitview should now be disabled now that the screen is in a | 196 // Entering splitview should now be disabled now that the screen is in a |
197 // portrait orientation. | 197 // portrait orientation. |
198 EXPECT_FALSE(IsSplitViewAllowed()); | 198 EXPECT_FALSE(IsSplitViewAllowed()); |
199 | 199 |
200 // Rotating back to 0 allows splitview again. | 200 // Rotating back to 0 allows splitview again. |
201 ScreenManager::Get()->SetRotation(gfx::Display::ROTATE_0); | 201 ScreenManager::Get()->SetRotation(gfx::Display::ROTATE_0); |
202 EXPECT_TRUE(IsSplitViewAllowed()); | 202 EXPECT_TRUE(IsSplitViewAllowed()); |
203 } | 203 } |
204 | 204 |
205 } // namespace athena | 205 } // namespace athena |
OLD | NEW |