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 #include "components/favicon_base/select_favicon_frames.h" | 5 #include "components/favicon_base/select_favicon_frames.h" |
6 | 6 |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 #include "third_party/skia/include/core/SkBitmap.h" | 8 #include "third_party/skia/include/core/SkBitmap.h" |
9 #include "third_party/skia/include/core/SkColor.h" | 9 #include "third_party/skia/include/core/SkColor.h" |
10 #include "ui/base/layout.h" | 10 #include "ui/base/layout.h" |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 bitmaps2.push_back(MakeBitmap(SK_ColorGREEN, 15, 15)); | 318 bitmaps2.push_back(MakeBitmap(SK_ColorGREEN, 15, 15)); |
319 vector<gfx::Size> sizes2; | 319 vector<gfx::Size> sizes2; |
320 sizes2.push_back(gfx::Size(15, 15)); | 320 sizes2.push_back(gfx::Size(15, 15)); |
321 float score2; | 321 float score2; |
322 CreateFaviconImageSkia(bitmaps2, sizes2, 16, &score2); | 322 CreateFaviconImageSkia(bitmaps2, sizes2, 16, &score2); |
323 | 323 |
324 EXPECT_GT(score2, score1); | 324 EXPECT_GT(score2, score1); |
325 } | 325 } |
326 | 326 |
327 } // namespace | 327 } // namespace |
OLD | NEW |