diff options
author | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-28 20:06:47 +0000 |
---|---|---|
committer | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-28 20:06:47 +0000 |
commit | 67ae93c46f0efc8b23ed5b1eee2c8ad1788c4db5 (patch) | |
tree | 821ca656ff07b6fff36726a286501321afaefdb3 /ui/views/controls/button/image_button_unittest.cc | |
parent | 1c798492c0b4df43712220e0995e2065bed9595a (diff) | |
download | chromium_src-67ae93c46f0efc8b23ed5b1eee2c8ad1788c4db5.zip chromium_src-67ae93c46f0efc8b23ed5b1eee2c8ad1788c4db5.tar.gz chromium_src-67ae93c46f0efc8b23ed5b1eee2c8ad1788c4db5.tar.bz2 |
Remove unused ImageButton::SetOverlayImage()
BUG=None
TEST=None
R=jamescook, sadrul
TBR=mukai (For trivial refactor of ui/message_center/views/padded_button.cc)
Review URL: https://codereview.chromium.org/137423008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247489 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/controls/button/image_button_unittest.cc')
-rw-r--r-- | ui/views/controls/button/image_button_unittest.cc | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/ui/views/controls/button/image_button_unittest.cc b/ui/views/controls/button/image_button_unittest.cc index 734ffbd..406d02c 100644 --- a/ui/views/controls/button/image_button_unittest.cc +++ b/ui/views/controls/button/image_button_unittest.cc @@ -60,25 +60,6 @@ TEST_F(ImageButtonTest, Basics) { EXPECT_FALSE(button.GetImageToPaint().isNull()); EXPECT_EQ(10, button.GetImageToPaint().width()); EXPECT_EQ(20, button.GetImageToPaint().height()); - - // Set an overlay image. - gfx::ImageSkia overlay_image = CreateTestImage(12, 22); - button.SetOverlayImage(&overlay_image); - EXPECT_EQ(12, button.overlay_image_.width()); - EXPECT_EQ(22, button.overlay_image_.height()); - - // By convention, preferred size doesn't change, even though pushed image - // is bigger. - EXPECT_EQ("10x20", button.GetPreferredSize().ToString()); - - // We're still painting the normal image. - EXPECT_FALSE(button.GetImageToPaint().isNull()); - EXPECT_EQ(10, button.GetImageToPaint().width()); - EXPECT_EQ(20, button.GetImageToPaint().height()); - - // Reset the overlay image. - button.SetOverlayImage(NULL); - EXPECT_TRUE(button.overlay_image_.isNull()); } TEST_F(ImageButtonTest, SetAndGetImage) { |