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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ptr_util.h" |
11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
12 #include "services/ui/common/util.h" | 13 #include "services/ui/common/util.h" |
13 #include "services/ui/ws/window_server_test_base.h" | 14 #include "services/ui/ws/window_server_test_base.h" |
14 #include "ui/aura/client/transient_window_client.h" | 15 #include "ui/aura/client/transient_window_client.h" |
15 #include "ui/aura/env.h" | 16 #include "ui/aura/env.h" |
16 #include "ui/aura/mus/window_port_mus.h" | 17 #include "ui/aura/mus/window_port_mus.h" |
17 #include "ui/aura/mus/window_tree_client.h" | 18 #include "ui/aura/mus/window_tree_client.h" |
18 #include "ui/aura/mus/window_tree_client_delegate.h" | 19 #include "ui/aura/mus/window_tree_client_delegate.h" |
19 #include "ui/aura/mus/window_tree_host_mus.h" | 20 #include "ui/aura/mus/window_tree_host_mus.h" |
20 #include "ui/aura/test/mus/window_tree_client_private.h" | 21 #include "ui/aura/test/mus/window_tree_client_private.h" |
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 ASSERT_EQ(1u, top_level_in_wm->children().size()); | 757 ASSERT_EQ(1u, top_level_in_wm->children().size()); |
757 aura::Window* second_client_child_in_wm = top_level_in_wm->children()[0]; | 758 aura::Window* second_client_child_in_wm = top_level_in_wm->children()[0]; |
758 ASSERT_EQ(1u, second_client_child_in_wm->children().size()); | 759 ASSERT_EQ(1u, second_client_child_in_wm->children().size()); |
759 aura::Window* transient_in_wm = second_client_child_in_wm->children()[0]; | 760 aura::Window* transient_in_wm = second_client_child_in_wm->children()[0]; |
760 ASSERT_EQ(second_client_child_in_wm, | 761 ASSERT_EQ(second_client_child_in_wm, |
761 transient_window_client->GetTransientParent(transient_in_wm)); | 762 transient_window_client->GetTransientParent(transient_in_wm)); |
762 } | 763 } |
763 | 764 |
764 } // namespace ws | 765 } // namespace ws |
765 } // namespace ui | 766 } // namespace ui |
OLD | NEW |