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

Unified Diff: chrome/common/cocoa_utils_unittest.mm

Issue 172082: Create new event_utils.h file for Cocoa-specific event to WindowOpenDispositi... (Closed) Base URL: svn://chrome-svn/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/cocoa_utils.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/cocoa_utils_unittest.mm
===================================================================
--- chrome/common/cocoa_utils_unittest.mm (revision 23676)
+++ chrome/common/cocoa_utils_unittest.mm (working copy)
@@ -1,23 +0,0 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#import "chrome/common/cocoa_utils.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-TEST(CocoaUtilsTest, DispositionFromEventFlagsTest) {
- ASSERT_EQ(NEW_FOREGROUND_TAB,
- event_utils::DispositionFromEventFlags(NSCommandKeyMask));
- ASSERT_EQ(NEW_BACKGROUND_TAB,
- event_utils::DispositionFromEventFlags(NSCommandKeyMask |
- NSShiftKeyMask));
- ASSERT_EQ(NEW_WINDOW,
- event_utils::DispositionFromEventFlags(NSShiftKeyMask));
- // The SAVE_TO_DISK disposition is not currently supported, so we use
- // CURRENT_TAB instead.
- ASSERT_EQ(CURRENT_TAB,
- event_utils::DispositionFromEventFlags(NSAlternateKeyMask));
- ASSERT_EQ(CURRENT_TAB, event_utils::DispositionFromEventFlags(0));
- ASSERT_EQ(CURRENT_TAB,
- event_utils::DispositionFromEventFlags(NSControlKeyMask));
-}
« 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