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/chromeos/login/users/avatar/user_image_manager_test_uti
l.h" | 5 #include "chrome/browser/chromeos/login/users/avatar/user_image_manager_test_uti
l.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/message_loop/message_loop_proxy.h" | 11 #include "base/message_loop/message_loop_proxy.h" |
12 #include "third_party/skia/include/core/SkBitmap.h" | 12 #include "third_party/skia/include/core/SkBitmap.h" |
13 #include "ui/gfx/image/image_skia.h" | 13 #include "ui/gfx/image/image_skia.h" |
14 #include "ui/gfx/image/image_skia_rep.h" | 14 #include "ui/gfx/image/image_skia_rep.h" |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 namespace test { | 17 namespace test { |
18 | 18 |
19 const char kUserAvatarImage1RelativePath[] = "chromeos/avatar1.jpg"; | 19 const char kUserAvatarImage1RelativePath[] = "chromeos/avatar1.jpg"; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 new gfx::ImageSkia(gfx::ImageSkiaRep(decoded_image, 1.0f))); | 68 new gfx::ImageSkia(gfx::ImageSkiaRep(decoded_image, 1.0f))); |
69 run_loop_.Quit(); | 69 run_loop_.Quit(); |
70 } | 70 } |
71 | 71 |
72 void ImageLoader::OnDecodeImageFailed(const ImageDecoder* decoder) { | 72 void ImageLoader::OnDecodeImageFailed(const ImageDecoder* decoder) { |
73 run_loop_.Quit(); | 73 run_loop_.Quit(); |
74 } | 74 } |
75 | 75 |
76 } // namespace test | 76 } // namespace test |
77 } // namespace chromeos | 77 } // namespace chromeos |
OLD | NEW |