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

Unified Diff: ui/gfx/image_unittest.cc

Issue 7055010: Rename internal gfx::Image members to be less confusing with Cocoa types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac Created 9 years, 7 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.cc ('k') | ui/gfx/image_unittest_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image_unittest.cc
diff --git a/ui/gfx/image_unittest.cc b/ui/gfx/image_unittest.cc
index aba1ed60282a7689dce5b0878e48d9a6bc5953ca..b617efd4f2c8fda729b9fbabdb24b32500d938f6 100644
--- a/ui/gfx/image_unittest.cc
+++ b/ui/gfx/image_unittest.cc
@@ -42,7 +42,7 @@ TEST_F(ImageTest, SkiaToSkia) {
EXPECT_FALSE(bitmap->isNull());
EXPECT_EQ(1U, image.RepresentationCount());
- EXPECT_TRUE(image.HasRepresentation(gfx::Image::kSkBitmapRep));
+ EXPECT_TRUE(image.HasRepresentation(gfx::Image::kImageRepSkia));
if (!kUsesSkiaNatively)
EXPECT_FALSE(image.HasRepresentation(gt::GetPlatformRepresentationType()));
}
@@ -58,7 +58,7 @@ TEST_F(ImageTest, SkiaToSkiaRef) {
EXPECT_FALSE(bitmap1->isNull());
EXPECT_EQ(1U, image.RepresentationCount());
- EXPECT_TRUE(image.HasRepresentation(gfx::Image::kSkBitmapRep));
+ EXPECT_TRUE(image.HasRepresentation(gfx::Image::kImageRepSkia));
if (!kUsesSkiaNatively)
EXPECT_FALSE(image.HasRepresentation(gt::GetPlatformRepresentationType()));
}
@@ -67,7 +67,7 @@ TEST_F(ImageTest, SkiaToPlatform) {
gfx::Image image(gt::CreateBitmap(25, 25));
const size_t kRepCount = kUsesSkiaNatively ? 1U : 2U;
- EXPECT_TRUE(image.HasRepresentation(gfx::Image::kSkBitmapRep));
+ EXPECT_TRUE(image.HasRepresentation(gfx::Image::kImageRepSkia));
if (!kUsesSkiaNatively)
EXPECT_FALSE(image.HasRepresentation(gt::GetPlatformRepresentationType()));
@@ -78,7 +78,7 @@ TEST_F(ImageTest, SkiaToPlatform) {
EXPECT_FALSE(bitmap.isNull());
EXPECT_EQ(kRepCount, image.RepresentationCount());
- EXPECT_TRUE(image.HasRepresentation(gfx::Image::kSkBitmapRep));
+ EXPECT_TRUE(image.HasRepresentation(gfx::Image::kImageRepSkia));
EXPECT_TRUE(image.HasRepresentation(gt::GetPlatformRepresentationType()));
}
@@ -88,7 +88,7 @@ TEST_F(ImageTest, PlatformToSkia) {
EXPECT_TRUE(image.HasRepresentation(gt::GetPlatformRepresentationType()));
if (!kUsesSkiaNatively)
- EXPECT_FALSE(image.HasRepresentation(gfx::Image::kSkBitmapRep));
+ EXPECT_FALSE(image.HasRepresentation(gfx::Image::kImageRepSkia));
const SkBitmap* bitmap = static_cast<const SkBitmap*>(image);
EXPECT_TRUE(bitmap);
@@ -98,7 +98,7 @@ TEST_F(ImageTest, PlatformToSkia) {
EXPECT_TRUE(static_cast<gt::PlatformImage>(image));
EXPECT_EQ(kRepCount, image.RepresentationCount());
- EXPECT_TRUE(image.HasRepresentation(gfx::Image::kSkBitmapRep));
+ EXPECT_TRUE(image.HasRepresentation(gfx::Image::kImageRepSkia));
}
TEST_F(ImageTest, PlatformToPlatform) {
@@ -112,7 +112,7 @@ TEST_F(ImageTest, PlatformToPlatform) {
EXPECT_TRUE(image.HasRepresentation(gt::GetPlatformRepresentationType()));
if (!kUsesSkiaNatively)
- EXPECT_FALSE(image.HasRepresentation(gfx::Image::kSkBitmapRep));
+ EXPECT_FALSE(image.HasRepresentation(gfx::Image::kImageRepSkia));
}
TEST_F(ImageTest, CheckSkiaColor) {
« no previous file with comments | « ui/gfx/image.cc ('k') | ui/gfx/image_unittest_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698