Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: athena/wm/split_view_controller_unittest.cc

Issue 468763002: athena: Fix switching windows with title-drag in split-view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « athena/wm/split_view_controller.cc ('k') | athena/wm/title_drag_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « athena/wm/split_view_controller.cc ('k') | athena/wm/title_drag_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698