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

Unified Diff: ui/gfx/image/image_skia_unittest.cc

Issue 10783015: Add ability to store hidpi theme images in data pack (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/image/image_skia_operations.cc ('k') | ui/views/widget/default_theme_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image_skia_unittest.cc
diff --git a/ui/gfx/image/image_skia_unittest.cc b/ui/gfx/image/image_skia_unittest.cc
index e58917597f94dbbca14d3c3eb950d4fcd6d1c9f0..118c858bfad011fab820d72cd485bd01ec74cb19 100644
--- a/ui/gfx/image/image_skia_unittest.cc
+++ b/ui/gfx/image/image_skia_unittest.cc
@@ -87,14 +87,13 @@ TEST(ImageSkiaTest, FixedSource) {
EXPECT_EQ(100, result_200p.pixel_width());
EXPECT_EQ(200, result_200p.pixel_height());
EXPECT_EQ(ui::SCALE_FACTOR_100P, result_200p.scale_factor());
- EXPECT_EQ(2U, image_skia.image_reps().size());
+ EXPECT_EQ(1U, image_skia.image_reps().size());
// Get the representation again and make sure it doesn't
// generate new image skia rep.
image_skia.GetRepresentation(ui::SCALE_FACTOR_100P);
- EXPECT_EQ(2U, image_skia.image_reps().size());
image_skia.GetRepresentation(ui::SCALE_FACTOR_200P);
- EXPECT_EQ(2U, image_skia.image_reps().size());
+ EXPECT_EQ(1U, image_skia.image_reps().size());
}
TEST(ImageSkiaTest, DynamicSource) {
« no previous file with comments | « ui/gfx/image/image_skia_operations.cc ('k') | ui/views/widget/default_theme_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698