| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 #include "ui/base/events.h" | 8 #include "ui/base/events/event_constants.h" |
| 9 #include "ui/base/test/cocoa_test_event_utils.h" | 9 #include "ui/base/test/cocoa_test_event_utils.h" |
| 10 #import "ui/base/test/ui_cocoa_test_helper.h" | 10 #import "ui/base/test/ui_cocoa_test_helper.h" |
| 11 #include "ui/gfx/point.h" | 11 #include "ui/gfx/point.h" |
| 12 | 12 |
| 13 using namespace cocoa_test_event_utils; | 13 using namespace cocoa_test_event_utils; |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 class EventsMacTest : public ui::CocoaTest { | 17 class EventsMacTest : public ui::CocoaTest { |
| 18 public: | 18 public: |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 native_event = MouseEventWithType(NSOtherMouseDragged, 0); | 289 native_event = MouseEventWithType(NSOtherMouseDragged, 0); |
| 290 EXPECT_TRUE(ui::IsMouseEvent(native_event)); | 290 EXPECT_TRUE(ui::IsMouseEvent(native_event)); |
| 291 } | 291 } |
| 292 | 292 |
| 293 TEST_F(EventsMacTest, CreateNoopEvent) { | 293 TEST_F(EventsMacTest, CreateNoopEvent) { |
| 294 NSEvent* native_event = ui::CreateNoopEvent(); | 294 NSEvent* native_event = ui::CreateNoopEvent(); |
| 295 EXPECT_TRUE(native_event != nil); | 295 EXPECT_TRUE(native_event != nil); |
| 296 } | 296 } |
| 297 | 297 |
| 298 } // namespace | 298 } // namespace |
| OLD | NEW |