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 #include <stddef.h> |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
10 #include "ash/wallpaper/wallpaper_controller.h" | 10 #include "ash/wallpaper/wallpaper_controller.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/message_loop/message_loop.h" |
14 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
15 #include "base/time/time.h" | 16 #include "base/time/time.h" |
16 #include "chrome/browser/chromeos/customization/customization_document.h" | 17 #include "chrome/browser/chromeos/customization/customization_document.h" |
17 #include "chrome/browser/chromeos/customization/customization_wallpaper_download
er.h" | 18 #include "chrome/browser/chromeos/customization/customization_wallpaper_download
er.h" |
18 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" | 19 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" |
19 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_u
tils.h" | 20 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_u
tils.h" |
20 #include "chrome/test/base/in_process_browser_test.h" | 21 #include "chrome/test/base/in_process_browser_test.h" |
21 #include "chrome/test/base/testing_browser_process.h" | 22 #include "chrome/test/base/testing_browser_process.h" |
22 #include "chromeos/chromeos_switches.h" | 23 #include "chromeos/chromeos_switches.h" |
23 #include "net/http/http_response_headers.h" | 24 #include "net/http/http_response_headers.h" |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 | 298 |
298 observer.WaitForWallpaperAnimationFinished(); | 299 observer.WaitForWallpaperAnimationFinished(); |
299 EXPECT_TRUE(wallpaper_manager_test_utils::ImageIsNearColor( | 300 EXPECT_TRUE(wallpaper_manager_test_utils::ImageIsNearColor( |
300 ash::Shell::Get()->wallpaper_controller()->GetWallpaper(), | 301 ash::Shell::Get()->wallpaper_controller()->GetWallpaper(), |
301 wallpaper_manager_test_utils::kCustomWallpaperColor)); | 302 wallpaper_manager_test_utils::kCustomWallpaperColor)); |
302 | 303 |
303 EXPECT_EQ(2U, url_factory.num_attempts()); | 304 EXPECT_EQ(2U, url_factory.num_attempts()); |
304 } | 305 } |
305 | 306 |
306 } // namespace chromeos | 307 } // namespace chromeos |
OLD | NEW |