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 <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "third_party/skia/include/core/SkBitmap.h" | 15 #include "third_party/skia/include/core/SkBitmap.h" |
16 #include "ui/gfx/image/image_skia.h" | 16 #include "ui/gfx/image/image_skia.h" |
17 #include "ui/gfx/image/image_skia_rep.h" | 17 #include "ui/gfx/image/image_skia_rep.h" |
18 | 18 |
19 namespace chromeos { | 19 namespace chromeos { |
20 namespace test { | 20 namespace test { |
21 | 21 |
22 const char kUserAvatarImage1RelativePath[] = "chromeos/avatar1.jpg"; | 22 const char kUserAvatarImage1RelativePath[] = "chromeos/avatar1.jpg"; |
23 const char kUserAvatarImage2RelativePath[] = "chromeos/avatar2.jpg"; | 23 const char kUserAvatarImage2RelativePath[] = "chromeos/avatar2.jpg"; |
24 | 24 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 new gfx::ImageSkia(gfx::ImageSkiaRep(decoded_image, 1.0f))); | 67 new gfx::ImageSkia(gfx::ImageSkiaRep(decoded_image, 1.0f))); |
68 run_loop_.Quit(); | 68 run_loop_.Quit(); |
69 } | 69 } |
70 | 70 |
71 void ImageLoader::OnDecodeImageFailed() { | 71 void ImageLoader::OnDecodeImageFailed() { |
72 run_loop_.Quit(); | 72 run_loop_.Quit(); |
73 } | 73 } |
74 | 74 |
75 } // namespace test | 75 } // namespace test |
76 } // namespace chromeos | 76 } // namespace chromeos |
OLD | NEW |