Index: chrome/browser/ui/views/tabs/tab_unittest.cc |
diff --git a/chrome/browser/ui/views/tabs/tab_unittest.cc b/chrome/browser/ui/views/tabs/tab_unittest.cc |
index 9d3228621eb6e0254584b122b715c53ad630373f..23d564d07c08569f8d79f152fce868cedcd93685 100644 |
--- a/chrome/browser/ui/views/tabs/tab_unittest.cc |
+++ b/chrome/browser/ui/views/tabs/tab_unittest.cc |
@@ -9,7 +9,6 @@ |
#include "testing/gtest/include/gtest/gtest.h" |
#include "ui/base/models/list_selection_model.h" |
#include "ui/views/controls/button/image_button.h" |
-#include "ui/views/controls/label.h" |
#include "ui/views/test/views_test_base.h" |
#include "ui/views/widget/widget.h" |
@@ -151,18 +150,16 @@ |
const gfx::Rect contents_bounds = tab.GetContentsBounds(); |
if (tab.ShouldShowIcon()) { |
EXPECT_LE(contents_bounds.x(), tab.favicon_bounds_.x()); |
- if (tab.title_->width() > 0) |
- EXPECT_LE(tab.favicon_bounds_.right(), tab.title_->x()); |
+ if (tab.title_bounds_.width() > 0) |
+ EXPECT_LE(tab.favicon_bounds_.right(), tab.title_bounds_.x()); |
EXPECT_LE(contents_bounds.y(), tab.favicon_bounds_.y()); |
EXPECT_LE(tab.favicon_bounds_.bottom(), contents_bounds.bottom()); |
} |
if (tab.ShouldShowIcon() && tab.ShouldShowMediaIndicator()) |
EXPECT_LE(tab.favicon_bounds_.right(), tab.media_indicator_bounds_.x()); |
if (tab.ShouldShowMediaIndicator()) { |
- if (tab.title_->width() > 0) { |
- EXPECT_LE(tab.title_->bounds().right(), |
- tab.media_indicator_bounds_.x()); |
- } |
+ if (tab.title_bounds_.width() > 0) |
+ EXPECT_LE(tab.title_bounds_.right(), tab.media_indicator_bounds_.x()); |
EXPECT_LE(tab.media_indicator_bounds_.right(), contents_bounds.right()); |
EXPECT_LE(contents_bounds.y(), tab.media_indicator_bounds_.y()); |
EXPECT_LE(tab.media_indicator_bounds_.bottom(), contents_bounds.bottom()); |
@@ -177,8 +174,8 @@ |
if (tab.ShouldShowCloseBox()) { |
// Note: The title bounds can overlap the left-insets of the close box, |
// but should otherwise be to the left of the close button. |
- if (tab.title_->width() > 0) { |
- EXPECT_LE(tab.title_->bounds().right(), |
+ if (tab.title_bounds_.width() > 0) { |
+ EXPECT_LE(tab.title_bounds_.right(), |
tab.close_button_->bounds().x() + |
tab.close_button_->GetInsets().left()); |
} |