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_test_u
tils.h" | 5 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_u
tils.h" |
6 | 6 |
7 #include "ash/ash_switches.h" | 7 #include "ash/ash_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" | 15 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" |
16 #include "chromeos/chromeos_switches.h" | 16 #include "chromeos/chromeos_switches.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 #include "ui/gfx/codec/jpeg_codec.h" | 18 #include "ui/gfx/codec/jpeg_codec.h" |
19 #include "ui/gfx/point.h" | 19 #include "ui/gfx/geometry/point.h" |
20 #include "ui/gfx/rect.h" | 20 #include "ui/gfx/rect.h" |
21 | 21 |
22 namespace chromeos { | 22 namespace chromeos { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 class TestWallpaperObserverPendingListEmpty | 26 class TestWallpaperObserverPendingListEmpty |
27 : public WallpaperManager::Observer { | 27 : public WallpaperManager::Observer { |
28 public: | 28 public: |
29 explicit TestWallpaperObserverPendingListEmpty( | 29 explicit TestWallpaperObserverPendingListEmpty( |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 kWallpaperSize, | 201 kWallpaperSize, |
202 kLargeGuestWallpaperColor)); | 202 kLargeGuestWallpaperColor)); |
203 | 203 |
204 command_line->reset(new base::CommandLine(options)); | 204 command_line->reset(new base::CommandLine(options)); |
205 WallpaperManager::Get()->SetCommandLineForTesting(command_line->get()); | 205 WallpaperManager::Get()->SetCommandLineForTesting(command_line->get()); |
206 } | 206 } |
207 | 207 |
208 } // namespace wallpaper_manager_test_utils | 208 } // namespace wallpaper_manager_test_utils |
209 | 209 |
210 } // namespace chromeos | 210 } // namespace chromeos |
OLD | NEW |