OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/profiles/profile_avatar_icon_util.h" | 5 #include "chrome/browser/profiles/profile_avatar_icon_util.h" |
6 | 6 |
7 #include "grit/generated_resources.h" | |
8 #include "grit/theme_resources.h" | 7 #include "grit/theme_resources.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "ui/base/resource/resource_bundle.h" | 9 #include "ui/base/resource/resource_bundle.h" |
11 #include "ui/gfx/canvas.h" | 10 #include "ui/gfx/canvas.h" |
12 #include "ui/gfx/image/image_skia.h" | 11 #include "ui/gfx/image/image_skia.h" |
13 #include "ui/gfx/image/image_skia_rep.h" | 12 #include "ui/gfx/image/image_skia_rep.h" |
14 #include "ui/gfx/image/image_unittest_util.h" | 13 #include "ui/gfx/image/image_unittest_util.h" |
15 | 14 |
16 namespace { | 15 namespace { |
17 | 16 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 gfx::Image rect_picture(gfx::test::CreateImage()); | 100 gfx::Image rect_picture(gfx::test::CreateImage()); |
102 | 101 |
103 gfx::Size size(width, height); | 102 gfx::Size size(width, height); |
104 gfx::Image result2 = profiles::GetAvatarIconForTitleBar( | 103 gfx::Image result2 = profiles::GetAvatarIconForTitleBar( |
105 rect_picture, true, width, height); | 104 rect_picture, true, width, height); |
106 | 105 |
107 VerifyScaling(result2, size); | 106 VerifyScaling(result2, size); |
108 } | 107 } |
109 | 108 |
110 } // namespace | 109 } // namespace |
OLD | NEW |