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

Side by Side Diff: skia/ext/image_operations_unittest.cc

Issue 1540963004: Switch to standard integer types in skia/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed some Created 5 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
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 #include <stddef.h>
6 #include <stdint.h>
7
5 #include <algorithm> 8 #include <algorithm>
6 #include <cmath> 9 #include <cmath>
7 #include <iomanip> 10 #include <iomanip>
8 #include <vector> 11 #include <vector>
9 12
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
12 #include "base/files/file_util.h" 14 #include "base/files/file_util.h"
15 #include "base/macros.h"
13 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
14 #include "skia/ext/image_operations.h" 17 #include "skia/ext/image_operations.h"
15 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
16 #include "third_party/skia/include/core/SkBitmap.h" 19 #include "third_party/skia/include/core/SkBitmap.h"
17 #include "third_party/skia/include/core/SkRect.h" 20 #include "third_party/skia/include/core/SkRect.h"
18 #include "ui/gfx/codec/png_codec.h" 21 #include "ui/gfx/codec/png_codec.h"
19 #include "ui/gfx/geometry/size.h" 22 #include "ui/gfx/geometry/size.h"
20 23
21 namespace { 24 namespace {
22 25
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 EXPECT_LE(fabs(SkColorGetA(dst_color) - a), 1.5f); 582 EXPECT_LE(fabs(SkColorGetA(dst_color) - a), 1.5f);
580 EXPECT_LE(fabs(SkColorGetR(dst_color) - r), 1.5f); 583 EXPECT_LE(fabs(SkColorGetR(dst_color) - r), 1.5f);
581 EXPECT_LE(fabs(SkColorGetG(dst_color) - g), 1.5f); 584 EXPECT_LE(fabs(SkColorGetG(dst_color) - g), 1.5f);
582 EXPECT_LE(fabs(SkColorGetB(dst_color) - b), 1.5f); 585 EXPECT_LE(fabs(SkColorGetB(dst_color) - b), 1.5f);
583 if (HasFailure()) { 586 if (HasFailure()) {
584 return; 587 return;
585 } 588 }
586 } 589 }
587 } 590 }
588 } 591 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698