Chromium Code Reviews| Index: Source/core/frame/ImageBitmapTest.cpp |
| diff --git a/Source/core/frame/ImageBitmapTest.cpp b/Source/core/frame/ImageBitmapTest.cpp |
| index d6981bcbfdbaf4463461790257747b108896022a..d4633c8142f45636ce054da1ef7ab7d69bbb79b5 100644 |
| --- a/Source/core/frame/ImageBitmapTest.cpp |
| +++ b/Source/core/frame/ImageBitmapTest.cpp |
| @@ -54,12 +54,10 @@ class ImageBitmapTest : public ::testing::Test { |
| protected: |
| virtual void SetUp() |
| { |
| - m_bitmap.setConfig(SkBitmap::kARGB_8888_Config, 10, 10); |
| - m_bitmap.allocPixels(); |
| + ASSERT_TRUE(m_bitmap.allocN32Pixels(10, 10)); |
|
reed1
2014/03/17 17:36:51
I presume ASSERT_TRUE executes its argument in deb
|
| m_bitmap.eraseColor(0xFFFFFFFF); |
| - m_bitmap2.setConfig(SkBitmap::kARGB_8888_Config, 5, 5); |
| - m_bitmap2.allocPixels(); |
| + ASSERT_TRUE(m_bitmap2.allocN32Pixels(5, 5)); |
| m_bitmap2.eraseColor(0xAAAAAAAA); |
| // Save the global memory cache to restore it upon teardown. |