| OLD | NEW | 
|---|
| 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 <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> | 
| 6 | 6 | 
| 7 #include "base/debug/debugger.h" | 7 #include "base/debug/debugger.h" | 
| 8 #include "chrome/app/chrome_command_ids.h" | 8 #include "chrome/app/chrome_command_ids.h" | 
| 9 #import "chrome/browser/ui/cocoa/chrome_browser_window.h" | 9 #import "chrome/browser/ui/cocoa/chrome_browser_window.h" | 
| 10 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 10 #import "chrome/browser/ui/cocoa/test/cocoa_test_helper.h" | 
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" | 
| 12 #import "testing/gtest_mac.h" | 12 #import "testing/gtest_mac.h" | 
| 13 #include "testing/platform_test.h" | 13 #include "testing/platform_test.h" | 
| 14 | 14 | 
| 15 class ChromeBrowserWindowTest : public CocoaTest { | 15 class ChromeBrowserWindowTest : public CocoaTest { | 
| 16  public: | 16  public: | 
| 17   void SetUp() override { | 17   void SetUp() override { | 
| 18     CocoaTest::SetUp(); | 18     CocoaTest::SetUp(); | 
| 19     // Create a window. | 19     // Create a window. | 
| 20     const NSUInteger mask = NSTitledWindowMask | NSClosableWindowMask | | 20     const NSUInteger mask = NSTitledWindowMask | NSClosableWindowMask | | 
| (...skipping 17 matching lines...) Expand all  Loading... | 
| 38 | 38 | 
| 39   ChromeBrowserWindow* window_; | 39   ChromeBrowserWindow* window_; | 
| 40 }; | 40 }; | 
| 41 | 41 | 
| 42 // Baseline test that the window creates, displays, closes, and | 42 // Baseline test that the window creates, displays, closes, and | 
| 43 // releases. | 43 // releases. | 
| 44 TEST_F(ChromeBrowserWindowTest, ShowAndClose) { | 44 TEST_F(ChromeBrowserWindowTest, ShowAndClose) { | 
| 45   [window_ display]; | 45   [window_ display]; | 
| 46 } | 46 } | 
| 47 | 47 | 
| OLD | NEW | 
|---|