summaryrefslogtreecommitdiffstats
path: root/chrome/browser/app_controller_mac_unittest.mm
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-11 22:40:02 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-11 22:40:02 +0000
commitd9d101d23238d9734b5e536b8f54f62e717a70c6 (patch)
treeed1969a8785c2b9f297adcd594839914db5e7b2c /chrome/browser/app_controller_mac_unittest.mm
parentf5cde2b583d923436f728660e18e181f83cfa602 (diff)
downloadchromium_src-d9d101d23238d9734b5e536b8f54f62e717a70c6.zip
chromium_src-d9d101d23238d9734b5e536b8f54f62e717a70c6.tar.gz
chromium_src-d9d101d23238d9734b5e536b8f54f62e717a70c6.tar.bz2
Revert 26016 - valgrind leak -
Add "New Window" and "New Incognito Window" items to the Dock Menu. Add a unit test module for AppController with a simple DockMenu test. BUG=none TEST=none Review URL: http://codereview.chromium.org/199031 TBR=sgk@google.com Review URL: http://codereview.chromium.org/196101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26039 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/app_controller_mac_unittest.mm')
-rw-r--r--chrome/browser/app_controller_mac_unittest.mm26
1 files changed, 0 insertions, 26 deletions
diff --git a/chrome/browser/app_controller_mac_unittest.mm b/chrome/browser/app_controller_mac_unittest.mm
deleted file mode 100644
index 49067a0..0000000
--- a/chrome/browser/app_controller_mac_unittest.mm
+++ /dev/null
@@ -1,26 +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 <Cocoa/Cocoa.h>
-
-#include "chrome/app/chrome_dll_resource.h"
-#import "chrome/browser/app_controller_mac.h"
-#include "testing/platform_test.h"
-
-class AppControllerTest : public PlatformTest {
-};
-
-TEST_F(AppControllerTest, DockMenu) {
- AppController* ac = [[AppController alloc] init];
- NSMenu* menu = [ac applicationDockMenu:NSApp];
- NSMenuItem* item;
-
- EXPECT_TRUE(menu);
- EXPECT_NE(-1, [menu indexOfItemWithTag:IDC_NEW_WINDOW]);
- EXPECT_NE(-1, [menu indexOfItemWithTag:IDC_NEW_INCOGNITO_WINDOW]);
- for (item in [menu itemArray]) {
- EXPECT_EQ(ac, [item target]);
- EXPECT_EQ(@selector(commandDispatch:), [item action]);
- }
-}