Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: ui/base/cocoa/events_mac_unittest.mm

Issue 10917075: events: Move some files into ui/base/events/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/base/cocoa/events_mac.mm ('k') | ui/base/event.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/base/cocoa/events_mac.mm ('k') | ui/base/event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698