OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/aura/root_window.h" | 5 #include "ui/aura/root_window.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "ui/aura/client/event_client.h" | 10 #include "ui/aura/client/event_client.h" |
| 11 #include "ui/aura/client/focus_client.h" |
11 #include "ui/aura/env.h" | 12 #include "ui/aura/env.h" |
12 #include "ui/aura/focus_manager.h" | |
13 #include "ui/aura/test/aura_test_base.h" | 13 #include "ui/aura/test/aura_test_base.h" |
14 #include "ui/aura/test/event_generator.h" | 14 #include "ui/aura/test/event_generator.h" |
15 #include "ui/aura/test/test_cursor_client.h" | 15 #include "ui/aura/test/test_cursor_client.h" |
16 #include "ui/aura/test/test_event_handler.h" | 16 #include "ui/aura/test/test_event_handler.h" |
17 #include "ui/aura/test/test_window_delegate.h" | 17 #include "ui/aura/test/test_window_delegate.h" |
18 #include "ui/aura/test/test_windows.h" | 18 #include "ui/aura/test/test_windows.h" |
19 #include "ui/aura/window_tracker.h" | 19 #include "ui/aura/window_tracker.h" |
20 #include "ui/base/hit_test.h" | 20 #include "ui/base/hit_test.h" |
21 #include "ui/events/event.h" | 21 #include "ui/events/event.h" |
22 #include "ui/events/event_handler.h" | 22 #include "ui/events/event_handler.h" |
(...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1128 // destroyed. This test passes if no crash happens. | 1128 // destroyed. This test passes if no crash happens. |
1129 generator.MoveMouseTo(52, 52); | 1129 generator.MoveMouseTo(52, 52); |
1130 EXPECT_EQ(NULL, root_window()->mouse_moved_handler()); | 1130 EXPECT_EQ(NULL, root_window()->mouse_moved_handler()); |
1131 | 1131 |
1132 // Check events received by window 1. | 1132 // Check events received by window 1. |
1133 EXPECT_EQ("MOUSE_ENTERED MOUSE_MOVED MOUSE_EXITED", | 1133 EXPECT_EQ("MOUSE_ENTERED MOUSE_MOVED MOUSE_EXITED", |
1134 EventTypesToString(w1_filter->events())); | 1134 EventTypesToString(w1_filter->events())); |
1135 } | 1135 } |
1136 | 1136 |
1137 } // namespace aura | 1137 } // namespace aura |
OLD | NEW |