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

Side by Side Diff: chrome/browser/ui/cocoa/fullscreen_window_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) 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 #include "base/mac/scoped_nsobject.h" 5 #include "base/mac/scoped_nsobject.h"
6 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h"
7 #include "chrome/browser/ui/cocoa/fullscreen_window.h" 6 #include "chrome/browser/ui/cocoa/fullscreen_window.h"
7 #include "chrome/browser/ui/cocoa/test/cocoa_test_helper.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #import "testing/gtest_mac.h" 9 #import "testing/gtest_mac.h"
10 #include "testing/platform_test.h" 10 #include "testing/platform_test.h"
11 11
12 @interface PerformCloseUIItem : NSObject<NSValidatedUserInterfaceItem> 12 @interface PerformCloseUIItem : NSObject<NSValidatedUserInterfaceItem>
13 @end 13 @end
14 14
15 @implementation PerformCloseUIItem 15 @implementation PerformCloseUIItem
16 - (SEL)action { 16 - (SEL)action {
17 return @selector(performClose:); 17 return @selector(performClose:);
(...skipping 21 matching lines...) Expand all
39 39
40 TEST_F(FullscreenWindowTest, CanPerformClose) { 40 TEST_F(FullscreenWindowTest, CanPerformClose) {
41 base::scoped_nsobject<FullscreenWindow> window; 41 base::scoped_nsobject<FullscreenWindow> window;
42 window.reset([[FullscreenWindow alloc] init]); 42 window.reset([[FullscreenWindow alloc] init]);
43 43
44 base::scoped_nsobject<PerformCloseUIItem> item; 44 base::scoped_nsobject<PerformCloseUIItem> item;
45 item.reset([[PerformCloseUIItem alloc] init]); 45 item.reset([[PerformCloseUIItem alloc] init]);
46 46
47 EXPECT_TRUE([window validateUserInterfaceItem:item.get()]); 47 EXPECT_TRUE([window validateUserInterfaceItem:item.get()]);
48 } 48 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/framed_browser_window_unittest.mm ('k') | chrome/browser/ui/cocoa/gradient_button_cell_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698