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

Side by Side Diff: chrome/browser/ui/cocoa/confirm_quit_panel_controller_unittest.mm

Issue 17627005: mac: Remove unused includes of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: builds Created 7 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/ui/cocoa/confirm_quit_panel_controller.h" 5 #import "chrome/browser/ui/cocoa/confirm_quit_panel_controller.h"
6 6
7 #include "base/mac/scoped_nsobject.h"
8 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 7 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
9 #include "chrome/browser/ui/cocoa/confirm_quit.h" 8 #include "chrome/browser/ui/cocoa/confirm_quit.h"
10 #include "testing/gtest_mac.h" 9 #include "testing/gtest_mac.h"
11 #include "ui/base/accelerators/platform_accelerator_cocoa.h" 10 #include "ui/base/accelerators/platform_accelerator_cocoa.h"
12 11
13 namespace { 12 namespace {
14 13
15 class ConfirmQuitPanelControllerTest : public CocoaTest { 14 class ConfirmQuitPanelControllerTest : public CocoaTest {
16 public: 15 public:
17 NSString* TestString(NSString* str) { 16 NSString* TestString(NSString* str) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 EXPECT_NSEQ(TestString(@"{Ctrl}{Shift}M"), 70 EXPECT_NSEQ(TestString(@"{Ctrl}{Shift}M"),
72 [controller keyCombinationForAccelerator:item6]); 71 [controller keyCombinationForAccelerator:item6]);
73 72
74 ui::PlatformAcceleratorCocoa item7( 73 ui::PlatformAcceleratorCocoa item7(
75 @"e", NSCommandKeyMask | NSAlternateKeyMask); 74 @"e", NSCommandKeyMask | NSAlternateKeyMask);
76 EXPECT_NSEQ(TestString(@"{Cmd}{Opt}E"), 75 EXPECT_NSEQ(TestString(@"{Cmd}{Opt}E"),
77 [controller keyCombinationForAccelerator:item7]); 76 [controller keyCombinationForAccelerator:item7]);
78 } 77 }
79 78
80 } // namespace 79 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698