| 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 <stddef.h> |
| 5 | 6 |
| 6 #include <vector> | 7 #include <vector> |
| 7 | 8 |
| 8 #include "ash/desktop_background/desktop_background_controller.h" | 9 #include "ash/desktop_background/desktop_background_controller.h" |
| 9 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| 10 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 11 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
| 13 #include "base/macros.h" |
| 12 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
| 13 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 14 #include "chrome/browser/chromeos/customization/customization_document.h" | 16 #include "chrome/browser/chromeos/customization/customization_document.h" |
| 15 #include "chrome/browser/chromeos/customization/customization_wallpaper_download
er.h" | 17 #include "chrome/browser/chromeos/customization/customization_wallpaper_download
er.h" |
| 16 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" | 18 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" |
| 17 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_u
tils.h" | 19 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_u
tils.h" |
| 18 #include "chrome/test/base/in_process_browser_test.h" | 20 #include "chrome/test/base/in_process_browser_test.h" |
| 19 #include "chrome/test/base/testing_browser_process.h" | 21 #include "chrome/test/base/testing_browser_process.h" |
| 20 #include "chromeos/chromeos_switches.h" | 22 #include "chromeos/chromeos_switches.h" |
| 21 #include "net/http/http_response_headers.h" | 23 #include "net/http/http_response_headers.h" |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 | 312 |
| 311 observer.WaitForWallpaperAnimationFinished(); | 313 observer.WaitForWallpaperAnimationFinished(); |
| 312 EXPECT_TRUE(wallpaper_manager_test_utils::ImageIsNearColor( | 314 EXPECT_TRUE(wallpaper_manager_test_utils::ImageIsNearColor( |
| 313 controller_->GetWallpaper(), | 315 controller_->GetWallpaper(), |
| 314 wallpaper_manager_test_utils::kCustomWallpaperColor)); | 316 wallpaper_manager_test_utils::kCustomWallpaperColor)); |
| 315 | 317 |
| 316 EXPECT_EQ(2U, url_factory.num_attempts()); | 318 EXPECT_EQ(2U, url_factory.num_attempts()); |
| 317 } | 319 } |
| 318 | 320 |
| 319 } // namespace chromeos | 321 } // namespace chromeos |
| OLD | NEW |