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

Side by Side Diff: chrome/common/cocoa_utils_unittest.mm

Issue 173044: This changelist represents the necessary merger of two others:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 4 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 | « chrome/common/cocoa_utils.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #import "chrome/common/cocoa_utils.h"
6 #include "testing/gtest/include/gtest/gtest.h"
7
8 TEST(CocoaUtilsTest, DispositionFromEventFlagsTest) {
9 ASSERT_EQ(NEW_FOREGROUND_TAB,
10 event_utils::DispositionFromEventFlags(NSCommandKeyMask));
11 ASSERT_EQ(NEW_BACKGROUND_TAB,
12 event_utils::DispositionFromEventFlags(NSCommandKeyMask |
13 NSShiftKeyMask));
14 ASSERT_EQ(NEW_WINDOW,
15 event_utils::DispositionFromEventFlags(NSShiftKeyMask));
16 // The SAVE_TO_DISK disposition is not currently supported, so we use
17 // CURRENT_TAB instead.
18 ASSERT_EQ(CURRENT_TAB,
19 event_utils::DispositionFromEventFlags(NSAlternateKeyMask));
20 ASSERT_EQ(CURRENT_TAB, event_utils::DispositionFromEventFlags(0));
21 ASSERT_EQ(CURRENT_TAB,
22 event_utils::DispositionFromEventFlags(NSControlKeyMask));
23 }
OLDNEW
« no previous file with comments | « chrome/common/cocoa_utils.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698