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

Side by Side Diff: chrome/browser/cocoa/tab_view_unittest.mm

Issue 500030: Factor tab context menu into a shared model and fix mac and win to use it. Im... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698