OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/mus/ws/focus_controller.h" | 5 #include "components/mus/ws/focus_controller.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
7 #include "components/mus/ws/focus_controller_delegate.h" | 11 #include "components/mus/ws/focus_controller_delegate.h" |
8 #include "components/mus/ws/focus_controller_observer.h" | 12 #include "components/mus/ws/focus_controller_observer.h" |
9 #include "components/mus/ws/server_window.h" | 13 #include "components/mus/ws/server_window.h" |
10 #include "components/mus/ws/test_server_window_delegate.h" | 14 #include "components/mus/ws/test_server_window_delegate.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
12 | 16 |
13 namespace mus { | 17 namespace mus { |
14 | 18 |
15 namespace ws { | 19 namespace ws { |
16 namespace { | 20 namespace { |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 // Once |child_second| is made visible, activation should go from | 227 // Once |child_second| is made visible, activation should go from |
224 // |child_first| to |child_second|. | 228 // |child_first| to |child_second|. |
225 child_second.SetVisible(true); | 229 child_second.SetVisible(true); |
226 focus_controller.ActivateNextWindow(); | 230 focus_controller.ActivateNextWindow(); |
227 EXPECT_EQ(&child_first, focus_observer.old_active_window()); | 231 EXPECT_EQ(&child_first, focus_observer.old_active_window()); |
228 EXPECT_EQ(&child_second, focus_observer.new_active_window()); | 232 EXPECT_EQ(&child_second, focus_observer.new_active_window()); |
229 } | 233 } |
230 | 234 |
231 } // namespace ws | 235 } // namespace ws |
232 } // namespace mus | 236 } // namespace mus |
OLD | NEW |