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

Unified Diff: chrome/browser/cocoa/styled_text_field_cell_unittest.mm

Issue 2876002: Mac/clang: First pass over unit_tests (Closed)
Patch Set: '' Created 10 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/styled_text_field_cell_unittest.mm
diff --git a/chrome/browser/cocoa/styled_text_field_cell_unittest.mm b/chrome/browser/cocoa/styled_text_field_cell_unittest.mm
index c087d28449a0d28e23d63fef7a1c31cf22fc2c5e..8ee6c4659ed43c4425b7ec3e74accc6a340dd95e 100644
--- a/chrome/browser/cocoa/styled_text_field_cell_unittest.mm
+++ b/chrome/browser/cocoa/styled_text_field_cell_unittest.mm
@@ -71,9 +71,6 @@ TEST_F(StyledTextFieldCellTest, DrawingRectForBounds) {
EXPECT_FALSE(NSIsEmptyRect(drawingRect));
EXPECT_TRUE(NSContainsRect(textFrame, NSInsetRect(drawingRect, 1, 1)));
- // Save the starting frame for after clear.
- const NSRect originalDrawingRect = drawingRect;
-
[cell_ setLeftMargin:10];
textFrame = [cell_ textFrameForFrame:bounds];
drawingRect = [cell_ drawingRectForBounds:bounds];

Powered by Google App Engine
This is Rietveld 408576698