| OLD | NEW | 
|---|
| 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  Loading... | 
| 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 } | 
| OLD | NEW | 
|---|