| 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 "base/macros.h" |
| 5 #include "ui/events/test/event_generator.h" | 6 #include "ui/events/test/event_generator.h" |
| 6 #include "ui/events/test/test_event_handler.h" | 7 #include "ui/events/test/test_event_handler.h" |
| 7 #include "ui/views/event_monitor.h" | 8 #include "ui/views/event_monitor.h" |
| 8 #include "ui/views/test/widget_test.h" | 9 #include "ui/views/test/widget_test.h" |
| 9 | 10 |
| 10 namespace views { | 11 namespace views { |
| 11 namespace test { | 12 namespace test { |
| 12 | 13 |
| 13 class EventMonitorTest : public WidgetTest { | 14 class EventMonitorTest : public WidgetTest { |
| 14 public: | 15 public: |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 70 |
| 70 generator_->ClickLeftButton(); | 71 generator_->ClickLeftButton(); |
| 71 EXPECT_EQ(0, handler_.num_mouse_events()); | 72 EXPECT_EQ(0, handler_.num_mouse_events()); |
| 72 | 73 |
| 73 monitor.reset(); | 74 monitor.reset(); |
| 74 widget2->CloseNow(); | 75 widget2->CloseNow(); |
| 75 } | 76 } |
| 76 | 77 |
| 77 } // namespace test | 78 } // namespace test |
| 78 } // namespace views | 79 } // namespace views |
| OLD | NEW |