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.h" | 5 #include "chrome/browser/chromeos/login/users/avatar/user_image_manager.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
16 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
17 #include "base/files/file_util.h" | 17 #include "base/files/file_util.h" |
18 #include "base/json/json_writer.h" | 18 #include "base/json/json_writer.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/memory/linked_ptr.h" | |
21 #include "base/memory/ref_counted.h" | 20 #include "base/memory/ref_counted.h" |
22 #include "base/memory/ref_counted_memory.h" | 21 #include "base/memory/ref_counted_memory.h" |
23 #include "base/path_service.h" | 22 #include "base/path_service.h" |
24 #include "base/run_loop.h" | 23 #include "base/run_loop.h" |
25 #include "base/threading/thread_task_runner_handle.h" | 24 #include "base/threading/thread_task_runner_handle.h" |
26 #include "base/time/time.h" | 25 #include "base/time/time.h" |
27 #include "base/values.h" | 26 #include "base/values.h" |
28 #include "chrome/browser/browser_process.h" | 27 #include "chrome/browser/browser_process.h" |
29 #include "chrome/browser/chrome_notification_types.h" | 28 #include "chrome/browser/chrome_notification_types.h" |
30 #include "chrome/browser/chromeos/login/login_manager_test.h" | 29 #include "chrome/browser/chromeos/login/login_manager_test.h" |
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 saved_image = | 824 saved_image = |
826 test::ImageLoader(GetUserImagePath(enterprise_account_id_, "jpg")).Load(); | 825 test::ImageLoader(GetUserImagePath(enterprise_account_id_, "jpg")).Load(); |
827 ASSERT_TRUE(saved_image); | 826 ASSERT_TRUE(saved_image); |
828 | 827 |
829 // Check image dimensions. Images can't be compared since JPEG is lossy. | 828 // Check image dimensions. Images can't be compared since JPEG is lossy. |
830 EXPECT_EQ(policy_image_->width(), saved_image->width()); | 829 EXPECT_EQ(policy_image_->width(), saved_image->width()); |
831 EXPECT_EQ(policy_image_->height(), saved_image->height()); | 830 EXPECT_EQ(policy_image_->height(), saved_image->height()); |
832 } | 831 } |
833 | 832 |
834 } // namespace chromeos | 833 } // namespace chromeos |
OLD | NEW |