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

Side by Side Diff: chrome/browser/ui/cocoa/tab_view_picker_table_unittest.mm

Issue 10831025: mac: Remove now-unneeded includes of cocoa_protocols.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months 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) 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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #import "chrome/browser/ui/cocoa/tab_view_picker_table.h" 7 #import "chrome/browser/ui/cocoa/tab_view_picker_table.h"
8 8
9 #import "base/mac/cocoa_protocols.h"
10 #include "base/memory/scoped_nsobject.h" 9 #include "base/memory/scoped_nsobject.h"
11 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 10 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
12 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
13 #import "testing/gtest_mac.h" 12 #import "testing/gtest_mac.h"
14 #include "testing/platform_test.h" 13 #include "testing/platform_test.h"
15 14
16 @interface TabViewPickerTableTestPing : NSObject <NSTabViewDelegate> { 15 @interface TabViewPickerTableTestPing : NSObject <NSTabViewDelegate> {
17 @public 16 @public
18 BOOL didSelectItemCalled_; 17 BOOL didSelectItemCalled_;
19 } 18 }
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 [tabView_ selectTabViewItemAtIndex:1]; 128 [tabView_ selectTabViewItemAtIndex:1];
130 EXPECT_EQ(2, [view_ selectedRow]); 129 EXPECT_EQ(2, [view_ selectedRow]);
131 130
132 [view_ selectRowIndexes:[NSIndexSet indexSetWithIndex:1] 131 [view_ selectRowIndexes:[NSIndexSet indexSetWithIndex:1]
133 byExtendingSelection:NO]; 132 byExtendingSelection:NO];
134 EXPECT_EQ(1, [view_ selectedRow]); // sanity 133 EXPECT_EQ(1, [view_ selectedRow]); // sanity
135 EXPECT_EQ(0, [tabView_ indexOfTabViewItem:[tabView_ selectedTabViewItem]]); 134 EXPECT_EQ(0, [tabView_ indexOfTabViewItem:[tabView_ selectedTabViewItem]]);
136 } 135 }
137 136
138 } // namespace 137 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698