| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/scoped_nsobject.h" | 7 #include "base/scoped_nsobject.h" |
| 8 #import "chrome/browser/cocoa/tab_view.h" | 8 #import "chrome/browser/cocoa/tab_view.h" |
| 9 #import "chrome/browser/cocoa/cocoa_test_helper.h" | 9 #import "chrome/browser/cocoa/cocoa_test_helper.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 [view_ display]; | 34 [view_ display]; |
| 35 [view_ setHoverAlpha:1.0]; | 35 [view_ setHoverAlpha:1.0]; |
| 36 [view_ display]; | 36 [view_ display]; |
| 37 } | 37 } |
| 38 | 38 |
| 39 // Test dragging and mouse tracking. | 39 // Test dragging and mouse tracking. |
| 40 TEST_F(TabViewTest, MouseTracking) { | 40 TEST_F(TabViewTest, MouseTracking) { |
| 41 // TODO(pinkerton): Test dragging out of window | 41 // TODO(pinkerton): Test dragging out of window |
| 42 } | 42 } |
| 43 | 43 |
| 44 // Test it doesn't crash when asked for its menu with no TabController set. |
| 45 TEST_F(TabViewTest, Menu) { |
| 46 EXPECT_FALSE([view_ menu]); |
| 47 } |
| 48 |
| 44 } // namespace | 49 } // namespace |
| OLD | NEW |