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

Side by Side Diff: ui/gfx/image/image_unittest_util.cc

Issue 817153002: Switch users of foundation_util.h to include it directly and clean up uses of mac_util.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
« no previous file with comments | « ui/gfx/image/image_unittest.cc ('k') | ui/gl/gl_surface_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <cmath> 10 #include <cmath>
11 11
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "third_party/skia/include/core/SkBitmap.h" 14 #include "third_party/skia/include/core/SkBitmap.h"
15 #include "ui/gfx/codec/png_codec.h" 15 #include "ui/gfx/codec/png_codec.h"
16 #include "ui/gfx/image/image_skia.h" 16 #include "ui/gfx/image/image_skia.h"
17 17
18 #if defined(OS_IOS) 18 #if defined(OS_IOS)
19 #include "base/mac/foundation_util.h" 19 #include "base/mac/foundation_util.h"
20 #include "base/mac/scoped_cftyperef.h" 20 #include "base/mac/scoped_cftyperef.h"
21 #include "skia/ext/skia_utils_ios.h" 21 #include "skia/ext/skia_utils_ios.h"
22 #elif defined(OS_MACOSX) 22 #elif defined(OS_MACOSX)
23 #include "base/mac/mac_util.h" 23 #include "base/mac/foundation_util.h"
24 #include "skia/ext/skia_utils_mac.h" 24 #include "skia/ext/skia_utils_mac.h"
25 #endif 25 #endif
26 26
27 namespace gfx { 27 namespace gfx {
28 namespace test { 28 namespace test {
29 29
30 namespace { 30 namespace {
31 31
32 bool ColorComponentsClose(SkColor component1, SkColor component2) { 32 bool ColorComponentsClose(SkColor component1, SkColor component2) {
33 int c1 = static_cast<int>(component1); 33 int c1 = static_cast<int>(component1);
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 bool PlatformImagesEqual(PlatformImage image1, PlatformImage image2) { 254 bool PlatformImagesEqual(PlatformImage image1, PlatformImage image2) {
255 #if defined(OS_MACOSX) 255 #if defined(OS_MACOSX)
256 return image1 == image2; 256 return image1 == image2;
257 #else 257 #else
258 return image1.BackedBySameObjectAs(image2); 258 return image1.BackedBySameObjectAs(image2);
259 #endif 259 #endif
260 } 260 }
261 261
262 } // namespace test 262 } // namespace test
263 } // namespace gfx 263 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/image/image_unittest.cc ('k') | ui/gl/gl_surface_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698