| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Because the unit tests for gfx::Image are spread across multiple | 5 // Because the unit tests for gfx::Image are spread across multiple |
| 6 // implementation files, this header contains the reusable components. | 6 // implementation files, this header contains the reusable components. |
| 7 | 7 |
| 8 #include "ui/gfx/image/image_unittest_util.h" | 8 #include "ui/gfx/image/image_unittest_util.h" |
| 9 | 9 |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| 11 | 11 |
| 12 #include <cmath> | 12 #include <cmath> |
| 13 #include <memory> |
| 13 | 14 |
| 14 #include "base/memory/scoped_ptr.h" | |
| 15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #include "third_party/skia/include/core/SkBitmap.h" | 17 #include "third_party/skia/include/core/SkBitmap.h" |
| 18 #include "ui/gfx/codec/png_codec.h" | 18 #include "ui/gfx/codec/png_codec.h" |
| 19 #include "ui/gfx/image/image_skia.h" | 19 #include "ui/gfx/image/image_skia.h" |
| 20 | 20 |
| 21 #if defined(OS_IOS) | 21 #if defined(OS_IOS) |
| 22 #include "base/mac/foundation_util.h" | 22 #include "base/mac/foundation_util.h" |
| 23 #include "base/mac/scoped_cftyperef.h" | 23 #include "base/mac/scoped_cftyperef.h" |
| 24 #include "skia/ext/skia_utils_ios.h" | 24 #include "skia/ext/skia_utils_ios.h" |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 bool PlatformImagesEqual(PlatformImage image1, PlatformImage image2) { | 296 bool PlatformImagesEqual(PlatformImage image1, PlatformImage image2) { |
| 297 #if defined(OS_MACOSX) | 297 #if defined(OS_MACOSX) |
| 298 return image1 == image2; | 298 return image1 == image2; |
| 299 #else | 299 #else |
| 300 return image1.BackedBySameObjectAs(image2); | 300 return image1.BackedBySameObjectAs(image2); |
| 301 #endif | 301 #endif |
| 302 } | 302 } |
| 303 | 303 |
| 304 } // namespace test | 304 } // namespace test |
| 305 } // namespace gfx | 305 } // namespace gfx |
| OLD | NEW |