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

Side by Side Diff: chrome/browser/ui/cocoa/tabs/tab_controller_unittest.mm

Issue 6362007: [Mac] Organize all tab/tab strip files into chrome/browser/ui/cocoa/tabs/.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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) 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 #import "base/scoped_nsobject.h" 7 #import "base/scoped_nsobject.h"
8 #import "chrome/browser/ui/cocoa/tab_controller.h" 8 #import "chrome/browser/ui/cocoa/tabs/tab_controller.h"
9 #import "chrome/browser/ui/cocoa/tab_controller_target.h" 9 #import "chrome/browser/ui/cocoa/tabs/tab_controller_target.h"
10 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" 10 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h"
Avi (use Gerrit) 2011/01/19 19:30:23 Alphabetize.
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 // Implements the target interface for the tab, which gets sent messages when 15 // Implements the target interface for the tab, which gets sent messages when
16 // the tab is clicked on by the user and when its close box is clicked. 16 // the tab is clicked on by the user and when its close box is clicked.
17 @interface TabControllerTestTarget : NSObject<TabControllerTarget> { 17 @interface TabControllerTestTarget : NSObject<TabControllerTarget> {
18 @private 18 @private
19 bool selected_; 19 bool selected_;
20 bool closed_; 20 bool closed_;
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 NSWidth([[controller titleView] frame])); 324 NSWidth([[controller titleView] frame]));
325 EXPECT_EQ(LeftMargin(originalTabFrame, originalTitleFrame), 325 EXPECT_EQ(LeftMargin(originalTabFrame, originalTitleFrame),
326 LeftMargin([[controller view] frame], 326 LeftMargin([[controller view] frame],
327 [[controller titleView] frame])); 327 [[controller titleView] frame]));
328 EXPECT_EQ(RightMargin(originalTabFrame, originalTitleFrame), 328 EXPECT_EQ(RightMargin(originalTabFrame, originalTitleFrame),
329 RightMargin([[controller view] frame], 329 RightMargin([[controller view] frame],
330 [[controller titleView] frame])); 330 [[controller titleView] frame]));
331 } 331 }
332 332
333 } // namespace 333 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698