Chromium Code Reviews| Index: ui/gfx/codec/png_codec_unittest.cc |
| diff --git a/ui/gfx/codec/png_codec_unittest.cc b/ui/gfx/codec/png_codec_unittest.cc |
| index faf665d670847e0536356aa51e075322ad6462f0..e5445a38d0cf73830a4fa11578887406b374e2ff 100644 |
| --- a/ui/gfx/codec/png_codec_unittest.cc |
| +++ b/ui/gfx/codec/png_codec_unittest.cc |
| @@ -286,9 +286,8 @@ TEST(PNGCodec, EncodeDecodeRGBA) { |
| // encode |
| std::vector<unsigned char> encoded; |
| - ASSERT_TRUE(PNGCodec::Encode(&original[0], PNGCodec::FORMAT_RGBA, |
| - Size(w, h), w * 4, false, |
| - std::vector<PNGCodec::Comment>(), |
| + ASSERT_TRUE(PNGCodec::Encode(&original[0], PNGCodec::FORMAT_RGBA, Size(w, h), |
|
msarett1
2017/06/23 22:50:32
Why is this file changed?
liyuqian
2017/07/05 15:59:40
I've reverted the change. I think it's because tha
|
| + w * 4, false, std::vector<PNGCodec::Comment>(), |
| &encoded)); |
| // decode, it should have the same size as the original |
| @@ -315,9 +314,8 @@ TEST(PNGCodec, EncodeDecodeBGRA) { |
| // Encode. |
| std::vector<unsigned char> encoded; |
| - ASSERT_TRUE(PNGCodec::Encode(&original[0], PNGCodec::FORMAT_BGRA, |
| - Size(w, h), w * 4, false, |
| - std::vector<PNGCodec::Comment>(), |
| + ASSERT_TRUE(PNGCodec::Encode(&original[0], PNGCodec::FORMAT_BGRA, Size(w, h), |
| + w * 4, false, std::vector<PNGCodec::Comment>(), |
| &encoded)); |
| // Decode, it should have the same size as the original. |