| 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/wallpaper/wallpaper_manager.h" | 5 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "ash/desktop_background/desktop_background_controller.h" | 9 #include "ash/desktop_background/desktop_background_controller.h" |
| 10 #include "ash/desktop_background/desktop_background_controller_observer.h" | 10 #include "ash/desktop_background/desktop_background_controller_observer.h" |
| 11 #include "ash/desktop_background/desktop_background_controller_test_api.h" | 11 #include "ash/desktop_background/desktop_background_controller_test_api.h" |
| 12 #include "ash/display/display_manager.h" | 12 #include "ash/display/display_manager.h" |
| 13 #include "ash/shell.h" | 13 #include "ash/shell.h" |
| 14 #include "ash/test/ash_test_base.h" | 14 #include "ash/test/ash_test_base.h" |
| 15 #include "ash/test/ash_test_helper.h" | 15 #include "ash/test/ash_test_helper.h" |
| 16 #include "ash/test/display_manager_test_api.h" | 16 #include "ash/test/display_manager_test_api.h" |
| 17 #include "ash/test/test_user_wallpaper_delegate.h" | 17 #include "ash/test/test_user_wallpaper_delegate.h" |
| 18 #include "base/command_line.h" | 18 #include "base/command_line.h" |
| 19 #include "base/compiler_specific.h" | 19 #include "base/compiler_specific.h" |
| 20 #include "base/files/file_path.h" | 20 #include "base/files/file_path.h" |
| 21 #include "base/files/file_util.h" | 21 #include "base/files/file_util.h" |
| 22 #include "base/macros.h" | 22 #include "base/macros.h" |
| 23 #include "base/message_loop/message_loop.h" | 23 #include "base/message_loop/message_loop.h" |
| 24 #include "base/path_service.h" | 24 #include "base/path_service.h" |
| 25 #include "base/prefs/scoped_user_pref_update.h" | |
| 26 #include "base/strings/string_number_conversions.h" | 25 #include "base/strings/string_number_conversions.h" |
| 27 #include "base/time/time.h" | 26 #include "base/time/time.h" |
| 28 #include "base/values.h" | 27 #include "base/values.h" |
| 29 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_u
tils.h" | 28 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_u
tils.h" |
| 30 #include "chrome/common/chrome_paths.h" | 29 #include "chrome/common/chrome_paths.h" |
| 31 #include "chrome/test/base/in_process_browser_test.h" | 30 #include "chrome/test/base/in_process_browser_test.h" |
| 32 #include "chrome/test/base/testing_browser_process.h" | 31 #include "chrome/test/base/testing_browser_process.h" |
| 33 #include "chromeos/chromeos_switches.h" | 32 #include "chromeos/chromeos_switches.h" |
| 34 #include "chromeos/login/user_names.h" | 33 #include "chromeos/login/user_names.h" |
| 34 #include "components/prefs/scoped_user_pref_update.h" |
| 35 #include "components/signin/core/account_id/account_id.h" | 35 #include "components/signin/core/account_id/account_id.h" |
| 36 #include "components/user_manager/user.h" | 36 #include "components/user_manager/user.h" |
| 37 #include "components/user_manager/user_manager.h" | 37 #include "components/user_manager/user_manager.h" |
| 38 #include "content/public/test/test_utils.h" | 38 #include "content/public/test/test_utils.h" |
| 39 #include "ui/aura/env.h" | 39 #include "ui/aura/env.h" |
| 40 #include "ui/gfx/geometry/point.h" | 40 #include "ui/gfx/geometry/point.h" |
| 41 #include "ui/gfx/geometry/rect.h" | 41 #include "ui/gfx/geometry/rect.h" |
| 42 #include "ui/gfx/image/image_skia.h" | 42 #include "ui/gfx/image/image_skia.h" |
| 43 | 43 |
| 44 using wallpaper::WallpaperLayout; | 44 using wallpaper::WallpaperLayout; |
| (...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 | 843 |
| 844 WallpaperManager::Get()->SetDefaultWallpaperNow(EmptyAccountId()); | 844 WallpaperManager::Get()->SetDefaultWallpaperNow(EmptyAccountId()); |
| 845 wallpaper_manager_test_utils::WaitAsyncWallpaperLoadFinished(); | 845 wallpaper_manager_test_utils::WaitAsyncWallpaperLoadFinished(); |
| 846 | 846 |
| 847 EXPECT_TRUE(wallpaper_manager_test_utils::ImageIsNearColor( | 847 EXPECT_TRUE(wallpaper_manager_test_utils::ImageIsNearColor( |
| 848 controller_->GetWallpaper(), | 848 controller_->GetWallpaper(), |
| 849 wallpaper_manager_test_utils::kSmallDefaultWallpaperColor)); | 849 wallpaper_manager_test_utils::kSmallDefaultWallpaperColor)); |
| 850 } | 850 } |
| 851 | 851 |
| 852 } // namespace chromeos | 852 } // namespace chromeos |
| OLD | NEW |