Commit a4e1f023 authored by Peter Kasting's avatar Peter Kasting Committed by Commit Bot

Re-enable two disabled tests in ui/gfx/image/.

Bug: 153782
Change-Id: I51220050f7b2a22e8da55bffcd1733092ff4c26d
Reviewed-on: https://chromium-review.googlesource.com/c/1338868Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
Reviewed-by: default avatarJustin Cohen <justincohen@chromium.org>
Reviewed-by: default avatarRobert Sesek <rsesek@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609430}
parent 15d9e1b4
...@@ -249,15 +249,7 @@ TEST_F(ImageTest, MultiResolutionPNGToImageSkia) { ...@@ -249,15 +249,7 @@ TEST_F(ImageTest, MultiResolutionPNGToImageSkia) {
#endif #endif
} }
// TODO(crbug.com/153782): disable this test as it fails on iOS retina devices. TEST_F(ImageTest, MultiResolutionPNGToPlatform) {
#if defined(OS_IOS)
#define MAYBE_MultiResolutionPNGToPlatform \
DISABLED_MultiResolutionPNGToPlatform
#else
#define MAYBE_MultiResolutionPNGToPlatform \
MultiResolutionPNGToPlatform
#endif
TEST_F(ImageTest, MAYBE_MultiResolutionPNGToPlatform) {
const int kSize1x = 25; const int kSize1x = 25;
const int kSize2x = 50; const int kSize2x = 50;
...@@ -307,15 +299,7 @@ TEST_F(ImageTest, PlatformToPNGEncodeAndDecode) { ...@@ -307,15 +299,7 @@ TEST_F(ImageTest, PlatformToPNGEncodeAndDecode) {
// The platform types use the platform provided encoding/decoding of PNGs. Make // The platform types use the platform provided encoding/decoding of PNGs. Make
// sure these work with the Skia Encode/Decode. // sure these work with the Skia Encode/Decode.
// TODO(crbug.com/153782): disable this test as it fails on iOS retina devices. TEST_F(ImageTest, PNGEncodeFromSkiaDecodeToPlatform) {
#if defined(OS_IOS)
#define MAYBE_PNGEncodeFromSkiaDecodeToPlatform \
DISABLED_PNGEncodeFromSkiaDecodeToPlatform
#else
#define MAYBE_PNGEncodeFromSkiaDecodeToPlatform \
PNGEncodeFromSkiaDecodeToPlatform
#endif
TEST_F(ImageTest, MAYBE_PNGEncodeFromSkiaDecodeToPlatform) {
// Force the conversion sequence skia to png to platform_type. // Force the conversion sequence skia to png to platform_type.
gfx::Image from_bitmap = gfx::Image::CreateFrom1xBitmap( gfx::Image from_bitmap = gfx::Image::CreateFrom1xBitmap(
gt::CreateBitmap(25, 25)); gt::CreateBitmap(25, 25));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment