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

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

Issue 2565813002: Create c/b/ui/cocoa/test and move test files to there (Closed)
Patch Set: Rebase Created 4 years 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
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 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
8 #include "chrome/browser/ui/cocoa/confirm_quit.h" 7 #include "chrome/browser/ui/cocoa/confirm_quit.h"
8 #import "chrome/browser/ui/cocoa/test/cocoa_test_helper.h"
9 #include "testing/gtest_mac.h" 9 #include "testing/gtest_mac.h"
10 #include "ui/base/accelerators/platform_accelerator_cocoa.h" 10 #include "ui/base/accelerators/platform_accelerator_cocoa.h"
11 11
12 namespace { 12 namespace {
13 13
14 class ConfirmQuitPanelControllerTest : public CocoaTest { 14 class ConfirmQuitPanelControllerTest : public CocoaTest {
15 public: 15 public:
16 NSString* TestString(NSString* str) { 16 NSString* TestString(NSString* str) {
17 str = [str stringByReplacingOccurrencesOfString:@"{Cmd}" 17 str = [str stringByReplacingOccurrencesOfString:@"{Cmd}"
18 withString:@"\u2318"]; 18 withString:@"\u2318"];
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 EXPECT_NSEQ(TestString(@"{Ctrl}{Shift}M"), 70 EXPECT_NSEQ(TestString(@"{Ctrl}{Shift}M"),
71 [controller keyCombinationForAccelerator:item6]); 71 [controller keyCombinationForAccelerator:item6]);
72 72
73 ui::PlatformAcceleratorCocoa item7( 73 ui::PlatformAcceleratorCocoa item7(
74 @"e", NSCommandKeyMask | NSAlternateKeyMask); 74 @"e", NSCommandKeyMask | NSAlternateKeyMask);
75 EXPECT_NSEQ(TestString(@"{Cmd}{Opt}E"), 75 EXPECT_NSEQ(TestString(@"{Cmd}{Opt}E"),
76 [controller keyCombinationForAccelerator:item7]); 76 [controller keyCombinationForAccelerator:item7]);
77 } 77 }
78 78
79 } // namespace 79 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698