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

Side by Side Diff: chrome/browser/ui/cocoa/styled_text_field_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, 4 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 "base/mac/cocoa_protocols.h"
8 #include "base/memory/scoped_nsobject.h" 7 #include "base/memory/scoped_nsobject.h"
9 #import "chrome/browser/ui/cocoa/styled_text_field.h" 8 #import "chrome/browser/ui/cocoa/styled_text_field.h"
10 #import "chrome/browser/ui/cocoa/styled_text_field_cell.h" 9 #import "chrome/browser/ui/cocoa/styled_text_field_cell.h"
11 #import "chrome/browser/ui/cocoa/styled_text_field_test_helper.h" 10 #import "chrome/browser/ui/cocoa/styled_text_field_test_helper.h"
12 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 11 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
13 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
14 13
15 namespace { 14 namespace {
16 15
17 // Width of the field so that we don't have to ask |field_| for it all 16 // Width of the field so that we don't have to ask |field_| for it all
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 EXPECT_TRUE(NSContainsRect(EditorFrame(), baseEditorFrame)); 187 EXPECT_TRUE(NSContainsRect(EditorFrame(), baseEditorFrame));
189 188
190 // Setting the same margin and using -resetFieldEditorFrameIfNeeded should 189 // Setting the same margin and using -resetFieldEditorFrameIfNeeded should
191 // result in the same frame as the standard focus machinery. 190 // result in the same frame as the standard focus machinery.
192 [cell_ setRightMargin:kRightMargin]; 191 [cell_ setRightMargin:kRightMargin];
193 [field_ resetFieldEditorFrameIfNeeded]; 192 [field_ resetFieldEditorFrameIfNeeded];
194 EXPECT_TRUE(NSEqualRects(baseEditorFrame, EditorFrame())); 193 EXPECT_TRUE(NSEqualRects(baseEditorFrame, EditorFrame()));
195 } 194 }
196 195
197 } // namespace 196 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698