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

Side by Side Diff: components/favicon_base/select_favicon_frames_unittest.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months 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 | « components/favicon_base/select_favicon_frames.cc ('k') | components/feedback/feedback_common.h » ('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 #include "components/favicon_base/select_favicon_frames.h" 5 #include "components/favicon_base/select_favicon_frames.h"
6 6
7 #include <stddef.h>
8
9 #include "base/macros.h"
10 #include "build/build_config.h"
7 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
8 #include "third_party/skia/include/core/SkBitmap.h" 12 #include "third_party/skia/include/core/SkBitmap.h"
9 #include "third_party/skia/include/core/SkColor.h" 13 #include "third_party/skia/include/core/SkColor.h"
10 #include "ui/base/layout.h" 14 #include "ui/base/layout.h"
11 #include "ui/gfx/image/image_skia.h" 15 #include "ui/gfx/image/image_skia.h"
12 16
13 using std::vector; 17 using std::vector;
14 18
15 namespace { 19 namespace {
16 20
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 bitmaps2.push_back(MakeBitmap(SK_ColorGREEN, 15, 15)); 322 bitmaps2.push_back(MakeBitmap(SK_ColorGREEN, 15, 15));
319 vector<gfx::Size> sizes2; 323 vector<gfx::Size> sizes2;
320 sizes2.push_back(gfx::Size(15, 15)); 324 sizes2.push_back(gfx::Size(15, 15));
321 float score2; 325 float score2;
322 CreateFaviconImageSkia(bitmaps2, sizes2, 16, &score2); 326 CreateFaviconImageSkia(bitmaps2, sizes2, 16, &score2);
323 327
324 EXPECT_GT(score2, score1); 328 EXPECT_GT(score2, score1);
325 } 329 }
326 330
327 } // namespace 331 } // namespace
OLDNEW
« no previous file with comments | « components/favicon_base/select_favicon_frames.cc ('k') | components/feedback/feedback_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698