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

Side by Side Diff: chrome/browser/app_controller_mac_unittest.mm

Issue 7616019: Reorganize chrome/test, part #9 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | « no previous file | chrome/browser/autocomplete/autocomplete_edit_unittest.cc » ('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 "base/memory/scoped_nsobject.h" 7 #include "base/memory/scoped_nsobject.h"
8 #include "chrome/app/chrome_command_ids.h" 8 #include "chrome/app/chrome_command_ids.h"
9 #import "chrome/browser/app_controller_mac.h" 9 #import "chrome/browser/app_controller_mac.h"
10 #include "chrome/test/testing_browser_process.h" 10 #include "chrome/test/base/testing_browser_process.h"
11 #include "testing/platform_test.h" 11 #include "testing/platform_test.h"
12 12
13 class AppControllerTest : public PlatformTest { 13 class AppControllerTest : public PlatformTest {
14 private: 14 private:
15 ScopedTestingBrowserProcess browser_process_; 15 ScopedTestingBrowserProcess browser_process_;
16 }; 16 };
17 17
18 TEST_F(AppControllerTest, DockMenu) { 18 TEST_F(AppControllerTest, DockMenu) {
19 scoped_nsobject<AppController> ac([[AppController alloc] init]); 19 scoped_nsobject<AppController> ac([[AppController alloc] init]);
20 NSMenu* menu = [ac applicationDockMenu:NSApp]; 20 NSMenu* menu = [ac applicationDockMenu:NSApp];
21 NSMenuItem* item; 21 NSMenuItem* item;
22 22
23 EXPECT_TRUE(menu); 23 EXPECT_TRUE(menu);
24 EXPECT_NE(-1, [menu indexOfItemWithTag:IDC_NEW_WINDOW]); 24 EXPECT_NE(-1, [menu indexOfItemWithTag:IDC_NEW_WINDOW]);
25 EXPECT_NE(-1, [menu indexOfItemWithTag:IDC_NEW_INCOGNITO_WINDOW]); 25 EXPECT_NE(-1, [menu indexOfItemWithTag:IDC_NEW_INCOGNITO_WINDOW]);
26 for (item in [menu itemArray]) { 26 for (item in [menu itemArray]) {
27 EXPECT_EQ(ac.get(), [item target]); 27 EXPECT_EQ(ac.get(), [item target]);
28 EXPECT_EQ(@selector(commandFromDock:), [item action]); 28 EXPECT_EQ(@selector(commandFromDock:), [item action]);
29 } 29 }
30 } 30 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698